commit:     5c0943933f9e5a6875b801c2b9b3fd81585023c4
Author:     Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
AuthorDate: Sat Jan  2 23:27:09 2021 +0000
Commit:     Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
CommitDate: Sat Jan  2 23:32:19 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5c094393

x11-plugins/wmweather+: do not call ar directly

Closes: https://bugs.gentoo.org/726248
Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Bernard Cafarelli <voyageur <AT> gentoo.org>

 x11-plugins/wmweather+/files/wmweather+-2.18-ar.patch | 11 +++++++++++
 x11-plugins/wmweather+/wmweather+-2.18.ebuild         | 10 +++++++++-
 2 files changed, 20 insertions(+), 1 deletion(-)

diff --git a/x11-plugins/wmweather+/files/wmweather+-2.18-ar.patch 
b/x11-plugins/wmweather+/files/wmweather+-2.18-ar.patch
new file mode 100644
index 00000000000..f87fdfa0ef0
--- /dev/null
+++ b/x11-plugins/wmweather+/files/wmweather+-2.18-ar.patch
@@ -0,0 +1,11 @@
+diff -Naur wmweather+-2.18.orig/configure.ac wmweather+-2.18/configure.ac
+--- wmweather+-2.18.orig/configure.ac  2020-04-24 20:31:43.000000000 +0200
++++ wmweather+-2.18/configure.ac       2021-01-03 00:25:30.443705781 +0100
+@@ -18,6 +18,7 @@
+ AC_SUBST(WMGENERAL_GUI)
+ 
+ # Checks for programs.
++AM_PROG_AR
+ AC_PROG_AWK
+ AC_PROG_CC
+ AC_PROG_CC_STDC

diff --git a/x11-plugins/wmweather+/wmweather+-2.18.ebuild 
b/x11-plugins/wmweather+/wmweather+-2.18.ebuild
index 01b450a84cc..7dffde689df 100644
--- a/x11-plugins/wmweather+/wmweather+-2.18.ebuild
+++ b/x11-plugins/wmweather+/wmweather+-2.18.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 for displaying data collected from METAR, AVN, ETA, and 
MRF forecasts"
 HOMEPAGE="https://www.sourceforge.net/projects/wmweatherplus/";
@@ -19,3 +20,10 @@ DEPEND="dev-libs/libpcre
        x11-libs/libX11
        x11-wm/windowmaker"
 RDEPEND="${DEPEND}"
+
+PATCHES=( "${FILESDIR}"/${P}-ar.patch )
+
+src_prepare() {
+       default
+       eautoreconf
+}

Reply via email to