--- /usr/portage/dev-python/Numeric/Numeric-19.0.0.ebuild Sat Nov 10 06:14:29 2001 +++ Numeric-20.3.ebuild Mon Dec 31 00:56:00 2001 @@ -1,27 +1,41 @@ # Copyright 1999-2000 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later -# Author Tod M. Neidt -# /space/gentoo/cvsroot/gentoo-x86/dev-python/Numeric/Numeric-19.0.0.ebuild,v 1.4 2001/11/10 12:14:29 hallski Exp - +# Author Tod Neidt +# /home/cvsroot/gentoo-x86/dev-python/Numeric/Numeric-19.0.0.ebuild,v 1.3 2001/08/31 03:23:38 pm Exp S=${WORKDIR}/${P} DESCRIPTION="numerical python module" SRC_URI="http://prdownloads.sourceforge.net/numpy/${P}.tar.gz" HOMEPAGE="http://www.pfdubois.com/numpy/" -DEPEND="virtual/python" - -PYTHON_VERSION= +DEPEND=">=dev-lang/python-2.1" src_compile() { - python setup_all.py build || die + +#The ebuild as is uses a small local version of BLAS and LAPACK provided +#by the Numeric package. If I ever get ATLAS and LAPACK ebuilds finished, +#we'll need to edit (sed) setup.py to use the real libraries. + + python setup_all.py build || die + } src_install() { - python setup_all.py install --prefix=${D}/usr || die - dodoc MANIFEST PKG-INFO README* + python setup_all.py install --prefix=${D}/usr || die + + dodoc MANIFEST PKG-INFO README + +#grab python verision so ebuild doesn't depend on it + local pv + pv=$(python -V 2>&1 | sed -e 's:Python \([0-9].[0-9]\).*:\1:') + +#Numerical Tutorial is nice for testing and learning + insinto /usr/lib/python${pv}/site-packages/NumTut + doins Demo/NumTut/* - #need to automate the python version in the path - mv Demo/NumTut ${D}/usr/lib/python2.0/site-packages/ } + + + +