Version bump. Should be prefix ready
authorSebastien Fabbro <bicatali@gentoo.org>
Thu, 22 Apr 2010 20:28:27 +0000 (20:28 +0000)
committerSebastien Fabbro <bicatali@gentoo.org>
Thu, 22 Apr 2010 20:28:27 +0000 (20:28 +0000)
Package-Manager: portage-2.2_rc67/cvs/Linux x86_64

sci-libs/scipy/ChangeLog
sci-libs/scipy/Manifest
sci-libs/scipy/scipy-0.7.2.ebuild [new file with mode: 0644]

index 69b61d0de865f6c42eab1b4ddba94639e2a09f1f..bfc0a9e1514a00d8ec079d246cf1c48d1bda6a64 100644 (file)
@@ -1,6 +1,11 @@
 # ChangeLog for sci-libs/scipy
 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/scipy/ChangeLog,v 1.49 2010/02/25 04:05:51 bicatali Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/scipy/ChangeLog,v 1.50 2010/04/22 20:28:27 bicatali Exp $
+
+*scipy-0.7.2 (22 Apr 2010)
+
+  22 Apr 2010; Sébastien Fabbro <bicatali@gentoo.org> +scipy-0.7.2.ebuild:
+  Version bump. Should be prefix ready
 
   25 Feb 2010; Sébastien Fabbro <bicatali@gentoo.org> scipy-0.7.1.ebuild,
   +files/scipy-0.7.1-weave.patch:
index 8937d3eb94154ebdca810b40b55c8e8382e67038..e486e6d3f7223eb123342e59e8b0082724d922e1 100644 (file)
@@ -1,9 +1,21 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
 AUX scipy-0.6.0-stsci.patch 2209 RMD160 c7c21a23aef7fff9318f224ef2383f7970c1caf9 SHA1 4b86ad61346660959a61dce24b2b9f20595ea473 SHA256 69cec7cfedbc39a30f54ec12852a84017b5a256e966e60a64b4e891b497fd1be
 AUX scipy-0.7.0_beta1-implicit.patch 905 RMD160 a22d5b5c7a67b3a806b63d7708654562fc241300 SHA1 40239fd3a77dc6f8cf9914a266953fd7b4ef41fe SHA256 cbde48ba3e22ef994b4ae0744c6186ef6d3ec608a74b3d0082f22d0be9591b96
 AUX scipy-0.7.1-weave.patch 413 RMD160 ef71432902d2ae914a9c5fbccf23ee4bb5f77802 SHA1 1f0d07591984be705ec9fb71c9d776e2a4eae25b SHA256 8f9d18c5dbf9cae951ae6d64530650e88f0109fa98d8d2e9e896e0c856a9eaa5
 DIST scipy-0.7-html.zip 5723344 RMD160 2629be4420fcad20bd7d9f080e01e4dcf7639c10 SHA1 3db044ef8603578e15754ae890a6e2fddcdadae9 SHA256 35e2e4e4a7aaba8c348175366c120b1a802951abe50af10458c532631e0133bb
 DIST scipy-0.7-ref.pdf 3380649 RMD160 88bda2a06bc20627afbb0354fbe57c1b82dda7eb SHA1 091e1df2d28ee85428c50ee268db56146be96746 SHA256 4acbd75979fabfea9ff9d0cf60e06520c1f4d372f5369add8294f72303d3d0e0
 DIST scipy-0.7.1.tar.gz 4538765 RMD160 b3cb0b40a739cd8b61182f123581d57443b9401a SHA1 ab637e29743cc0c42903a8815043f85d13fb9e42 SHA256 08830d6363a8753ca1376dd22da86d164902711c5feaf0f768b5ee086b3ecd5f
+DIST scipy-0.7.2.tar.gz 4557178 RMD160 456e4ab9d69f9d4056bca6b52474b72bea37b122 SHA1 c3223df023008ee339cf1d3fad74d4566af69c8a SHA256 cae80f12e8b8e72fb2ca2007077e3948af9abc6f2011fe01a68137aea0ef46be
 EBUILD scipy-0.7.1.ebuild 4196 RMD160 ed5ab5975cc20781f3b7c6d6fa3b4b73007cce06 SHA1 bee9535d4ed504cc302af1bd4344a873bc16f43c SHA256 ffc9dd96f44ec13489800a6300a2ea11cf04a29da6aa65bdd2d02d59b6cda1d5
