commit: 0d66aec25c7d49561549007eec73e17bbe1d997b
Author: Elias Probst <mail <AT> eliasprobst <DOT> eu>
AuthorDate: Wed Aug 24 10:17:52 2016 +0000
Commit: Göktürk Yüksek <gokturk <AT> gentoo <DOT> org>
CommitDate: Sun Nov 20 16:53:49 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0d66aec2
sys-power/powertop: generate version information for SCM build
Also:
- update header date
- migrate to EAPI=6 and git-r3 eclass
Package-Manager: portage-2.2.28
sys-power/powertop/powertop-9999.ebuild | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git a/sys-power/powertop/powertop-9999.ebuild
b/sys-power/powertop/powertop-9999.ebuild
index a53eb03..0b5a0ba 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
}