diff options
Diffstat (limited to 'sys-power/powertop/powertop-9999.ebuild')
-rw-r--r-- | sys-power/powertop/powertop-9999.ebuild | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/sys-power/powertop/powertop-9999.ebuild b/sys-power/powertop/powertop-9999.ebuild index a53eb03cb036..0b5a0baf5054 100644 --- a/sys-power/powertop/powertop-9999.ebuild +++ b/sys-power/powertop/powertop-9999.ebuild @@ -1,13 +1,13 @@ -# Copyright 1999-2015 Gentoo Foundation +# Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ -EAPI="5" +EAPI="6" inherit eutils linux-info if [[ ${PV} == "9999" ]] ; then EGIT_REPO_URI="git://github.com/fenrus75/powertop.git" - inherit git-2 autotools + inherit git-r3 autotools SRC_URI="" else SRC_URI="https://01.org/sites/default/files/downloads/${PN}/${P}.tar.gz" @@ -37,8 +37,6 @@ RDEPEND=" virtual/libintl " -DOCS=( TODO README ) - pkg_setup() { CONFIG_CHECK=" ~X86_MSR @@ -95,10 +93,11 @@ pkg_setup() { } src_prepare() { + default if [[ ${PV} == "9999" ]] ; then + chmod +x scripts/version || die "Failed to make 'scripts/version' executable" + scripts/version || die "Failed to extract version information" eautoreconf - else - default fi } |