blob: 741b8cda236f4f0efc3ee4b5a2080a14ad018e30 (
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
55
56
57
58
59
60
|
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/pymol-plugins-promol/pymol-plugins-promol-3.0.2.ebuild,v 1.4 2013/01/22 19:11:15 jlec Exp $
EAPI="3"
PYTHON_DEPEND="2:2.5"
SUPPORT_PYTHON_ABIS="1"
RESTRICT_PYTHON_ABIS="2.4 3.*"
inherit python
DESCRIPTION="Fast and accurate regognition of active sites"
HOMEPAGE="http://www.rit.edu/cos/ezviz/ProMOL_dl.html"
SRC_URI="mirror://gentoo/${P}.tar.bz2"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~amd64-linux"
LICENSE="as-is"
IUSE=""
RDEPEND="
dev-python/pmw:0
sci-chemistry/pymol"
DEPEND=""
src_prepare() {
python_copy_sources
preparation() {
sed -e "s:./modules/pmg_tk/startup:${EPREFIX}/$(python_get_sitedir)/pmg_tk/startup/ProMol:g" -i ProMOL_302.py
}
python_execute_function -s preparation
}
src_install(){
installation() {
insinto $(python_get_sitedir)/pmg_tk/startup/ProMol/
doins -r PDB_List AminoPics Motifs *GIF pdb_entry_type.txt Master.txt Scripts || die
insinto $(python_get_sitedir)/pmg_tk/startup/
doins *.py || die
dosym ../../../../../../share/doc/${PF}/html/Help \
$(python_get_sitedir)/pmg_tk/startup/ProMol/Help || die
dosym ../../../../../../share/doc/${PF}/html/Thanks.html \
$(python_get_sitedir)/pmg_tk/startup/ProMol/Thanks.html || die
dosym ../../../../../../share/doc/${PF}/html/EDMHelp.htm \
$(python_get_sitedir)/pmg_tk/startup/ProMol/EDMHelp.htm || die
}
python_execute_function -s installation
dodoc *doc || die
dohtml -r Thanks.html EDMHelp.htm Help
}
pkg_postinst(){
python_mod_optimize pmg_tk/startup/
}
pkg_postrm() {
python_mod_cleanup pmg_tk/startup/
}
|