added scipy-0.5.2-r1.ebuild with a lot of changes and umfpack support.
authorSebastien Fabbro <bicatali@gentoo.org>
Mon, 19 Feb 2007 11:09:36 +0000 (11:09 +0000)
committerSebastien Fabbro <bicatali@gentoo.org>
Mon, 19 Feb 2007 11:09:36 +0000 (11:09 +0000)
Package-Manager: portage-2.1.2-r9

sci-libs/scipy/ChangeLog
sci-libs/scipy/Manifest
sci-libs/scipy/files/digest-scipy-0.5.2-r1 [new file with mode: 0644]
sci-libs/scipy/metadata.xml
sci-libs/scipy/scipy-0.5.2-r1.ebuild [new file with mode: 0644]

index 7b8374e70851a15e048843227086adc677d18073..e0cea644dbd9aa9595b10330d5be6768fe8ec0ae 100644 (file)
@@ -1,6 +1,12 @@
 # ChangeLog for sci-libs/scipy
 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/scipy/ChangeLog,v 1.15 2007/01/31 09:03:43 nerdboy Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/scipy/ChangeLog,v 1.16 2007/02/19 11:09:36 bicatali Exp $
+
+*scipy-0.5.2-r1 (19 Feb 2007)
+
+  19 Feb 2007; Sébastien Fabbro <bicatali@gentoo.org> metadata.xml,
+  +scipy-0.5.2-r1.ebuild:
+  A lot of cleaning+testing. Added umfpack support. Closing #135956.
 
 *scipy-0.5.2 (31 Jan 2007)
 
index 958033a7f0190b3c3f566315066b43ea37957aea..0b75673f369a0e18bcb67ae84497b1749b976915 100644 (file)
@@ -1,3 +1,6 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
 AUX system_info.diff 2155 RMD160 2a54ac3249478045cb494014bcbd2063281bec24 SHA1 53ce7d178b0fc3df2cd20ce0e61fd1af82b5741d SHA256 ac355cfb0e6b20341bccf13f2d933e3c0a2e98467772410500d85b0598e229e1
 MD5 a5ac5edc39d8266b13659fd429e8e939 files/system_info.diff 2155
 RMD160 2a54ac3249478045cb494014bcbd2063281bec24 files/system_info.diff 2155
@@ -27,18 +30,22 @@ EBUILD scipy-0.5.1.ebuild 2215 RMD160 a5d5f4d21ae75f72356e2d189af96db55bdb7054 S
 MD5 db14ccd0f666cb1e50c1de51e3fdc080 scipy-0.5.1.ebuild 2215
 RMD160 a5d5f4d21ae75f72356e2d189af96db55bdb7054 scipy-0.5.1.ebuild 2215
 SHA256 2a3b515d49be54bdfd59a80d3730946e380078635f978589ac5d8a02d1e3d14c scipy-0.5.1.ebuild 2215
+EBUILD scipy-0.5.2-r1.ebuild 2551 RMD160 beb1b81030c5958ec316b8b01f88eaed829d768c SHA1 59b313b4e554524da9ffe9436ce47e1fee88213d SHA256 7a1216d385a2029074c015d87204766e29e8fef38218ba0d2d9d6ac4434302f3
+MD5 0b074c8f5329a56fe76d51078d004caa scipy-0.5.2-r1.ebuild 2551
+RMD160 beb1b81030c5958ec316b8b01f88eaed829d768c scipy-0.5.2-r1.ebuild 2551
+SHA256 7a1216d385a2029074c015d87204766e29e8fef38218ba0d2d9d6ac4434302f3 scipy-0.5.2-r1.ebuild 2551
 EBUILD scipy-0.5.2.ebuild 2290 RMD160 195b7e4a0a7012b2abdf5dd41d850fa017a22d09 SHA1 134f2fb73fbdac7059ded08833c980a38de3c5d0 SHA256 2da67d20e5c0b6bbd05df9d5c6fb267b4d070ff91fd9ab421444ca9b0626d953
 MD5 bd429029b1626be0f4d7d811779ace89 scipy-0.5.2.ebuild 2290
 RMD160 195b7e4a0a7012b2abdf5dd41d850fa017a22d09 scipy-0.5.2.ebuild 2290
 SHA256 2da67d20e5c0b6bbd05df9d5c6fb267b4d070ff91fd9ab421444ca9b0626d953 scipy-0.5.2.ebuild 2290
