--- p3d-0.4.3.ebuild 2011-06-26 16:46:21.000000000 +0800 +++ p3d-0.4.3-r1.ebuild 2015-03-31 08:25:20.286415528 +0800 @@ -1,13 +1,13 @@ -# Copyright 1999-2011 Gentoo Foundation +# Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/sci-chemistry/p3d/p3d-0.4.3.ebuild,v 1.2 2011/06/26 08:46:21 jlec Exp $ -EAPI=3 +EAPI=5 -PYTHON_DEPEND="2" -SUPPORT_PYTHON_ABIS="1" +PYTHON_COMPAT=( python2_7 ) +DISTUTILS_SINGLE_IMPL=1 -inherit distutils versionator +inherit distutils-r1 versionator MY_P="${PN}-$(replace_version_separator 3 -)" GITHUB_ID="gb8b9a75" @@ -21,15 +21,16 @@ LICENSE="GPL-3" IUSE="examples" -src_prepare() { - mv fu* ${P} - distutils_src_prepare +S="${WORKDIR}"/fu-${PN}-9128134 + +pkg_setup() { + python-single-r1_pkg_setup } -src_install() { - distutils_src_install +python_install_all() { if use examples; then - insinto /usr/share/${PN} - doins -r pdbs exampleScripts || die + local EXAMPLES=( pdbs ) + EXAMPLES+=( exampleScripts ) fi + distutils-r1_python_install_all }