blob: cc5c5a579b717358176a9400cb0160b2b608c465 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/pymol-plugins-msms/pymol-plugins-msms-100415.ebuild,v 1.1 2011/03/22 08:33:08 jlec Exp $
EAPI="3"
PYTHON_DEPEND="2"
SUPPORT_PYTHON_ABIS="1"
inherit eutils python
DESCRIPTION="GUI for MSMS and displaying its results in PyMOL"
HOMEPAGE="http://www.biotec.tu-dresden.de/~hongboz/msms_pymol/msms_pymol.html"
SRC_URI="http://www.biotec.tu-dresden.de/~hongboz/msms_pymol/pymol_script/msms_pymol.py -> ${P}.py"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
LICENSE="BSD pymol"
IUSE=""
RDEPEND="
sci-chemistry/msms-bin
sci-chemistry/pymol"
DEPEND="${RDEPEND}"
src_unpack() {
mkdir "${S}"
cp "${DISTDIR}"/${A} "${S}/"
}
src_prepare() {
epatch "${FILESDIR}"/${PV}-msms.patch
sed \
-e "s:GENTOOMSMS:${EPREFIX}/opt/bin/msms:g" \
-e "s:GENTOOXYZRN:${EPREFIX}/usr/bin/pdb_to_xyzrn:g" \
-i ${A} || die
python_copy_sources
}
src_install() {
installation() {
insinto $(python_get_sitedir)/pmg_tk/startup/
doins ${P}.py || die
}
python_execute_function -s installation
}
|