-MISC ChangeLog 2993 RMD160 c7f5b9138c9a58b54b451472a8effd62336e0722 SHA1 00054581f252b14f52f3dbedba7936b995342285 SHA256 5cdf0bc29be1caff2ba248e87073832e0b86f984c65c77843719315f03853df8
-MD5 04e021b3e04d2706ed3ac4317faddd60 ChangeLog 2993
-RMD160 c7f5b9138c9a58b54b451472a8effd62336e0722 ChangeLog 2993
-SHA256 5cdf0bc29be1caff2ba248e87073832e0b86f984c65c77843719315f03853df8 ChangeLog 2993
-MISC metadata.xml 156 RMD160 dc078172bfebcb25d69bdf8731714f9cce9d3e36 SHA1 da2b240a255820145b7c83a5c48e45b96b7e9ee6 SHA256 5d22100902db7507a5b5493dd4a66cdb08025faf80a2c0b75e6392315c47f900
-MD5 8c623e53daafa025137077c6b65815bd metadata.xml 156
-RMD160 dc078172bfebcb25d69bdf8731714f9cce9d3e36 metadata.xml 156
-SHA256 5d22100902db7507a5b5493dd4a66cdb08025faf80a2c0b75e6392315c47f900 metadata.xml 156
+MISC ChangeLog 3190 RMD160 3bf797f0add3a2d864a1c1673210716bdb5e5ec1 SHA1 686fafbea25bcf8f8f9ac2cecb8b5798e28a938f SHA256 6ff4407bb172bfe77d14d26abd8c2def07fa08e41f5ef1b16ff7d9fb9f230c5c
+MD5 99fd63ffe4375c52b4b9bb192744b0c0 ChangeLog 3190
+RMD160 3bf797f0add3a2d864a1c1673210716bdb5e5ec1 ChangeLog 3190
+SHA256 6ff4407bb172bfe77d14d26abd8c2def07fa08e41f5ef1b16ff7d9fb9f230c5c ChangeLog 3190
+MISC metadata.xml 577 RMD160 c9ddccf05c22b5460372ef1c47a91e3441ec6480 SHA1 fb55340f9fbf7877f5874cabcfbac9ea19f849bd SHA256 768246bd968275941fcf6cb3b9d084fdc45a2ab10d257709f644fe87c69c3b88
+MD5 27ccaa063e4ff212f9a4f5e84e1d7386 metadata.xml 577
+RMD160 c9ddccf05c22b5460372ef1c47a91e3441ec6480 metadata.xml 577
+SHA256 768246bd968275941fcf6cb3b9d084fdc45a2ab10d257709f644fe87c69c3b88 metadata.xml 577
 MD5 252efa250456458815d24b2fa27b63d8 files/digest-scipy-0.3.2 265
 RMD160 c9518755738be4f46875caf03ba7be0696293734 files/digest-scipy-0.3.2 265
 SHA256 3cc700dbc33f1a3a69dddc6b503553f37448500a1352e6f406059caca9b9e8a7 files/digest-scipy-0.3.2 265
@@ -57,3 +64,13 @@ SHA256 cd9eb7d7e35ce61f15b7489977e02c867e8e2185ed49a1767d6b3e527e4e0bb4 files/di
 MD5 a0f199713808244386c7eac017f8179d files/digest-scipy-0.5.2 238
 RMD160 45b26148c69c7694d10e9da1e25588098755792b files/digest-scipy-0.5.2 238
 SHA256 05960916e457668d7d2c27fc089cefb7fa07abc02476cd812f9e6b5c0267f99e files/digest-scipy-0.5.2 238
+MD5 a0f199713808244386c7eac017f8179d files/digest-scipy-0.5.2-r1 238
+RMD160 45b26148c69c7694d10e9da1e25588098755792b files/digest-scipy-0.5.2-r1 238
+SHA256 05960916e457668d7d2c27fc089cefb7fa07abc02476cd812f9e6b5c0267f99e files/digest-scipy-0.5.2-r1 238
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.4.6 (GNU/Linux)
+
+iD8DBQFF2YV+Wc/Ciu+QQGkRAku/AJ9MwxN685QGHR7+vL1cgMaIiCHgowCfeWeh
+3wCE6s8hqwxoUv0yeuGM+30=
+=Jssl
+-----END PGP SIGNATURE-----
diff --git a/sci-libs/scipy/files/digest-scipy-0.5.2-r1 b/sci-libs/scipy/files/digest-scipy-0.5.2-r1
new file mode 100644 (file)
index 0000000..89b1226
--- /dev/null
@@ -0,0 +1,3 @@
+MD5 e24387ac7f9e589816364db7c64c3185 scipy-0.5.2.tar.gz 6362164
+RMD160 fa945185df7fc48e03bafdddeaaea72a8eb4914d scipy-0.5.2.tar.gz 6362164
+SHA256 38e42155d3445699f28c36facdaa82200d8e017b4ca608f95f6d928065dc03ed scipy-0.5.2.tar.gz 6362164
index b229aec85b8f3ba91e4c79b34cc4c8485e2d6e49..1bdbae9621ebcd74aec580a151a07fc24c3a5fbf 100644 (file)
@@ -2,4 +2,12 @@
 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
 <pkgmetadata>
 <herd>sci</herd>
