/[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.7 - (hide annotations) (download)
Wed Jun 9 06:48:36 2010 UTC (8 years, 5 months ago) by jlec
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +3 -1 lines
Version Bump, fixes for python.eclass usage
(Portage version: 2.2_rc67/cvs/Linux x86_64, RepoMan options: --force)

1 jlec 1.1 # Copyright 1999-2010 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 jlec 1.7 # $Header: /var/cvsroot/gentoo-x86/sci-chemistry/pymol-apbs-plugin/pymol-apbs-plugin-0_p15.ebuild,v 1.6 2010/03/23 13:53:50 fauli Exp $
4 jlec 1.1
5     EAPI="3"
6 jlec 1.7
7     PYTHON_DEPEND="2"
8 jlec 1.1 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 fauli 1.6 KEYWORDS="~amd64 ~ppc x86 ~amd64-linux ~x86-linux"
20 jlec 1.1 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 jlec 1.3 RESTRICT_PYTHON_ABIS="3.*"
29 jlec 1.1
30     src_unpack() {
31     mkdir "${S}"
32     cp "${DISTDIR}"/${P}.py "${S}"/
33 arfrever 1.4 python_copy_sources
34 jlec 1.1 }
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