blob: d1a39424b584c01bc7ae2ec82ffbbaff8387c7ec (
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
61
62
63
64
65
66
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/caver/caver-2.1.1.ebuild,v 1.1 2011/01/17 19:08:12 jlec Exp $
EAPI="3"
SUPPORT_PYTHON_ABIS="1"
RESTRICT_PYTHON_ABIS="2.4 3.*"
inherit multilib python eutils versionator java-utils-2
MY_PV="$(replace_version_separator 2 -v $(replace_version_separator 1 _ ${PV}))"
MY_P="Caver2_1_1_pymol_plugin"
DESCRIPTION="Calculation of pathways from buried cavities to outside solvent in protein structures"
HOMEPAGE="http://loschmidt.chemi.muni.cz/caver/"
SRC_URI="${MY_P}.zip"
LICENSE="CAVER"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
IUSE=""
RDEPEND="
>=virtual/jre-1.6
sci-chemistry/pymol"
DEPEND="app-arch/unzip"
RESTRICT="fetch"
S="${WORKDIR}/${MY_P}"/linux_mac
pkg_nofetch() {
elog "Download ${MY_P}.tar.gz"
elog "from ${HOMEPAGE}. This requires registration."
elog "Place tarballs in ${DISTDIR}."
}
src_prepare() {
python_copy_sources
}
src_install() {
java-pkg_dojar Caver$(replace_all_version_separators _ ${PV})/*.jar
java-pkg_jarinto /usr/share/${PN}/lib/lib/
java-pkg_dojar Caver$(replace_all_version_separators _ ${PV})/lib/*.jar
installation() {
sed \
-e "s:directory/where/jar/with/plugin/is/located:${EPREFIX}/usr/share/${PN}/lib/:g" \
-i Caver$(replace_all_version_separators _ ${PV}).py || die
insinto $(python_get_sitedir)/pmg_tk/startup/
doins Caver$(replace_all_version_separators _ ${PV}).py || die
}
python_execute_function -s installation
}
pkg_postinst() {
python_mod_optimize pmg_tk/startup/Caver$(replace_all_version_separators _ ${PV}).py
}
pkg_postrm() {
python_mod_cleanup pmg_tk/startup/Caver$(replace_all_version_separators _ ${PV}).py
}
|