diff options
author | Sebastien Fabbro <bicatali@gentoo.org> | 2008-07-07 23:47:57 +0000 |
---|---|---|
committer | Sebastien Fabbro <bicatali@gentoo.org> | 2008-07-07 23:47:57 +0000 |
commit | 12b23951f8533b8071949b934d5a38d21fe6ab71 (patch) | |
tree | 4a3e500c3a89b0e60295b483a7f2faa47cf9ba17 /sci-physics/camfr | |
parent | pkg-config files now only link to the mkl directory. Fixed some syntax and li... (diff) | |
download | historical-12b23951f8533b8071949b934d5a38d21fe6ab71.tar.gz historical-12b23951f8533b8071949b934d5a38d21fe6ab71.tar.bz2 historical-12b23951f8533b8071949b934d5a38d21fe6ab71.zip |
Added link for mandatory fortran library.
Package-Manager: portage-2.1.4.4
Diffstat (limited to 'sci-physics/camfr')
-rw-r--r-- | sci-physics/camfr/ChangeLog | 8 | ||||
-rw-r--r-- | sci-physics/camfr/Manifest | 9 | ||||
-rw-r--r-- | sci-physics/camfr/camfr-20070717-r1.ebuild | 76 |
3 files changed, 88 insertions, 5 deletions
diff --git a/sci-physics/camfr/ChangeLog b/sci-physics/camfr/ChangeLog index 01be7911b624..37068edbd6fc 100644 --- a/sci-physics/camfr/ChangeLog +++ b/sci-physics/camfr/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for sci-physics/camfr # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-physics/camfr/ChangeLog,v 1.10 2008/07/06 09:56:28 bicatali Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-physics/camfr/ChangeLog,v 1.11 2008/07/07 23:47:57 bicatali Exp $ + +*camfr-20070717-r1 (07 Jul 2008) + + 07 Jul 2008; Sébastien Fabbro <bicatali@gentoo.org> + +camfr-20070717-r1.ebuild: + Added link for mandatory fortran library. 06 Jul 2008; Sébastien Fabbro <bicatali@gentoo.org> camfr-20070717.ebuild: diff --git a/sci-physics/camfr/Manifest b/sci-physics/camfr/Manifest index 42d9c647f7a1..c83e020f85a3 100644 --- a/sci-physics/camfr/Manifest +++ b/sci-physics/camfr/Manifest @@ -3,13 +3,14 @@ Hash: SHA1 AUX camfr-20070717-gcc43.patch 391 RMD160 4addf806c2d8ddb5ee5dbd2cc1b02381dbf3f6b8 SHA1 41ef3f6be02d4d6b6bf6d03b4b1f6e9ef0fca3d9 SHA256 50cfc3e04c4774fd0404d044c128cf8346c1762e64808ca77147cb4207729db3 DIST camfr-20070717.tgz 763070 RMD160 4e4237188caecd4dca3980b9cab381479e6382bc SHA1 7838482db8557b365dac51769950d49746397e29 SHA256 f675ba7d58947076c0679c8760c9282e2efc82828bec67de90567fd8a4f135de +EBUILD camfr-20070717-r1.ebuild 1959 RMD160 d450caf8405cd4e6b8a8bcf4619015d113301641 SHA1 132d975a83bf8ebe452018d0607259e090441933 SHA256 42859f3f7c58f3a2ccbfaaca48e6e17bc6dad4bf038dedbe12618466f20451b4 EBUILD camfr-20070717.ebuild 1850 RMD160 cc57cecffabb7a2e5c0fb42b00c3fb84aae42257 SHA1 57e3487d7af56c52c02188409b475a1f958d09f9 SHA256 21927ad0a1bdad0bb39d97e60c29c6f2720d0e12c57ebe9187188074d8cbfe5d -MISC ChangeLog 1955 RMD160 f8dc1e3136252cc1f039fa39d0fefc5231bb053c SHA1 75e7c34f2c8fafcb253dbda605e8720201e0a594 SHA256 c3a7687d6ecb6ea2f5960b7d6abb0b6f4c21f9a6b80c4417cd7993752281a858 +MISC ChangeLog 2118 RMD160 b757a1e69da0632a0f72146b3e0b1ec4d73b2c8c SHA1 9c525dfb147a1afa5bfe650a482be22ddb9218e5 SHA256 79276dcd23dcc7419da8f4e830a5eee3060f0c84413128111847f870f0ff92c3 MISC metadata.xml 164 RMD160 6e4c63a6f70f174f40277eed39ac05fba4a49566 SHA1 e1af6f2028e69dee3c76e7e85353a144c83d3383 SHA256 9eddaccbdd2f6b3f93213d72782f07518dff1625fd8d63faf61dc97bd328b5e7 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) -iEYEARECAAYFAkhwltcACgkQ1ycZbhPLE2ClKgCeLZIHWb30qE9PQcJhysv+GNTp -cgsAnAtQ0Eog2aubPbIoCp/LE0vy33Dh -=w3At +iEYEARECAAYFAkhyqzYACgkQ1ycZbhPLE2BLVwCgg/vT7PNh62yKcnyb4pOlQ23O +UKoAoKFUfyPbVoQ3cgdxEK9YgMuc/ZYd +=nVg4 -----END PGP SIGNATURE----- diff --git a/sci-physics/camfr/camfr-20070717-r1.ebuild b/sci-physics/camfr/camfr-20070717-r1.ebuild new file mode 100644 index 000000000000..6aba83ae00c8 --- /dev/null +++ b/sci-physics/camfr/camfr-20070717-r1.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-physics/camfr/camfr-20070717-r1.ebuild,v 1.1 2008/07/07 23:47:57 bicatali Exp $ + +inherit eutils distutils fortran + +DESCRIPTION="Full vectorial Maxwell solver based on eigenmode expansion" +HOMEPAGE="http://camfr.sourceforge.net/" +SRC_URI="mirror://sourceforge/camfr/${P}.tgz" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="sci-libs/scipy + dev-python/matplotlib + dev-libs/boost + dev-libs/blitz + dev-python/imaging + virtual/lapack" + +DEPEND="${RDEPEND} + dev-util/pkgconfig + >=dev-util/scons-0.98" + +S="${WORKDIR}/${P/-/_}" + +pkg_setup() { + if ! built_with_use dev-lang/python tk || \ + ! built_with_use dev-python/imaging tk ; then + eerror "Python and/or imaging don't have Tk support enabled." + eerror "Set the tk USE flag and reinstall python and imaging before continuing." + die + fi + FORTRAN="gfortran g77" + fortran_pkg_setup +} + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${P}-gcc43.patch + cp machine_cfg.py{.gentoo,} || die + sed -i -e '/^library_dirs/d' -e '/^libs/d' machine_cfg.py || die + local lapack_libs= + for x in $(pkg-config --libs-only-l lapack); do + lapack_libs="${lapack_libs}, \"${x#-l}\"" + done + local lapack_libdirs= + for x in $(pkg-config --libs-only-L lapack); do + lapack_libdirs="${lapack_libdirs}, \"${x#-L}\"" + done + local libfort + case ${FORTRANC} in + gfortran) libfort=gfortran ;; + g77) libfort=g2c ;; + esac + cat <<-EOF >> machine_cfg.py + library_dirs = [${lapack_libdirs#,}] + libs = ["boost_python", "${libfort}", "blitz"${lapack_libs}] + EOF +} + +src_test() { + # trick to avoid X in testing (bug #229753) + echo "backend : Agg" > matplotlibrc + PYTHONPATH=".:visualisation" ${python} testsuite/camfr_test.py \ + || die "tests failed" + rm -f matplotlibrc +} + +src_install() { + distutils_src_install + dodoc docs/camfr.pdf || die "doc install failed" +} |