diff options
author | Sebastien Fabbro <bicatali@gentoo.org> | 2007-02-07 17:21:10 +0000 |
---|---|---|
committer | Sebastien Fabbro <bicatali@gentoo.org> | 2007-02-07 17:21:10 +0000 |
commit | 0af7f9a48150395d3a1a1854c1cf43b4423f5811 (patch) | |
tree | 66290fef7f777bde509c386be2931a63c29deec6 /dev-python | |
parent | Stable on sparc wrt #165776 (diff) | |
download | gentoo-2-0af7f9a48150395d3a1a1854c1cf43b4423f5811.tar.gz gentoo-2-0af7f9a48150395d3a1a1854c1cf43b4423f5811.tar.bz2 gentoo-2-0af7f9a48150395d3a1a1854c1cf43b4423f5811.zip |
added lapack support for some arches on numeric-24.2
(Portage version: 2.1.1-r2)
Diffstat (limited to 'dev-python')
-rw-r--r-- | dev-python/numeric/ChangeLog | 9 | ||||
-rw-r--r-- | dev-python/numeric/files/digest-numeric-24.2-r2 | 3 | ||||
-rw-r--r-- | dev-python/numeric/numeric-24.2-r2.ebuild | 72 |
3 files changed, 83 insertions, 1 deletions
diff --git a/dev-python/numeric/ChangeLog b/dev-python/numeric/ChangeLog index 72c3c91070b8..f9b71fa28b05 100644 --- a/dev-python/numeric/ChangeLog +++ b/dev-python/numeric/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for dev-python/numeric # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/numeric/ChangeLog,v 1.27 2007/02/07 17:14:57 bicatali Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/numeric/ChangeLog,v 1.28 2007/02/07 17:21:10 bicatali Exp $ + +*numeric-24.2-r2 (07 Feb 2007) + + 07 Feb 2007; Sébastien Fabbro <bicatali@gentoo.org> + +numeric-24.2-r2.ebuild: + Added the possibility to compile linear algebra with installed + blas/cblas/lapack on architectures supporting it. Closing bug #81520. *numeric-24.2-r1 (07 Feb 2007) diff --git a/dev-python/numeric/files/digest-numeric-24.2-r2 b/dev-python/numeric/files/digest-numeric-24.2-r2 new file mode 100644 index 000000000000..b891af10ea95 --- /dev/null +++ b/dev-python/numeric/files/digest-numeric-24.2-r2 @@ -0,0 +1,3 @@ +MD5 2ae672656e06716a149acb048cca3093 Numeric-24.2.tar.gz 743800 +RMD160 c9502db28663558c535e236392c9beddec9743bb Numeric-24.2.tar.gz 743800 +SHA256 5f72e729eb6ff57442f2a38bfc9931738b59e5077928e2e70d22b4610ff15258 Numeric-24.2.tar.gz 743800 diff --git a/dev-python/numeric/numeric-24.2-r2.ebuild b/dev-python/numeric/numeric-24.2-r2.ebuild new file mode 100644 index 000000000000..1083a25a5985 --- /dev/null +++ b/dev-python/numeric/numeric-24.2-r2.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/numeric/numeric-24.2-r2.ebuild,v 1.1 2007/02/07 17:21:10 bicatali Exp $ + +inherit distutils eutils fortran + +MY_P=Numeric-${PV} +S=${WORKDIR}/${MY_P} + +DESCRIPTION="Numerical multidimensional array language facility for Python." +HOMEPAGE="http://numeric.scipy.org/" +SRC_URI="mirror://sourceforge/numpy/${MY_P}.tar.gz" + +LICENSE="as-is" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="lapack" +DEPEND=">=dev-lang/python-2.3 + lapack? ( virtual/cblas virtual/lapack )" + +pkg_setup() { + if use lapack; then + FORTRAN="gfortran g77" + fortran_pkg_setup + fi +} + +src_unpack() { + if use lapack; then + fortran_src_unpack + else + unpack ${A} + fi + # fix list problem + epatch "${FILESDIR}"/${P}-arrayobject.patch + # fix skips of acosh, asinh + epatch "${FILESDIR}"/${P}-umath.patch + # fix eigenvalue hang + epatch "${FILESDIR}"/${P}-eigen.patch + # adapt lapack support + if use lapack; then + epatch "${FILESDIR}"/${P}-lapack.patch + if [[ ${FORTRANC} == gfortran ]]; then + sed -i -e 's:g2c:gfortran:g' ${S}/customize.py + fi + fi +} + +src_install() { + distutils_src_install + distutils_python_version + + # Numerical Tutorial is nice for testing and learning + insinto /usr/$(get_libdir)/python${PYVER}/site-packages/NumTut + doins Demo/NumTut/* + + # install various doc from packages + docinto FFT + dodoc Packages/FFT/MANIFEST + docinto MA + dodoc Packages/MA/{MANIFEST,README} + docinto RNG + dodoc Packages/RNG/{MANIFEST,README} + docinto lapack_lite + dodoc Misc/lapack_lite/README + if use lapack; then + docinto dotblas + dodoc Packages/dotblas/{README,profileDot}.txt + insinto /usr/share/doc/${PF}/dotblas + doins Packages/dotblas/profileDot.py + fi +} |