summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Cafarelli <voyageur@gentoo.org>2021-01-03 00:31:43 +0100
committerBernard Cafarelli <voyageur@gentoo.org>2021-01-03 00:32:20 +0100
commit3566259c569ed3507de43419068d7966157771c3 (patch)
tree13a36d924ff692a97a36ce123ee2d9f219e8c34b /x11-plugins
parentx11-plugins/wmbiff: do not call ar directly (diff)
downloadgentoo-3566259c569ed3507de43419068d7966157771c3.tar.gz
gentoo-3566259c569ed3507de43419068d7966157771c3.tar.bz2
gentoo-3566259c569ed3507de43419068d7966157771c3.zip
x11-plugins/wmpower: do not call ar directly
Closes: https://bugs.gentoo.org/726254 Package-Manager: Portage-3.0.12, Repoman-3.0.2 Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>
Diffstat (limited to 'x11-plugins')
-rw-r--r--x11-plugins/wmpower/files/wmpower-0.4.3-ar.patch11
-rw-r--r--x11-plugins/wmpower/wmpower-0.4.3-r1.ebuild13
2 files changed, 22 insertions, 2 deletions
diff --git a/x11-plugins/wmpower/files/wmpower-0.4.3-ar.patch b/x11-plugins/wmpower/files/wmpower-0.4.3-ar.patch
new file mode 100644
index 000000000000..b59fcf6bbe38
--- /dev/null
+++ b/x11-plugins/wmpower/files/wmpower-0.4.3-ar.patch
@@ -0,0 +1,11 @@
+diff -Naur wmpower-0.4.3.orig/configure.in wmpower-0.4.3/configure.in
+--- wmpower-0.4.3.orig/configure.in 2008-11-25 11:05:58.000000000 +0100
++++ wmpower-0.4.3/configure.in 2021-01-03 00:30:15.977692665 +0100
+@@ -3,6 +3,7 @@
+ AC_CONFIG_SRCDIR(src/wmpower.c)
+ AM_INIT_AUTOMAKE([1.7 check-news dist-bzip2])
+
++AM_PROG_AR
+ AC_GNU_SOURCE
+ AC_PROG_INSTALL
+ AC_PROG_CC
diff --git a/x11-plugins/wmpower/wmpower-0.4.3-r1.ebuild b/x11-plugins/wmpower/wmpower-0.4.3-r1.ebuild
index 0f828dab5809..977f02854a32 100644
--- a/x11-plugins/wmpower/wmpower-0.4.3-r1.ebuild
+++ b/x11-plugins/wmpower/wmpower-0.4.3-r1.ebuild
@@ -1,7 +1,8 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
+inherit autotools
DESCRIPTION="a dockapp to get/set power management status for laptops (APM, ACPI
and CPUfreq)"
@@ -18,10 +19,18 @@ RDEPEND="x11-libs/libX11
DEPEND="${RDEPEND}
x11-base/xorg-proto"
-PATCHES=( "${FILESDIR}"/${P}-gcc-10.patch )
+PATCHES=(
+ "${FILESDIR}"/${P}-gcc-10.patch
+ "${FILESDIR}"/${P}-ar.patch
+ )
DOCS=( AUTHORS BUGS ChangeLog LEGGIMI NEWS README README.compal THANKS TODO )
+src_prepare() {
+ default
+ eautoreconf
+}
+
src_configure() {
# override wmpower self-calculated cflags
econf MY_CFLAGS="${CFLAGS}"