public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: x11-plugins/wmpower/files/, x11-plugins/wmpower/
@ 2021-01-02 23:32 Bernard Cafarelli
  0 siblings, 0 replies; only message in thread
From: Bernard Cafarelli @ 2021-01-02 23:32 UTC (permalink / raw
  To: gentoo-commits

commit:     3566259c569ed3507de43419068d7966157771c3
Author:     Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
AuthorDate: Sat Jan  2 23:31:43 2021 +0000
Commit:     Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
CommitDate: Sat Jan  2 23:32:20 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3566259c

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 <AT> gentoo.org>

 x11-plugins/wmpower/files/wmpower-0.4.3-ar.patch | 11 +++++++++++
 x11-plugins/wmpower/wmpower-0.4.3-r1.ebuild      | 13 +++++++++++--
 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 00000000000..b59fcf6bbe3
--- /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 0f828dab580..977f02854a3 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}"


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-01-02 23:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-02 23:32 [gentoo-commits] repo/gentoo:master commit in: x11-plugins/wmpower/files/, x11-plugins/wmpower/ Bernard Cafarelli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox