/[gentoo-x86]/sci-libs/pymmlib/pymmlib-0.9.8.ebuild
Gentoo

Contents of /sci-libs/pymmlib/pymmlib-0.9.8.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Mon Apr 11 10:02:44 2011 UTC (8 years, 10 months ago) by xarthisius
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +1 -1 lines
FILE REMOVED
ppc stable wrt #321873, drop old.

(Portage version: 2.2.0_alpha29/cvs/Linux x86_64)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-libs/pymmlib/pymmlib-0.9.8.ebuild,v 1.9 2010/09/16 17:30:08 scarabeus Exp $
4
5 inherit multilib python
6
7 DESCRIPTION="Software toolkit and library of routines for the analysis and manipulation of macromolecular structural models"
8 HOMEPAGE="http://pymmlib.sourceforge.net/"
9 SRC_URI="mirror://sourceforge/pymmlib/${P}.tar.gz"
10 LICENSE="Artistic"
11 SLOT="0"
12 KEYWORDS="ppc x86"
13 IUSE=""
14 RDEPEND="media-libs/freeglut
15 dev-python/pygtkglext
16 >=dev-python/numpy-0.9.8
17 virtual/opengl
18 virtual/glu
19 x11-libs/libXmu"
20 DEPEND="${RDEPEND}"
21
22 src_compile() {
23 python setup.py build || die "build failed"
24 }
25
26 src_install() {
27 python setup.py install --prefix="${D}/usr" || die "install failed"
28 dobin "${S}"/applications/* "${S}"/examples/*
29 dodoc "${S}"/README.txt
30 dohtml -r "${S}"/doc
31
32 # numpy >= 0.9.8 moved lost of numpy.linalg methods to numpy.linalg.old
33 local b="numpy.linalg"
34 ebegin "Updating for numpy >= 0.9.8"
35 find "${D}" -name '*.py' \
36 | xargs sed -i \
37 -e "s:\(${b}.\)\(determinant\):\1old.\2:g" \
38 -e "s:\(${b}.\)\(eigenvalues\):\1old.\2:g" \
39 -e "s:\(${b}.\)\(eigenvectors\):\1old.\2:g" \
40 -e "s:\(${b}.\)\(inverse\):\1old.\2:g" \
41 -e "s:\(import numpy\):\1\nimport numpy.linalg.old:g"
42 eend $?
43 }
44
45 pkg_postinst() {
46 python_mod_optimize $(python_get_sitedir)/mmLib
47 }
48
49 pkg_postrm() {
50 python_mod_cleanup $(python_get_sitedir)/mmLib
51 }

  ViewVC Help
Powered by ViewVC 1.1.20