commit:     b345b5d0c618bdcf8626c8ca3824a5801be9aa95
Author:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 23 17:53:38 2020 +0000
Commit:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
CommitDate: Sun Feb 23 17:55:23 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b345b5d0

sys-power/powertop: Use tarballs from github

The 2.11 tarball has a bizarre name, and we have to run eautoreconf
anyway.

Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>

 sys-power/powertop/powertop-9999.ebuild | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/sys-power/powertop/powertop-9999.ebuild 
b/sys-power/powertop/powertop-9999.ebuild
index 165318e3ddd..bf3642c77e9 100644
--- a/sys-power/powertop/powertop-9999.ebuild
+++ b/sys-power/powertop/powertop-9999.ebuild
@@ -9,10 +9,8 @@ if [[ ${PV} == "9999" ]] ; then
        GIT_ECLASS="git-r3"
        SRC_URI=""
 else
-       
SRC_URI="https://01.org/sites/default/files/downloads/${PN}-v${PV}.tar.gz";
+       SRC_URI="https://github.com/fenrus75/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
        KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux"
-       MY_P="${PN}-v${PV}"
-       S="${WORKDIR}/${MY_P}"
 fi
 
 inherit autotools ${GIT_ECLASS} linux-info
@@ -104,10 +102,8 @@ src_prepare() {
        # Bug 599114
        sed -i '1s|^|AX_REQUIRE_DEFINED([AX_CXX_COMPILE_STDCXX_11])|' 
configure.ac || die
 
-       if [[ ${PV} == "9999" ]] ; then
-               chmod +x scripts/version || die "Failed to make 
'scripts/version' executable"
-               scripts/version || die "Failed to extract version information"
-       fi
+       chmod +x scripts/version || die "Failed to make 'scripts/version' 
executable"
+       scripts/version || die "Failed to extract version information"
 
        eautoreconf
 }

Reply via email to