/[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.2 - (hide annotations) (download)
Fri Feb 19 07:49:15 2010 UTC (8 years, 9 months ago) by jlec
Branch: MAIN
Changes since 1.1: +2 -2 lines
keyworded for {amd64,x86}-linux
(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.2 # $Header: /var/cvsroot/gentoo-x86/sci-chemistry/pymol-apbs-plugin/pymol-apbs-plugin-0_p15.ebuild,v 1.1 2010/02/11 20:26:16 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    
27     src_unpack() {
28     mkdir "${S}"
29     cp "${DISTDIR}"/${P}.py "${S}"/
30     python_copy_sources --no-link
31     }
32    
33     src_install() {
34     installation() {
35     sed \
36     -e "s:^APBS_BINARY_LOCATION.*:APBS_BINARY_LOCATION = \"${EPREFIX}/usr/bin/apbs\":g" \
37     -e "s:^APBS_PSIZE_LOCATION.*:APBS_PSIZE_LOCATION = \"${EPREFIX}/$(python_get_sitedir)/pdb2pqr/src/\":g" \
38     -e "s:^APBS_PDB2PQR_LOCATION.*:APBS_PDB2PQR_LOCATION = \"${EPREFIX}/$(python_get_sitedir)/pdb2pqr/\":g" \
39     -e "s:^TEMPORARY_FILE_DIR.*:TEMPORARY_FILE_DIR = \"./\":g" \
40     -i ${P}.py
41    
42     insinto $(python_get_sitedir)/pmg_tk/startup/
43     newins ${P}.py apbs_tools.py || die
44     }
45     python_execute_function -s installation
46     }
47    
48     pkg_postinst() {
49     python_mod_optimize pmg_tk/startup/apbs_tools.py
50     }
51    
52     pkg_postrm() {
53     python_mod_cleanup pmg_tk/startup/apbs_tools.py
54     }

  ViewVC Help
Powered by ViewVC 1.1.20