/[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.6 - (show annotations) (download)
Tue Mar 23 13:53:50 2010 UTC (8 years, 3 months ago) by fauli
Branch: MAIN
Changes since 1.5: +2 -2 lines
stable x86, bug 309007
(Portage version: 2.1.7.17/cvs/Linux i686)

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_p15.ebuild,v 1.5 2010/03/11 14:18:31 josejx Exp $
4
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 KEYWORDS="~amd64 ~ppc x86 ~amd64-linux ~x86-linux"
18 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 RESTRICT_PYTHON_ABIS="3.*"
27
28 src_unpack() {
29 mkdir "${S}"
30 cp "${DISTDIR}"/${P}.py "${S}"/
31 python_copy_sources
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