From 9a64979f181d12d3b19c6a0d6f4edaf21a0c6e75 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Fri, 17 Feb 2017 23:31:52 +0100 Subject: sci-chemistry/p3d: distutils-r1, git-r3, EAPI=6 --- sci-chemistry/p3d/p3d-0.4.3-r1.ebuild | 30 ++++++++++++++++++++++++++++++ sci-chemistry/p3d/p3d-0.4.3.ebuild | 35 ----------------------------------- sci-chemistry/p3d/p3d-9999.ebuild | 16 +++++++--------- 3 files changed, 37 insertions(+), 44 deletions(-) create mode 100644 sci-chemistry/p3d/p3d-0.4.3-r1.ebuild delete mode 100644 sci-chemistry/p3d/p3d-0.4.3.ebuild (limited to 'sci-chemistry') diff --git a/sci-chemistry/p3d/p3d-0.4.3-r1.ebuild b/sci-chemistry/p3d/p3d-0.4.3-r1.ebuild new file mode 100644 index 000000000000..6961e1e0e19b --- /dev/null +++ b/sci-chemistry/p3d/p3d-0.4.3-r1.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +PYTHON_COMPAT=( python2_7 ) + +inherit distutils-r1 vcs-snapshot versionator + +MY_P="${PN}-$(replace_version_separator 3 -)" +GITHUB_ID="gb8b9a75" + +DESCRIPTION="Python module for structural bioinformatics" +HOMEPAGE="http://p3d.fufezan.net/" +SRC_URI="https://nodeload.github.com/fu/${PN}/tarball/${PV} -> ${P}.tar.gz" + +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +LICENSE="GPL-3" +IUSE="examples" + +src_install() { + distutils-r1_src_install + + if use examples; then + insinto /usr/share/${PN} + doins -r pdbs exampleScripts + fi +} diff --git a/sci-chemistry/p3d/p3d-0.4.3.ebuild b/sci-chemistry/p3d/p3d-0.4.3.ebuild deleted file mode 100644 index 294acb075860..000000000000 --- a/sci-chemistry/p3d/p3d-0.4.3.ebuild +++ /dev/null @@ -1,35 +0,0 @@ -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=3 - -PYTHON_DEPEND="2" -SUPPORT_PYTHON_ABIS="1" - -inherit distutils versionator - -MY_P="${PN}-$(replace_version_separator 3 -)" -GITHUB_ID="gb8b9a75" - -DESCRIPTION="Python module for structural bioinformatics" -HOMEPAGE="http://p3d.fufezan.net/" -SRC_URI="https://nodeload.github.com/fu/${PN}/tarball/${PV} -> ${P}.tar.gz" - -SLOT="0" -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" -LICENSE="GPL-3" -IUSE="examples" - -src_prepare() { - mv fu* ${P} - distutils_src_prepare -} - -src_install() { - distutils_src_install - if use examples; then - insinto /usr/share/${PN} - doins -r pdbs exampleScripts || die - fi -} diff --git a/sci-chemistry/p3d/p3d-9999.ebuild b/sci-chemistry/p3d/p3d-9999.ebuild index e0f8087a0cc2..6edf6afec46b 100644 --- a/sci-chemistry/p3d/p3d-9999.ebuild +++ b/sci-chemistry/p3d/p3d-9999.ebuild @@ -1,28 +1,26 @@ -# Copyright 1999-2011 Gentoo Foundation +# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ -EAPI=3 +EAPI=6 -PYTHON_DEPEND="2" -SUPPORT_PYTHON_ABIS="1" +PYTHON_COMPAT=( python2_7 ) -inherit git-2 distutils versionator +inherit distutils-r1 git-r3 versionator DESCRIPTION="Python module for structural bioinformatics" HOMEPAGE="http://p3d.fufezan.net/" SRC_URI="" -EGIT_REPO_URI="git://github.com/fu/p3d.git" +EGIT_REPO_URI="https://github.com/fu/p3d.git" SLOT="0" KEYWORDS="" LICENSE="GPL-3" IUSE="examples" -S="${WORKDIR}"/${PN} - src_install() { - distutils_src_install + distutils-r1_src_install + if use examples; then insinto /usr/share/${PN} doins -r pdbs exampleScripts || die -- cgit v1.2.3-65-gdbad