sys-power/powertop: generate version information for SCM build
authorElias Probst <mail@eliasprobst.eu>
Wed, 24 Aug 2016 10:17:52 +0000 (12:17 +0200)
committerGöktürk Yüksek <gokturk@gentoo.org>
Sun, 20 Nov 2016 16:53:49 +0000 (11:53 -0500)
Also:
- update header date
- migrate to EAPI=6 and git-r3 eclass

Package-Manager: portage-2.2.28

sys-power/powertop/powertop-9999.ebuild

index a53eb03cb03658ee18ee45498c2dc4e4e4fe543c..0b5a0baf505468c3f6febd4e129005e413580e21 100644 (file)
@@ -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
 }