summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2010-10-28 20:01:40 +0000
committerJustin Lecher <jlec@gentoo.org>2010-10-28 20:01:40 +0000
commitee8fbdfd5eadefb60d07323c3e0f682b0da95412 (patch)
treeec6339ebc9529173b0fe387eb64ef8bf10ad3668 /sci-chemistry/pdb-tools
parentVersion bump (thanks to wired for helping). This version adds support for fil... (diff)
downloadgentoo-2-ee8fbdfd5eadefb60d07323c3e0f682b0da95412.tar.gz
gentoo-2-ee8fbdfd5eadefb60d07323c3e0f682b0da95412.tar.bz2
gentoo-2-ee8fbdfd5eadefb60d07323c3e0f682b0da95412.zip
important fix and Support for Python ABIs
(Portage version: 2.2.0_alpha2/cvs/Linux x86_64)
Diffstat (limited to 'sci-chemistry/pdb-tools')
-rw-r--r--sci-chemistry/pdb-tools/ChangeLog8
-rw-r--r--sci-chemistry/pdb-tools/pdb-tools-0.1.4-r2.ebuild (renamed from sci-chemistry/pdb-tools/pdb-tools-0.1.4-r1.ebuild)43
2 files changed, 30 insertions, 21 deletions
diff --git a/sci-chemistry/pdb-tools/ChangeLog b/sci-chemistry/pdb-tools/ChangeLog
index 208f29c57e01..455851ac3ab9 100644
--- a/sci-chemistry/pdb-tools/ChangeLog
+++ b/sci-chemistry/pdb-tools/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sci-chemistry/pdb-tools
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/pdb-tools/ChangeLog,v 1.2 2010/10/28 16:43:25 jlec Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/pdb-tools/ChangeLog,v 1.3 2010/10/28 20:01:39 jlec Exp $
+
+*pdb-tools-0.1.4-r2 (28 Oct 2010)
+
+ 28 Oct 2010; Justin Lecher <jlec@gentoo.org> -pdb-tools-0.1.4-r1.ebuild,
+ +pdb-tools-0.1.4-r2.ebuild:
+ important fix and Support for Python ABIs
*pdb-tools-0.1.4-r1 (28 Oct 2010)
diff --git a/sci-chemistry/pdb-tools/pdb-tools-0.1.4-r1.ebuild b/sci-chemistry/pdb-tools/pdb-tools-0.1.4-r2.ebuild
index 84d913416243..40de5820edb0 100644
--- a/sci-chemistry/pdb-tools/pdb-tools-0.1.4-r1.ebuild
+++ b/sci-chemistry/pdb-tools/pdb-tools-0.1.4-r2.ebuild
@@ -1,9 +1,12 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/pdb-tools/pdb-tools-0.1.4-r1.ebuild,v 1.1 2010/10/28 16:43:25 jlec Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/pdb-tools/pdb-tools-0.1.4-r2.ebuild,v 1.1 2010/10/28 20:01:39 jlec Exp $
EAPI="3"
+
PYTHON_DEPEND="2"
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="3.*"
inherit python fortran
@@ -12,7 +15,7 @@ HOMEPAGE="http://code.google.com/p/pdb-tools"
SRC_URI="http://${PN}.googlecode.com/files/${PN}_${PV}.tar.gz"
SLOT="0"
-KEYWORDS="~amd64 ~x86"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
LICENSE="GPL-3"
IUSE=""
@@ -23,14 +26,7 @@ FORTRANC="ifc gfortran"
S="${WORKDIR}"/${PN}_${PV}
-pkg_setup() {
- python_set_active_version 2
- fortran_pkg_setup
-}
-
src_prepare() {
- python_convert_shebangs -r 2 .
- PDB_PY="$(ls pdb_*.py)"
sed "s:script_dir,\"pdb_data\":\"${EPREFIX}/usr/share/${PN}\",\"pdb_data\":g" -i pdb_sasa.py || die
sed "/satk_path =/s:^.*$:satk_path = \"${EPREFIX}/usr/bin\":g" -i pdb_satk.py || die
}
@@ -51,25 +47,32 @@ src_install() {
doins -r pdb_data/peptides || die
rm -rf pdb_data/peptides || die
- insinto $(python_get_sitedir)
- doins -r *.py helper pdb_data || die
+ installation() {
+ insinto $(python_get_sitedir)
+ doins -r helper pdb_data || die
- for i in ${PDB_PY}; do
- cat >> ${i/.py} <<- EOF
- #!${EPREFIX}/bin/bash
- $(PYTHON) -O "${EPREFIX}"$(python_get_sitedir)/${i} \$@
- EOF
- dobin ${i/.py}
- done
+ insinto $(python_get_sitedir)/${PN}
+ doins *.py || die
+
+ for i in pdb_*.py; do
+ cat >> ${i/.py} <<- EOF
+ #!${EPREFIX}/bin/bash
+ $(PYTHON) -O "${EPREFIX}$(python_get_sitedir)/${PN}/${i}" \$@
+ EOF
+ dobin ${i/.py}
+ done
+ }
+
+ python_execute_function installation
dobin bin/* || die
dodoc README || die
}
pkg_postinst() {
- python_mod_optimize ${PDB_PY} helper pdb_data
+ python_mod_optimize ${PN} helper pdb_data
}
pkg_postrm() {
- python_mod_cleanup ${PDB_PY} helper pdb_data
+ python_mod_cleanup ${PN} helper pdb_data
}