summaryrefslogtreecommitdiff
blob: f441d3ed3f56cf793199ada5ef46547e999cbd25 (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
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/hollow/hollow-1.1.ebuild,v 1.1 2010/10/28 20:04:40 jlec Exp $

EAPI="3"

PYTHON_DEPEND="2"
SUPPORT_PYTHON_ABIS="1"
RESTRICT_PYTHON_ABIS="3.*"

inherit python

DESCRIPTION="Production of surface images of proteins"
HOMEPAGE="http://hollow.sourceforge.net/"
#SRC_URI="mirror://sourceforge/${P}.zip"
SRC_URI="http://hollow.sourceforge.net/${P}.zip"

SLOT="0"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
LICENSE="GPL-3"
IUSE=""

RDEPEND="sci-chemistry/pymol"
DEPEND="app-arch/unzip"

src_install() {
	rm -rf pdbstruct/.svn || die
	installation() {
		insinto $(python_get_sitedir)
		doins -r pdbstruct || die

		insinto $(python_get_sitedir)/${PN}
		doins *.py hollow.txt || die

		cat >> ${PN} <<- EOF
		$(PYTHON) -O "${EPREFIX}$(python_get_sitedir)/${PN}/${PN}.py" \$@
		EOF

		dobin ${PN}
	}
	python_execute_function installation

	dodoc README || die
}

pkg_postinst() {
	python_mod_optimize ${PN} pdbstruct
}

pkg_postrm() {
	python_mod_cleanup ${PN} pdbstruct
}