-MISC ChangeLog 10545 RMD160 5ea4fb740a1c670908eb7de5cadc4c07fd37ba4e SHA1 497c95af71959f9d4bb745aa90b4c2270dd64f90 SHA256 ee5f96d612d4a8c90bfd26b79e9759827fe873397bd512e381bf18a28c03bc13
+EBUILD scipy-0.7.2.ebuild 4119 RMD160 5f5d690c90318e115e8ed07adcc0d2c3b2d25f59 SHA1 c95ab72d34879b6abc1641a31933fb04a8a33724 SHA256 796a869efef98e6cb75c0b67414141285301e73fff768bde02a27496bc44cf20
+MISC ChangeLog 10689 RMD160 65900861d69ad60f3a639fc8fd3175d7db8a93c6 SHA1 f40f811db8ec91201198b60da7e6eb04d07ba9e8 SHA256 ab6b4e6f2e9fa96b89bb29e453e896eb529eefd41ec00b188273014b97c768ab
 MISC metadata.xml 697 RMD160 05eb973594c8fe27be71e813f2a2294cf9e3f46e SHA1 1dbbb06751c0fc5760618d8998f9d169b3f774ae SHA256 1bfca083b6aa7c4fbd95b638daa2158b2eaa5cb93fe7a99abe9a2bc08b21e48e
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.14 (GNU/Linux)
+
+iEYEARECAAYFAkvQvGIACgkQ1ycZbhPLE2Cf3ACglgRiYVBZIox5/om/XzWMM/iN
+dEMAoISxcdt7uli+CJPmgIjRasoHtOfC
+=BUIW
+-----END PGP SIGNATURE-----
diff --git a/sci-libs/scipy/scipy-0.7.2.ebuild b/sci-libs/scipy/scipy-0.7.2.ebuild
new file mode 100644 (file)
index 0000000..a30b10d
--- /dev/null
@@ -0,0 +1,136 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/scipy/scipy-0.7.2.ebuild,v 1.1 2010/04/22 20:28:27 bicatali Exp $
+
+EAPI="2"
+SUPPORT_PYTHON_ABIS="1"
+
+inherit eutils distutils flag-o-matic toolchain-funcs versionator
+
+SP="${PN}-$(get_version_component_range 1-2)"
+
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz
+       doc? (
+               http://docs.scipy.org/doc/${SP}.x/${PN}-html.zip -> ${SP}-html.zip
+               http://docs.scipy.org/doc/${SP}.x/${PN}-ref.pdf -> ${SP}-ref.pdf
+       )"
+DESCRIPTION="Scientific algorithms library for Python"
+HOMEPAGE="http://www.scipy.org/"
+
+LICENSE="BSD"
+
+SLOT="0"
+IUSE="doc umfpack"
+
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
+
+CDEPEND=">=dev-python/numpy-1.2
+       virtual/cblas
+       virtual/lapack
+       umfpack? ( sci-libs/umfpack )"
+
+DEPEND="${CDEPEND}
+       dev-util/pkgconfig
+       umfpack? ( dev-lang/swig )
+       doc? ( app-arch/unzip )"
+#      test? ( dev-python/nose )
+
+RDEPEND="${CDEPEND}
+       dev-python/imaging"
+
+RESTRICT_PYTHON_ABIS="3.*"
+
+# buggy tests
+RESTRICT="test"
+
+DOCS="THANKS.txt LATEST.txt TOCHANGE.txt"
+
+pkg_setup() {
+       # scipy automatically detects libraries by default
+       export {FFTW,FFTW3,UMFPACK}=None
+       use umfpack && unset UMFPACK
+       # the missing symbols are in -lpythonX.Y, but since the version can
+       # differ, we just introduce the same scaryness as on Linux/ELF
+       [[ ${CHOST} == *-darwin* ]] \
+               && append-ldflags -bundle "-undefined dynamic_lookup" \
+               || append-ldflags -shared
+       [[ -z ${FC}  ]] && export FC=$(tc-getFC)
+       # hack to force F77 to be FC until bug #278772 is fixed
+       [[ -z ${F77} ]] && export F77=$(tc-getFC)
+       export SCIPY_FCONFIG="config_fc --noopt --noarch"
+}
+
+src_unpack() {
+       unpack ${P}.tar.gz
+       if use doc; then
+               unzip -qo "${DISTDIR}"/${SP}-html.zip -d html || die
+       fi
+}
+
+src_prepare() {
+       epatch "${FILESDIR}"/${PN}-0.7.0_beta1-implicit.patch
+       epatch "${FILESDIR}"/${PN}-0.6.0-stsci.patch
+       epatch "${FILESDIR}"/${PN}-0.7.1-weave.patch
+       local libdir="${EPREFIX}"/usr/$(get_libdir)
+       cat > site.cfg <<-EOF
+               [atlas]
+               include_dirs = $(pkg-config --cflags-only-I \
+                       cblas | sed -e 's/^-I//' -e 's/ -I/:/g')
+               library_dirs = $(pkg-config --libs-only-L \
+                       cblas blas lapack| sed -e \
+                       's/^-L//' -e 's/ -L/:/g' -e 's/ //g'):${libdir}
+               atlas_libs = $(pkg-config --libs-only-l \
+                       cblas blas | sed -e 's/^-l//' -e 's/ -l/, /g' -e 's/,.pthread//g')
+               lapack_libs = $(pkg-config --libs-only-l \
+                       lapack | sed -e 's/^-l//' -e 's/ -l/, /g' -e 's/,.pthread//g')
+               [blas_opt]
+               include_dirs = $(pkg-config --cflags-only-I \
+                       cblas | sed -e 's/^-I//' -e 's/ -I/:/g')
+               library_dirs = $(pkg-config --libs-only-L \
+                       cblas blas | sed -e 's/^-L//' -e 's/ -L/:/g' \
+                       -e 's/ //g'):${libdir}
+               libraries = $(pkg-config --libs-only-l \
+                       cblas blas | sed -e 's/^-l//' -e 's/ -l/, /g' -e 's/,.pthread//g')
+               [lapack_opt]
+               library_dirs = $(pkg-config --libs-only-L \
+                       lapack | sed -e 's/^-L//' -e 's/ -L/:/g' \
+                       -e 's/ //g'):${libdir}
+               libraries = $(pkg-config --libs-only-l \
+                       lapack | sed -e 's/^-l//' -e 's/ -l/, /g' -e 's/,.pthread//g')
+       EOF
+}
+
+src_compile() {
+       [[ -n ${FFLAGS} ]] && FFLAGS="${FFLAGS} -fPIC"
+       distutils_src_compile ${SCIPY_FCONFIG}
+}
+
+src_test() {
+       testing() {
+               "$(PYTHON)" setup.py build -b "build-${PYTHON_ABI}" install \
+                       --home="${S}/test-${PYTHON_ABI}" --no-compile ${SCIPY_FCONFIG} || die "install test failed"
+               pushd "${S}/test-${PYTHON_ABI}/"lib*/python > /dev/null
+               PYTHONPATH=. "$(PYTHON)" -c "import scipy; scipy.test('full')" 2>&1 | tee test.log
+               grep -q ^ERROR test.log && die "test failed"
+               popd > /dev/null
+               rm -fr test-${PYTHON_ABI}
+       }
+       python_execute_function testing
+}
+
+src_install() {
+       distutils_src_install ${SCIPY_FCONFIG}
+       if use doc; then
+               insinto /usr/share/doc/${PF}
+               doins -r "${WORKDIR}"/html || die
+               doins  "${DISTDIR}"/${SP}*pdf || die
+       fi
+}
+
+pkg_postinst() {
+       distutils_pkg_postinst
+
+       elog "You might want to set the variable SCIPY_PIL_IMAGE_VIEWER"
+       elog "to your prefered image viewer if you don't like the default one. Ex:"
+       elog "\t echo \"export SCIPY_PIL_IMAGE_VIEWER=display\" >> ~/.bashrc"
+}