diff options
Diffstat (limited to 'sci-libs/pymmlib/pymmlib-0.9.8.ebuild')
-rw-r--r-- | sci-libs/pymmlib/pymmlib-0.9.8.ebuild | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/sci-libs/pymmlib/pymmlib-0.9.8.ebuild b/sci-libs/pymmlib/pymmlib-0.9.8.ebuild index 91498d2d6eb7..6da140484f15 100644 --- a/sci-libs/pymmlib/pymmlib-0.9.8.ebuild +++ b/sci-libs/pymmlib/pymmlib-0.9.8.ebuild @@ -1,8 +1,8 @@ # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/pymmlib/pymmlib-0.9.8.ebuild,v 1.2 2006/06/14 01:28:29 spyderous Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-libs/pymmlib/pymmlib-0.9.8.ebuild,v 1.3 2006/06/14 03:02:50 spyderous Exp $ -inherit python +inherit multilib python DESCRIPTION="Software toolkit and library of routines for the analysis and manipulation of macromolecular structural models" HOMEPAGE="http://pymmlib.sourceforge.net/" @@ -13,7 +13,7 @@ KEYWORDS="~ppc ~x86" IUSE="" RDEPEND="virtual/glut dev-python/pygtkglext - <dev-python/numpy-0.9.8 + >=dev-python/numpy-0.9.8 virtual/opengl virtual/glu || ( x11-libs/libXmu virtual/x11 )" @@ -28,8 +28,20 @@ src_install() { dobin ${S}/applications/* ${S}/examples/* dodoc ${S}/README.txt dohtml -r ${S}/doc + + # numpy >= 0.9.8 moved lost of numpy.linalg methods to numpy.linalg.old + local b="numpy.linalg" + ebegin "Updating for numpy >= 0.9.8" + find ${D} -name '*.py' \ + | xargs sed -i \ + -e "s:\(${b}.\)\(determinant\):\1old.\2:g" \ + -e "s:\(${b}.\)\(eigenvalues\):\1old.\2:g" \ + -e "s:\(${b}.\)\(eigenvectors\):\1old.\2:g" \ + -e "s:\(${b}.\)\(inverse\):\1old.\2:g" \ + -e "s:\(import numpy\):\1\nimport numpy.linalg.old:g" + eend $? } pkg_postinst() { - python_mod_optimize ${ROOT}lib/python2.4/site-packages/mmLib + python_mod_optimize ${ROOT}usr/$(get_libdir)/python2.4/site-packages/mmLib } |