/[gentoo-x86]/sci-chemistry/pymol-apbs-plugin/pymol-apbs-plugin-2.1_p26.ebuild
Gentoo

Contents of /sci-chemistry/pymol-apbs-plugin/pymol-apbs-plugin-2.1_p26.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Wed Apr 8 18:22:14 2015 UTC (2 years, 9 months ago) by mgorny
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +3 -3 lines
Drop old Python implementations

(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!)

1 # Copyright 1999-2015 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-2.1_p26.ebuild,v 1.2 2014/07/10 09:29:13 nimiux Exp $
4
5 EAPI=5
6
7 PYTHON_COMPAT=( python2_7 )
8
9 inherit eutils python-r1
10
11 MY_PV="${PV##*_p}"
12
13 DESCRIPTION="APBS plugin for pymol"
14 HOMEPAGE="http://sourceforge.net/projects/pymolapbsplugin/"
15 SRC_URI="http://sourceforge.net/p/pymolapbsplugin/code/${MY_PV}/tree/trunk/src/apbsplugin.py?format=raw -> ${P}.py"
16
17 SLOT="0"
18 KEYWORDS="amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
19 LICENSE="pymol"
20 IUSE=""
21
22 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
23
24 RDEPEND="
25 ${PYTHON_DEPS}
26 sci-chemistry/apbs
27 sci-chemistry/pdb2pqr
28 !<sci-chemistry/pymol-1.2.2-r1"
29 DEPEND="${RDEPEND}"
30
31 src_unpack() {
32 mkdir "${S}"
33 cp "${DISTDIR}"/${P}.py "${S}"/
34 }
35
36 src_prepare() {
37 epatch "${FILESDIR}"/${P}-tcltk8.6.patch
38 python_copy_sources
39 }
40
41 src_install() {
42 installation() {
43 cd "${BUILD_DIR}" || die
44 sed \
45 -e "s:^APBS_BINARY_LOCATION.*:APBS_BINARY_LOCATION = \"${EPREFIX}/usr/bin/apbs\":g" \
46 -e "s:^APBS_PSIZE_LOCATION.*:APBS_PSIZE_LOCATION = \"${EPREFIX}/$(python_get_sitedir)/pdb2pqr/src/\":g" \
47 -e "s:^APBS_PDB2PQR_LOCATION.*:APBS_PDB2PQR_LOCATION = \"${EPREFIX}/$(python_get_sitedir)/pdb2pqr/\":g" \
48 -e "s:^TEMPORARY_FILE_DIR.*:TEMPORARY_FILE_DIR = \"./\":g" \
49 ${P}.py > apbs_tools.py
50
51 python_moduleinto pmg_tk/startup
52 python_domodule apbs_tools.py || die
53 python_optimize
54 }
55 python_parallel_foreach_impl installation
56 }

  ViewVC Help
Powered by ViewVC 1.1.20