diff options
author | Justin Lecher <jlec@gentoo.org> | 2010-10-28 20:04:40 +0000 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2010-10-28 20:04:40 +0000 |
commit | d2f01266137bd389b7c7a4501280a64c9d64bbf6 (patch) | |
tree | 8d7a42fe8f21691b72fe49534f48353b3004563a /sci-chemistry/hollow/hollow-1.1.ebuild | |
parent | important fix and Support for Python ABIs (diff) | |
download | gentoo-2-d2f01266137bd389b7c7a4501280a64c9d64bbf6.tar.gz gentoo-2-d2f01266137bd389b7c7a4501280a64c9d64bbf6.tar.bz2 gentoo-2-d2f01266137bd389b7c7a4501280a64c9d64bbf6.zip |
New addition
(Portage version: 2.2.0_alpha2/cvs/Linux x86_64)
Diffstat (limited to 'sci-chemistry/hollow/hollow-1.1.ebuild')
-rw-r--r-- | sci-chemistry/hollow/hollow-1.1.ebuild | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/sci-chemistry/hollow/hollow-1.1.ebuild b/sci-chemistry/hollow/hollow-1.1.ebuild new file mode 100644 index 000000000000..f441d3ed3f56 --- /dev/null +++ b/sci-chemistry/hollow/hollow-1.1.ebuild @@ -0,0 +1,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 +} |