From b345b5d0c618bdcf8626c8ca3824a5801be9aa95 Mon Sep 17 00:00:00 2001 From: Matt Turner <mattst88@gentoo.org> Date: Sun, 23 Feb 2020 09:53:38 -0800 Subject: [PATCH] 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@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 165318e3ddd1..bf3642c77e9b 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 } -- 2.26.2