aboutsummaryrefslogtreecommitdiff
blob: ac01077c5cfbcbaddb29be9fdcbf3be177994e1c (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
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=2

inherit distutils multilib python eutils

MY_PN="PyRx"
MY_P=${MY_PN}-${PV}
DESCRIPTION="GUI for Virtual Screening with AutoDock"
HOMEPAGE="http://pyrx.sf.net"
SRC_URI="http://pyrx.scripps.edu/download/${PV}/${MY_P}-Source.zip"
LICENSE="free-noncomm"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""
RDEPEND=">=sci-chemistry/mgltools-autodocktools-1.5.4
	dev-python/wxpython
	sci-libs/vtk
	dev-python/enthoughtbase
	dev-python/traits
	sci-visualization/mayavi
	dev-python/opal-client
	>=sci-chemistry/openbabel-2.2.1
	>=sci-chemistry/autodock-4
	>=sci-chemistry/autodock-vina-1.1.1"
DEPEND="${RDEPEND}"
S=${WORKDIR}

src_prepare() {
	epatch "${FILESDIR}"/use-external-opal.patch
}

src_install() {
	distutils_src_install

	PYVER=$(python_get_version)
	PYRX="${D}usr/$(get_libdir)/python${PYVER}/site-packages/${MY_PN}"
	cp -r PyRx/Images/silk_icons \
		${PYRX}/Images/ \
		|| die
	cp PyRx/preferences.ini \
		${PYRX}/ \
		|| die

	dodoc README.txt || die
}