/[gentoo-x86]/sci-chemistry/pymol-apbs-plugin/pymol-apbs-plugin-0_p18.ebuild
Gentoo

Contents of /sci-chemistry/pymol-apbs-plugin/pymol-apbs-plugin-0_p18.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu Jun 24 18:02:19 2010 UTC (7 years, 3 months ago) by angelos
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +2 -2 lines
Stable on amd64 wrt bug #309007
(Portage version: 2.1.8.3/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-chemistry/pymol-apbs-plugin/pymol-apbs-plugin-0_p18.ebuild,v 1.1 2010/06/09 06:48:36 jlec Exp $
4
5 EAPI="3"
6
7 PYTHON_DEPEND="2"
8 SUPPORT_PYTHON_ABIS="1"
9
10 inherit python
11
12 MY_PV="${PV##*_p}"
13
14 DESCRIPTION="APBS plugin for pymol"
15 HOMEPAGE="http://sourceforge.net/projects/pymolapbsplugin/"
16 SRC_URI="http://pymolapbsplugin.svn.sourceforge.net/viewvc/pymolapbsplugin/trunk/src/apbsplugin.py?revision=${MY_PV} -> ${P}.py"
17
18 SLOT="0"
19 KEYWORDS="amd64 ~ppc x86 ~amd64-linux ~x86-linux"
20 LICENSE="pymol"
21 IUSE=""
22
23 RDEPEND="
24 sci-chemistry/apbs
25 sci-chemistry/pdb2pqr
26 !<sci-chemistry/pymol-1.2.2-r1"
27 DEPEND="${RDEPEND}"
28 RESTRICT_PYTHON_ABIS="3.*"
29
30 src_unpack() {
31 mkdir "${S}"
32 cp "${DISTDIR}"/${P}.py "${S}"/
33 python_copy_sources
34 }
35
36 src_install() {
37 installation() {
38 sed \
39 -e "s:^APBS_BINARY_LOCATION.*:APBS_BINARY_LOCATION = \"${EPREFIX}/usr/bin/apbs\":g" \
40 -e "s:^APBS_PSIZE_LOCATION.*:APBS_PSIZE_LOCATION = \"${EPREFIX}/$(python_get_sitedir)/pdb2pqr/src/\":g" \
41 -e "s:^APBS_PDB2PQR_LOCATION.*:APBS_PDB2PQR_LOCATION = \"${EPREFIX}/$(python_get_sitedir)/pdb2pqr/\":g" \
42 -e "s:^TEMPORARY_FILE_DIR.*:TEMPORARY_FILE_DIR = \"./\":g" \
43 -i ${P}.py
44
45 insinto $(python_get_sitedir)/pmg_tk/startup/
46 newins ${P}.py apbs_tools.py || die
47 }
48 python_execute_function -s installation
49 }
50
51 pkg_postinst() {
52 python_mod_optimize pmg_tk/startup/apbs_tools.py
53 }
54
55 pkg_postrm() {
56 python_mod_cleanup pmg_tk/startup/apbs_tools.py
57 }

  ViewVC Help
Powered by ViewVC 1.1.20