summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-10-03 21:19:03 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-10-03 21:19:03 +0000
commit4535e3f8db9dbad7b650f524c9d54ef5c615d5ef (patch)
tree0828d263ccaca617baf1ce833ca36f312a8fd8af /dev-python
parentVersion bump. Remove java5 useflag, and default to java5. (diff)
downloadhistorical-4535e3f8db9dbad7b650f524c9d54ef5c615d5ef.tar.gz
historical-4535e3f8db9dbad7b650f524c9d54ef5c615d5ef.tar.bz2
historical-4535e3f8db9dbad7b650f524c9d54ef5c615d5ef.zip
Delete older ebuilds.
Package-Manager: portage-14479-svn/cvs/Linux x86_64
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/numpy/Manifest7
-rw-r--r--dev-python/numpy/files/numpy-1.0.1-f2py.patch42
-rw-r--r--dev-python/numpy/files/numpy-1.0.4-cpuinfo.patch133
-rw-r--r--dev-python/numpy/files/numpy-1.0.4-freebsd.patch69
-rw-r--r--dev-python/numpy/numpy-1.0.4-r2.ebuild131
-rw-r--r--dev-python/numpy/numpy-1.1.1.ebuild126
6 files changed, 0 insertions, 508 deletions
diff --git a/dev-python/numpy/Manifest b/dev-python/numpy/Manifest
index ebeb73f7b712..3062494a7753 100644
--- a/dev-python/numpy/Manifest
+++ b/dev-python/numpy/Manifest
@@ -1,16 +1,9 @@
-AUX numpy-1.0.1-f2py.patch 1403 RMD160 4a02205910231c3b08ae919a45facc21dd2818ae SHA1 148118c4ee9d8a754a0891621ece9b5774e76016 SHA256 746b437aff172764a238bb75d6a5b7b0547113c8a256721cf4bec2b1819bcf51
-AUX numpy-1.0.4-cpuinfo.patch 4188 RMD160 540961a3aa87530703d8c5795c21dd5f0adc5aad SHA1 e05ed0360a1ac3a980d5b85c536819827c5ca7b7 SHA256 c217b30365c9134482949a5e4a8fdac0577b3205c2d46f30a327323fef5bd1c7
-AUX numpy-1.0.4-freebsd.patch 3084 RMD160 9ec6841d9b8205d584f33356fcafc30047134d63 SHA1 719621772bbb7f4016396081cac1742d15050c01 SHA256 514f00a761ceb40f4380962f36035816fdd2ca7cde8d6c5aab74aab7fd11b073
AUX numpy-1.1.0-f2py.patch 1123 RMD160 ff90313cbe8282ac37b0cb98effa0ff6a03760c2 SHA1 5c37ea9be68782e533c7c2d64ca00e8e8ae648ea SHA256 cc67bc8ab7dba2febb91ba15cc51933021743a286c980e0068afd6fabdd065e7
AUX numpy-1.3.0-alpha.patch 1210 RMD160 d92ca3fa7d671da1ff8e3e2e1a6b64469cf7142b SHA1 0a8740710d7b2e40b1a8899771b641999440558b SHA256 ea0da717e694338a1bca72f1b635309be15af2cdee206b50de4b38ce95701c64
AUX numpy-1.3.0-arm-sh.patch 2166 RMD160 cc60f574ab7fe29968ebc56f9018c2427f01f6cc SHA1 59b4751c26abf837a69d8bd637bd9abb89344f72 SHA256 9b373c5b8886df971c350c44766ccdf165ffec6c2082f68704121965ad7a2f37
AUX numpy-1.3.0-parisc.patch 474 RMD160 682971d65894aeb2e87de5f8eac717a8f7803318 SHA1 da6067bd782604119111d69fce06b7536d59f6ca SHA256 413af76d3b5518d2f544c4497110a3401d40a7ea713a7449ea8826facddbf225
-DIST numpy-1.0.4.tar.gz 1547541 RMD160 8ac192ad3f36a94a45c26e0c4028fdbb744881f5 SHA1 9a1f09358c3310cf990eecd06dc2eb54aec78321 SHA256 b993ecc060aa2bdca9a45a552f4ea77d96959ce0f429d5f9019e05738d68c9bd
-DIST numpy-1.1.1.tar.gz 1611021 RMD160 745e9fbbd064272199f4c7b49d4a26797405dd17 SHA1 a2755f38ca6aa799b504c84f58b03cd6ce66bc41 SHA256 d430273a77aed959c007595d969fefa36c59249807212d7d89f5d6cf2a701dd6
DIST numpy-1.2.1.tar.gz 1448933 RMD160 7eb721d0d853f3b0b9b04a4f447353873d6c0997 SHA1 1aa706e733aea18eaffa70d93c0105718acb66c5 SHA256 4392b4b78eb503b187a6004468d2dd14d976c4b30a327e51f2277730c415003e
DIST numpy-1.3.0.tar.gz 1995868 RMD160 a75155d2014204e16c59857b92356353505c39b9 SHA1 c04998a1fbf7d990c9a2b99a7b62486012c570ac SHA256 7524687cce85aa78103046db5e617c626b0ef871a203a049159f88f35647c90d
-EBUILD numpy-1.0.4-r2.ebuild 3507 RMD160 d9e70b8851cda2adf70aedc9b56d732152a3a69d SHA1 60c8073ce0a9eb72283abe0a0d57b220ffc129e8 SHA256 534b11c0d2d135780581e7adfa06b663b73846f188bce996d0841c0c954432d9
-EBUILD numpy-1.1.1.ebuild 3349 RMD160 27aab3eea2c77ac03c8db40dc6e8116b74f9bfce SHA1 bbff358f0e5536a84c59e6a4906172daf7b16950 SHA256 ead32d70a2c65c81e7840920c6b52b6089b206af76fbce20b588131a819de534
EBUILD numpy-1.2.1.ebuild 4237 RMD160 523240c56efc80b8fdc32a7a0356d7bbb7d02059 SHA1 531b4656bfd3077d761c0e5074bf19cc033067cd SHA256 18d23bb2e7a8d9cc8c24e039a00b8004773f492af7ce6cd070bc6d1acdb28bc7
EBUILD numpy-1.3.0-r1.ebuild 3953 RMD160 3e76ad66cff9d81faa669df4246fe749f8043002 SHA1 ca4dee0fbb708d78a573eb9dfd2c52c19056985c SHA256 73f92fd4d100f353d97c3bc549d7cb2275b69d0b96c0c166ea3fd4af82bc506b
EBUILD numpy-1.3.0.ebuild 3730 RMD160 c0d829ee7118786377feafc13bee29fd87607bce SHA1 74b47ee040e480a28e37ff3c14fa4f4ffc08f95e SHA256 03726529570ea97cc39867718c5f24e5d020425628eaa7a15210318b19fbfe09
diff --git a/dev-python/numpy/files/numpy-1.0.1-f2py.patch b/dev-python/numpy/files/numpy-1.0.1-f2py.patch
deleted file mode 100644
index d64f1d647af2..000000000000
--- a/dev-python/numpy/files/numpy-1.0.1-f2py.patch
+++ /dev/null
@@ -1,42 +0,0 @@
-diff -Nur numpy/f2py/f2py.1 numpy/f2py.new/f2py.1
---- numpy/f2py/f2py.1 2006-07-26 21:04:19.000000000 +0100
-+++ numpy/f2py.new/f2py.1 2007-02-14 12:16:47.000000000 +0000
-@@ -184,7 +184,7 @@
-
- Optional Numarray 0.9 or higher partially supported.
-
--numpy_distutils from Scipy (can be downloaded from F2PY homepage)
-+numpy_distutils from Numpy (can be downloaded from F2PY homepage)
- .SH "SEE ALSO"
- python(1)
- .SH BUGS
-@@ -200,10 +200,8 @@
-
- Mailing list: http://cens.ioc.ee/mailman/listinfo/f2py-users/
-
--Scipy website: http://www.numpy.org
-+Numpy website: http://numeric.numpy.org
- .SH COPYRIGHT
- Copyright (c) 1999, 2000, 2001, 2002, 2003, 2004, 2005 Pearu Peterson
- .SH LICENSE
- NumPy License
--.SH VERSION
--2.45.241
-diff -Nur numpy/f2py/setup.py numpy/f2py.new/setup.py
---- numpy/f2py/setup.py 2006-10-03 05:35:22.000000000 +0100
-+++ numpy/f2py.new/setup.py 2007-02-14 12:16:41.000000000 +0000
-@@ -35,13 +35,12 @@
-
- config.add_data_files('src/fortranobject.c',
- 'src/fortranobject.h',
-- 'f2py.1'
- )
-
- config.make_svn_version_py()
-
- def generate_f2py_py(build_dir):
-- f2py_exe = 'f2py'+os.path.basename(sys.executable)[6:]
-+ f2py_exe = 'f2py'
- if f2py_exe[-4:]=='.exe':
- f2py_exe = f2py_exe[:-4] + '.py'
- if 'bdist_wininst' in sys.argv and f2py_exe[-3:] != '.py':
diff --git a/dev-python/numpy/files/numpy-1.0.4-cpuinfo.patch b/dev-python/numpy/files/numpy-1.0.4-cpuinfo.patch
deleted file mode 100644
index f38b43038971..000000000000
--- a/dev-python/numpy/files/numpy-1.0.4-cpuinfo.patch
+++ /dev/null
@@ -1,133 +0,0 @@
---- numpy-1.0.4/numpy/distutils/cpuinfo.py 2007-11-07 23:05:15.000000000 +0100
-+++ numpy-1.0.4_changed/numpy/distutils/cpuinfo.py 2008-05-19 20:30:40.000000000 +0200
-@@ -18,6 +18,7 @@
- import os
- import commands
- import warnings
-+import platform
-
- def getoutput(cmd, successful_status=(0,), stacklevel=1):
- try:
-@@ -80,8 +81,16 @@
- def _getNCPUs(self):
- return 1
-
-+ def __get_nbits(self):
-+ abits = platform.architecture()[0]
-+ nbits = re.compile('(\d+)bit').search(abits).group(1)
-+ return nbits
-+
- def _is_32bit(self):
-- return not self.is_64bit()
-+ return self.__get_nbits() == '32'
-+
-+ def _is_64bit(self):
-+ return self.__get_nbits() == '64'
-
- class LinuxCPUInfo(CPUInfoBase):
-
-@@ -104,7 +113,7 @@
- if len(name_value) != 2:
- continue
- name, value = name_value
-- if not info or info[-1].has_key(name): # next processor
-+ if not info or name in info[-1]: # next processor
- info.append({})
- info[-1][name] = value
- fo.close()
-@@ -134,7 +143,16 @@
- self.info[0]['model name']) is not None
-
- def _is_AMD64(self):
-- return self.is_AMD() and self.info[0]['family'] == '15'
-+ if 'family' in self.info[0]:
-+ family=self.info[0]['family'] in ['15','16']
-+ else:
-+ family=False
-+ if 'cpu family' in self.info[0]:
-+ cpu_family=self.info[0]['cpu family']in ['15','16']
-+ else:
-+ cpu_family=False
-+ result=(self.is_AMD() and family) or cpu_family
-+ return result
-
- def _is_Athlon64(self):
- return re.match(r'.*?Athlon\(tm\) 64\b',
-@@ -152,6 +170,10 @@
- return re.match(r'.*?Hammer\b',
- self.info[0]['model name']) is not None
-
-+ def _is_Phenom(self):
-+ return re.match(r'.*?Phenom\b',
-+ self.info[0]['model name']) is not None
-+
- # Alpha
-
- def _is_Alpha(self):
-@@ -222,7 +244,11 @@
- return self.is_PentiumIV() and self.has_sse3()
-
- def _is_Nocona(self):
-- return self.is_64bit() and self.is_PentiumIV()
-+ return self.is_Intel() \
-+ and (self.info[0]['cpu family'] == '6' \
-+ or self.info[0]['cpu family'] == '15' ) \
-+ and (self.has_sse3() and not self.has_ssse3())\
-+ and re.match(r'.*?\blm\b',self.info[0]['flags']) is not None
-
- def _is_Core2(self):
- return self.is_64bit() and self.is_Intel() and \
-@@ -263,7 +289,10 @@
- return re.match(r'.*?\bsse2\b',self.info[0]['flags']) is not None
-
- def _has_sse3(self):
-- return re.match(r'.*?\bsse3\b',self.info[0]['flags']) is not None
-+ return re.match(r'.*?\bpni\b',self.info[0]['flags']) is not None
-+
-+ def _has_ssse3(self):
-+ return re.match(r'.*?\bssse3\b',self.info[0]['flags']) is not None
-
- def _has_3dnow(self):
- return re.match(r'.*?\b3dnow\b',self.info[0]['flags']) is not None
-@@ -271,20 +300,6 @@
- def _has_3dnowext(self):
- return re.match(r'.*?\b3dnowext\b',self.info[0]['flags']) is not None
-
-- def _is_64bit(self):
-- if self.is_Alpha():
-- return True
-- if self.info[0].get('clflush size','')=='64':
-- return True
-- if self.info[0].get('uname_m','')=='x86_64':
-- return True
-- if self.info[0].get('arch','')=='IA-64':
-- return True
-- return False
--
-- def _is_32bit(self):
-- return not self.is_64bit()
--
- class IRIXCPUInfo(CPUInfoBase):
- info = None
-
-@@ -412,11 +427,6 @@
-
- def _not_impl(self): pass
-
-- def _is_32bit(self):
-- return self.info['isainfo_b']=='32'
-- def _is_64bit(self):
-- return self.info['isainfo_b']=='64'
--
- def _is_i386(self):
- return self.info['isainfo_n']=='i386'
- def _is_sparc(self):
-@@ -552,7 +562,7 @@
- # require looking at the 'brand' from cpuid
-
- def _is_AMD64(self):
-- return self.is_AMD() and self.info[0]['Family'] == 15
-+ return self.is_AMD() and self.info[0]['Family'] in [15,16]
-
- # Intel
-
diff --git a/dev-python/numpy/files/numpy-1.0.4-freebsd.patch b/dev-python/numpy/files/numpy-1.0.4-freebsd.patch
deleted file mode 100644
index a0d86f13e8ec..000000000000
--- a/dev-python/numpy/files/numpy-1.0.4-freebsd.patch
+++ /dev/null
@@ -1,69 +0,0 @@
-diff -Nur numpy-1.0.4.old/numpy/core/include/numpy/ufuncobject.h numpy-1.0.4/numpy/core/include/numpy/ufuncobject.h
---- numpy-1.0.4.old/numpy/core/include/numpy/ufuncobject.h 2007-11-07 15:05:15 -0700
-+++ numpy-1.0.4/numpy/core/include/numpy/ufuncobject.h 2007-11-20 18:10:46 -0700
-@@ -223,6 +223,10 @@
- /* This code checks the IEEE status flags in a platform-dependent way */
- /* Adapted from Numarray */
-
-+#if (defined(__unix__) || defined(unix)) && !defined(USG)
-+#include <sys/param.h>
-+#endif
-+
- /* OSF/Alpha (Tru64) ---------------------------------------------*/
- #if defined(__osf__) && defined(__alpha)
-
-@@ -267,7 +271,7 @@
- /* Solaris --------------------------------------------------------*/
- /* --------ignoring SunOS ieee_flags approach, someone else can
- ** deal with that! */
--#elif defined(sun) || defined(__BSD__) || defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__)
-+#elif defined(sun) || defined(__BSD__) || defined(__OpenBSD__) || (defined(__FreeBSD__) && (__FreeBSD_version < 502114)) || defined(__NetBSD__)
- #include <ieeefp.h>
-
- #define UFUNC_CHECK_STATUS(ret) { \
-@@ -281,9 +285,9 @@
- (void) fpsetsticky(0); \
- }
-
--#elif defined(__GLIBC__) || defined(__APPLE__) || defined(__CYGWIN__) || defined(__MINGW32__)
-+#elif defined(__GLIBC__) || defined(__APPLE__) || defined(__CYGWIN__) || defined(__MINGW32__) || (defined(__FreeBSD__) && (__FreeBSD_version >= 502114))
-
--#if defined(__GLIBC__) || defined(__APPLE__) || defined(__MINGW32__)
-+#if defined(__GLIBC__) || defined(__APPLE__) || defined(__MINGW32__) || defined(__FreeBSD__)
- #include <fenv.h>
- #elif defined(__CYGWIN__)
- #include "fenv/fenv.c"
-diff -Nur numpy-1.0.4.old/numpy/numarray/_capi.c numpy-1.0.4/numpy/numarray/_capi.c
---- numpy-1.0.4.old/numpy/numarray/_capi.c 2007-11-07 15:05:16 -0700
-+++ numpy-1.0.4/numpy/numarray/_capi.c 2007-11-20 18:05:20 -0700
-@@ -4,7 +4,11 @@
- #include "numpy/libnumarray.h"
- #include <float.h>
-
--#if defined(__GLIBC__) || defined(__APPLE__) || defined(__MINGW32__)
-+#if (defined(__unix__) || defined(unix)) && !defined(USG)
-+#include <sys/param.h>
-+#endif
-+
-+#if defined(__GLIBC__) || defined(__APPLE__) || defined(__MINGW32__) || (defined(__FreeBSD__) && (__FreeBSD_version >= 502114))
- #include <fenv.h>
- #elif defined(__CYGWIN__)
- #include "numpy/fenv/fenv.h"
-@@ -231,7 +235,7 @@
- }
-
- /* Likewise for Integer overflows */
--#if defined(__GLIBC__) || defined(__APPLE__) || defined(__CYGWIN__) || defined(__MINGW32__)
-+#if defined(__GLIBC__) || defined(__APPLE__) || defined(__CYGWIN__) || defined(__MINGW32__) || (defined(__FreeBSD__) && (__FreeBSD_version >= 502114))
- static int int_overflow_error(Float64 value) { /* For x86_64 */
- feraiseexcept(FE_OVERFLOW);
- return (int) value;
-@@ -2939,7 +2943,7 @@
- return retstatus;
- }
-
--#elif defined(__GLIBC__) || defined(__APPLE__) || defined(__CYGWIN__) || defined(__MINGW32__)
-+#elif defined(__GLIBC__) || defined(__APPLE__) || defined(__CYGWIN__) || defined(__MINGW32__) || (defined(__FreeBSD__) && (__FreeBSD_version >= 502114))
-
- static int
- NA_checkFPErrors(void)
diff --git a/dev-python/numpy/numpy-1.0.4-r2.ebuild b/dev-python/numpy/numpy-1.0.4-r2.ebuild
deleted file mode 100644
index ac7702fe6ebe..000000000000
--- a/dev-python/numpy/numpy-1.0.4-r2.ebuild
+++ /dev/null
@@ -1,131 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/numpy/numpy-1.0.4-r2.ebuild,v 1.14 2009/04/06 18:17:44 armin76 Exp $
-
-NEED_PYTHON=2.3
-
-inherit distutils eutils flag-o-matic fortran
-
-DESCRIPTION="Fast array and numerical python library"
-SRC_URI="mirror://sourceforge/numpy/${P}.tar.gz"
-HOMEPAGE="http://numeric.scipy.org/"
-
-RDEPEND="lapack? ( virtual/cblas virtual/lapack )"
-DEPEND="${RDEPEND}
- lapack? ( dev-util/pkgconfig )"
-
-IUSE="lapack"
-SLOT="0"
-KEYWORDS="alpha amd64 ~arm hppa ia64 ~mips ppc ppc64 s390 ~sh sparc x86 ~x86-fbsd"
-LICENSE="BSD"
-
-# whatever LDFLAGS set will break linking
-# see progress in http://projects.scipy.org/scipy/numpy/ticket/573
-if [ -n "${LDFLAGS}" ]; then
- append-ldflags -shared
-else
- LDFLAGS="-shared"
-fi
-
-pkg_setup() {
- # only one fortran to link with:
- # linking with cblas and lapack library will force
- # autodetecting and linking to all available fortran compilers
- use lapack || return
- FORTRAN="gfortran g77 ifc"
- fortran_pkg_setup
- local fc=
- case ${FORTRANC} in
- gfortran) fc=gnu95 ;;
- g77) fc=gnu ;;
- ifc|ifort)
- if use ia64; then
- fc=intele
- elif use amd64; then
- fc=intelem
- else
- fc=intel
- fi
- ;;
- *) eerror "Unknown fortran compiler: ${FORTRANC}"
- die "numpy_fortran_setup failed" ;;
- esac
-
- # when fortran flags are set, pic is removed.
- use amd64 && FFLAGS="${FFLAGS} -fPIC"
- export NUMPY_FCONFIG="config_fc --fcompiler=${fc}"
-}
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
-
- # Fix some paths and docs in f2py
- epatch "${FILESDIR}"/${PN}-1.0.1-f2py.patch
-
- # Patch to use feclearexcept(3) rather than fpsetsticky(3) on FreeBSD 5.3+
- epatch "${FILESDIR}"/${P}-freebsd.patch
-
- # Detect phenom and nocona hardware correctly. Bug #183236.
- epatch "${FILESDIR}"/${P}-cpuinfo.patch
-
- if use lapack; then
- append-ldflags "$(pkg-config --libs-only-other cblas lapack)"
- # cblas and lapack libraries under the name of atlas
- # otherwise fast _dotblas is not built
- cat >> site.cfg <<-EOF
- [atlas]
- include_dirs = $(pkg-config --cflags-only-I cblas lapack \
- | sed -e 's/^-I//' -e 's/ -I/:/g')
- library_dirs = $(pkg-config --libs-only-L cblas lapack \
- | sed -e 's/^-L//' -e 's/ -L/:/g')
- atlas_libs = $(pkg-config --libs-only-l cblas \
- | 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')
- EOF
- else
- export {ATLAS,PTATLAS,BLAS,LAPACK,MKL}=None
- fi
-}
-
-src_compile() {
- # when fortran flags are set, pic is removed but unfortunately needed
- distutils_src_compile ${NUMPY_FCONFIG}
-}
-
-src_test() {
- "${python}" setup.py ${NUMPY_FCONFIG} install \
- --home="${S}"/test \
- --no-compile \
- || die "install test failed"
-
- pushd "${S}"/test/lib*/python
- PYTHONPATH=. "${python}" -c "import numpy; numpy.test(10,3)" 2>&1 \
- | tee test.log
- grep -q '^OK$' test.log || die "test failed"
- popd
-
- rm -rf test
-}
-
-src_install() {
- distutils_src_install ${NUMPY_FCONFIG}
-
- docinto numpy
- dodoc numpy/doc/*txt || die "dodoc failed"
-
- docinto f2py
- dodoc numpy/f2py/docs/*txt || die "dodoc f2py failed"
- doman numpy/f2py/f2py.1 || die "doman failed"
-}
-
-pkg_postinst() {
- if ! built_with_use sys-devel/gcc fortran &&
- ! has_version dev-lang/ifc
- then
- ewarn "To use numpy's f2py you need a fortran compiler."
- ewarn "You can either set USE=fortran flag and re-install gcc,"
- ewarn "or install dev-lang/ifc"
- fi
-}
diff --git a/dev-python/numpy/numpy-1.1.1.ebuild b/dev-python/numpy/numpy-1.1.1.ebuild
deleted file mode 100644
index ef23818b1232..000000000000
--- a/dev-python/numpy/numpy-1.1.1.ebuild
+++ /dev/null
@@ -1,126 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/numpy/numpy-1.1.1.ebuild,v 1.5 2009/04/06 18:17:44 armin76 Exp $
-
-NEED_PYTHON=2.4
-
-inherit distutils eutils flag-o-matic fortran
-
-DESCRIPTION="Fast array and numerical python library"
-SRC_URI="mirror://sourceforge/numpy/${P}.tar.gz"
-HOMEPAGE="http://numeric.scipy.org/"
-
-RDEPEND="lapack? ( virtual/cblas virtual/lapack )"
-DEPEND="${RDEPEND}
- lapack? ( dev-util/pkgconfig )"
-
-IUSE="lapack"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
-LICENSE="BSD"
-
-# whatever LDFLAGS set will break linking
-# see progress in http://projects.scipy.org/scipy/numpy/ticket/573
-if [ -n "${LDFLAGS}" ]; then
- append-ldflags -shared
-else
- LDFLAGS="-shared"
-fi
-
-pkg_setup() {
- # only one fortran to link with:
- # linking with cblas and lapack library will force
- # autodetecting and linking to all available fortran compilers
- use lapack || return
- FORTRAN="gfortran g77 ifc"
- fortran_pkg_setup
- local fc=
- case ${FORTRANC} in
- gfortran) fc=gnu95 ;;
- g77) fc=gnu ;;
- ifc|ifort)
- if use ia64; then
- fc=intele
- elif use amd64; then
- fc=intelem
- else
- fc=intel
- fi
- ;;
- *) eerror "Unknown fortran compiler: ${FORTRANC}"
- die "numpy_fortran_setup failed" ;;
- esac
-
- # when fortran flags are set, pic is removed.
- use amd64 && FFLAGS="${FFLAGS} -fPIC"
- export NUMPY_FCONFIG="config_fc --fcompiler=${fc}"
-}
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
-
- # Fix some paths and docs in f2py
- epatch "${FILESDIR}"/${PN}-1.1.0-f2py.patch
- if use lapack; then
- append-ldflags "$(pkg-config --libs-only-other cblas lapack)"
- sed -i -e '/NO_ATLAS_INFO/,+1d' numpy/core/setup.py || die
- cat >> site.cfg <<-EOF
- [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 \
- | sed -e 's/^-L//' -e 's/ -L/:/g')
- libraries = $(pkg-config --libs-only-l cblas \
- | 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')
- libraries = $(pkg-config --libs-only-l lapack \
- | sed -e 's/^-l//' -e 's/ -l/, /g' -e 's/,.pthread//g')
- EOF
- else
- export {ATLAS,PTATLAS,BLAS,LAPACK,MKL}=None
- fi
-}
-
-src_compile() {
- # when fortran flags are set, pic is removed but unfortunately needed
- distutils_src_compile ${NUMPY_FCONFIG}
-}
-
-src_test() {
- "${python}" setup.py ${NUMPY_FCONFIG} install \
- --home="${S}"/test \
- --no-compile \
- || die "install test failed"
-
- pushd "${S}"/test/lib*/python
- PYTHONPATH=. "${python}" -c "import numpy; numpy.test(10,3)" 2>&1 \
- | tee test.log
- grep -q '^OK$' test.log || die "test failed"
- popd
-
- rm -rf test
-}
-
-src_install() {
- distutils_src_install ${NUMPY_FCONFIG}
-
- docinto numpy
- dodoc numpy/doc/*txt || die "dodoc failed"
-
- docinto f2py
- dodoc numpy/f2py/docs/*txt || die "dodoc f2py failed"
- doman numpy/f2py/f2py.1 || die "doman failed"
-}
-
-pkg_postinst() {
- if ! built_with_use sys-devel/gcc fortran &&
- ! has_version dev-lang/ifc
- then
- ewarn "To use numpy's f2py you need a fortran compiler."
- ewarn "You can either set USE=fortran flag and re-install gcc,"
- ewarn "or install dev-lang/ifc"
- fi
-}