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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Tue Feb 23 08:59:18 2010 UTC (8 years, 4 months ago) by jlec
Branch: MAIN
Changes since 1.2: +2 -1 lines
RESTRICT_PYTHON_ABIS="3.*"
(Portage version: 2.2_rc62/cvs/Linux i686)

1 jlec 1.1 # Copyright 1999-2010 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 jlec 1.3 # $Header: /var/cvsroot/gentoo-x86/sci-chemistry/pymol-apbs-plugin/pymol-apbs-plugin-0_p15.ebuild,v 1.2 2010/02/19 07:49:15 jlec Exp $
4 jlec 1.1
5     EAPI="3"
6     SUPPORT_PYTHON_ABIS="1"
7    
8     inherit python
9    
10     MY_PV="${PV##*_p}"
11    
12     DESCRIPTION="APBS plugin for pymol"
13     HOMEPAGE="http://sourceforge.net/projects/pymolapbsplugin/"
14     SRC_URI="http://pymolapbsplugin.svn.sourceforge.net/viewvc/pymolapbsplugin/trunk/src/apbsplugin.py?revision=${MY_PV} -> ${P}.py"
15    
16     SLOT="0"
17 jlec 1.2 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
18 jlec 1.1 LICENSE="pymol"
19     IUSE=""
20    
21     RDEPEND="
22     sci-chemistry/apbs
23     sci-chemistry/pdb2pqr
24     !<sci-chemistry/pymol-1.2.2-r1"
25     DEPEND="${RDEPEND}"
26 jlec 1.3 RESTRICT_PYTHON_ABIS="3.*"
27 jlec 1.1
28     src_unpack() {
29     mkdir "${S}"
30     cp "${DISTDIR}"/${P}.py "${S}"/
31     python_copy_sources --no-link
32     }
33    
34     src_install() {
35     installation() {
36     sed \
37     -e "s:^APBS_BINARY_LOCATION.*:APBS_BINARY_LOCATION = \"${EPREFIX}/usr/bin/apbs\":g" \
38     -e "s:^APBS_PSIZE_LOCATION.*:APBS_PSIZE_LOCATION = \"${EPREFIX}/$(python_get_sitedir)/pdb2pqr/src/\":g" \
39     -e "s:^APBS_PDB2PQR_LOCATION.*:APBS_PDB2PQR_LOCATION = \"${EPREFIX}/$(python_get_sitedir)/pdb2pqr/\":g" \
40     -e "s:^TEMPORARY_FILE_DIR.*:TEMPORARY_FILE_DIR = \"./\":g" \
41     -i ${P}.py
42    
43     insinto $(python_get_sitedir)/pmg_tk/startup/
44     newins ${P}.py apbs_tools.py || die
45     }
46     python_execute_function -s installation
47     }
48    
49     pkg_postinst() {
50     python_mod_optimize pmg_tk/startup/apbs_tools.py
51     }
52    
53     pkg_postrm() {
54     python_mod_cleanup pmg_tk/startup/apbs_tools.py
55     }

  ViewVC Help
Powered by ViewVC 1.1.20