blob: 63eb8e827b0f5cf11e3dbc75e75c96fb0698c93d (
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
47
48
49
50
51
52
53
54
|
# 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.3 2011/03/22 22:09:16 arfrever Exp $
EAPI="3"
PYTHON_DEPEND="2"
SUPPORT_PYTHON_ABIS="1"
RESTRICT_PYTHON_ABIS="3.* *-jython"
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
}
src_install() {
installation() {
insinto $(python_get_sitedir)/pmg_tk/startup
doins ${P}.py
}
python_execute_function installation
}
pkg_postinst() {
python_mod_optimize pmg_tk/startup/${P}.py
}
pkg_postrm() {
python_mod_cleanup pmg_tk/startup/${P}.py
}
|