blob: b51fcfe4eeb9abda6f0e1d747b95b92f4add6a5b (
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
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
PYTHON_COMPAT=( python2_7 )
inherit eutils python-r1
DESCRIPTION="Assistance tool for the difficult to understand user interface of PyMOL"
HOMEPAGE="http://www.rit.edu/cos/ezviz/index.html"
SRC_URI="http://www.rit.edu/cos/ezviz/EZ_Viz.zip -> ${P}.zip"
SLOT="0"
LICENSE="all-rights-reserved"
KEYWORDS="~amd64 ~x86"
IUSE="doc"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RDEPEND="
${PYTHON_DEPS}
sci-chemistry/pymol[${PYTHON_USEDEP}]"
DEPEND="app-arch/unzip"
S="${WORKDIR}/EZ_Viz Folder"
src_prepare() {
edos2unix ez-viz.py
epatch "${FILESDIR}"/gentoo.patch
for gif in *.GIF; do
mv ${gif} ${gif/.GIF/.gif} || die
done
python_copy_sources
preperation() {
cd "${BUILD_DIR}" || die
sed \
-e "s:GENTOOPYMOL:${EPREFIX}/$(python_get_sitedir):g" \
-i ez-viz.py || die
}
python_foreach_impl preperation
}
src_install() {
installation() {
cd "${BUILD_DIR}" || die
python_moduleinto pmg_tk/startup/
python_domodule *.py
python_moduleinto pmg_tk/startup/ez-viz/
python_domodule *.gif
}
python_foreach_impl installation
python_foreach_impl python_optimize
dodoc readme.txt
}
|