+<longdescription lang="en">
+SciPy is an open source library of scientific tools for Python. SciPy
+supplements the popular numpy module, gathering a variety of high level
+science and engineering modules together as a single package.
+SciPy includes modules for graphics and plotting, optimization, integration,
+special functions, signal and image processing, genetic algorithms, ODE
+solvers, and others.
+</longdescription>
 </pkgmetadata>
diff --git a/sci-libs/scipy/scipy-0.5.2-r1.ebuild b/sci-libs/scipy/scipy-0.5.2-r1.ebuild
new file mode 100644 (file)
index 0000000..783f800
--- /dev/null
@@ -0,0 +1,119 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/scipy/scipy-0.5.2-r1.ebuild,v 1.1 2007/02/19 11:09:36 bicatali Exp $
+
+NEED_PYTHON=2.3
+
+inherit distutils fortran
+
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+DESCRIPTION="Scientific algorithms library for Python"
+HOMEPAGE="http://www.scipy.org/"
+LICENSE="BSD"
+
+SLOT="0"
+
+IUSE="fftw umfpack"
+
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND=">=dev-python/numpy-1.0
+       virtual/blas
+       virtual/lapack
+       fftw? ( sci-libs/fftw )
+       umfpack? ( sci-libs/umfpack )"
+
+DEPEND="${RDEPEND}
+       umfpack? ( dev-lang/swig )"
+
+RESTRICT="test"
+
+FORTRAN="gfortran g77"
+
+DOCS="THANKS.txt DEVELOPERS.txt LATEST.txt TOCHANGE.txt FORMAT_GUIDELINES.txt"
+
+scipy_configure() {
+       [[ -z "${FFLAGS}" ]] && FFLAGS="${CFLAGS}"
+       # scipy automatically detects libraries by default
+       export FFTW=None FFTW3=None UMFPACK=None DJBFFT=None
+       use fftw && unset FFTW FFTW3
+       use umfpack && unset UMFPACK
+       # Map compilers to what numpy calls them (same as scipy)
+       case "${FORTRANC}" in
+               gfortran)
+                       SCIPY_FC="gnu95"
+                       ;;
+               g77)
+                       SCIPY_FC="gnu"
+                       ;;
+               g95)
+                       SCIPY_FC="g95"
+                       ;;
+               ifc|ifort)
+                       if use ia64; then
+                               SCIPY_FC="intele"
+                       elif use amd64; then
+                               SCIPY_FC="intelem"
+                       else
+                               SCIPY_FC="intel"
+                       fi
+                       ;;
+               *)
+                       local msg="Invalid Fortran compiler \'${FORTRANC}\'"
+                       eerror "${msg}"
+                       die "${msg}"
+                       ;;
+       esac
+       export SCIPY_FC
+
+       # http://projects.scipy.org/scipy/numpy/ticket/182
+       # Can't set LDFLAGS
+       unset LDFLAGS
+       # need to build with -fPIC (bug #149153)
+       export F77FLAGS="${F77FLAGS} -fPIC"
+}
+
+pkg_setup() {
+       if use umfpack; then
+               if ! built_with_use dev-lang/swig python; then
+                       eerror "With umfpack enabled you need"
+                       eerror "dev-lang/swig with python enabled"
+                       einfo  "Please re-emerge swig with USE=python"
+                       die "needs swig with python"
+               fi
+       fi
+       fortran_pkg_setup
+}
+
+src_compile() {
+       scipy_configure
+       distutils_src_compile \
+               config_fc \
+               --fcompiler="${SCIPY_FC}" \
+               --opt="${FFLAGS}"
+}
+
+src_test() {
+       scipy_configure
+       ${python} setup.py install \
+               --home="${S}"/test \
+               --no-compile \
+           config_fc \
+           --fcompiler=${SCIPY_FC} \
+           --opt="${FFLAGS}" || die "install test failed"
+       pushd "${S}"/test/lib*/python
+       PYTHONPATH=. "${python}" -c \
+               "import scipy as s;import sys;sys.exit(s.test(10,3))"  \
+               > test.log 2>&1
+       grep -q OK test.log || die "test failed"
+       popd
+       rm -rf test
+}
+
+src_install() {
+       scipy_configure
+       distutils_src_install \
+               config_fc \
+               --fcompiler="${SCIPY_FC}" \
+               --opt="${FFLAGS}"
+}