# $Header: /magellan-cvs/smage/numeric/numeric-24.2-r3.smage2,v 1.1 2008/04/20 22:47:33 niro Exp $ PNAME="numeric" PVER="24.2" PBUILD="r3" PCATEGORIE="dev-python" STATE="unstable" DESCRIPTION="Numerical Python adds a fast and sophisticated array facility to the Python language." HOMEPAGE="http://numpy.scipy.org/" DEPEND=">= dev-lang/python-2.5" SRCFILE="${PNAME/n/N}-${PVER}.tar.gz" SRCDIR="${BUILDDIR}/${PNAME/n/N}-${PVER}" sminclude python MPVER="${PVER}" SPECIAL_FUNCTIONS="get_python_version" SPECIAL_VARS="MPVER" SRC_URI=( sourceforge://numpy/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/${PNAME}-${PVER}-arrayobject.patch mirror://${PNAME}/${PNAME}-${PVER}-umath.patch mirror://${PNAME}/${PNAME}-${PVER}-eigen.patch mirror://${PNAME}/${PNAME}-${PVER}-test.patch mirror://${PNAME}/${PNAME}-${PVER}-python25.patch mirror://${PNAME}/${PNAME}-${PVER}-dotblas.patch ) src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # apply some fixes from gentoo # fix list problem mpatch ${PNAME}-${PVER}-arrayobject.patch || die # fix skips of acosh, asinh mpatch ${PNAME}-${PVER}-umath.patch || die # fix eigenvalue hang mpatch ${PNAME}-${PVER}-eigen.patch || die # fix a bug in the test mpatch ${PNAME}-${PVER}-test.patch || die # fix only for python-2.5 mpatch ${PNAME}-${PVER}-python25.patch || die # fix for dotblas from uncommited cvs mpatch ${PNAME}-${PVER}-dotblas.patch || die } preinstall() { # with older setuptools this one is a file, newer one install a directory if [[ -f /usr/$(mlibdir)/python$(get_python_version)/site-packages/Numeric/Numeric-${MPVER}-py$(get_python_version).egg-info ]] then rm /usr/$(mlibdir)/python$(get_python_version)/site-packages/Numeric/Numeric-${MPVER}-py$(get_python_version).egg-info fi }