commit:     9b8d3291b7c1fab402ae27bcb6a01a43604cdc14
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Sat Jul  4 13:54:33 2020 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sat Jul  4 13:54:33 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9b8d3291

x11-misc/vnc2swf: Pass AR to build system

Closes: https://bugs.gentoo.org/726264
Package-Manager: Portage-2.3.103, Repoman-2.3.23
Signed-off-by: David Seifert <soap <AT> gentoo.org>

 .../vnc2swf/files/vnc2swf-0.5.0-respect-AR.patch   | 45 ++++++++++++++++++++++
 x11-misc/vnc2swf/vnc2swf-0.5.0-r1.ebuild           |  9 +++++
 2 files changed, 54 insertions(+)

diff --git a/x11-misc/vnc2swf/files/vnc2swf-0.5.0-respect-AR.patch 
b/x11-misc/vnc2swf/files/vnc2swf-0.5.0-respect-AR.patch
new file mode 100644
index 00000000000..4c03bb7e5c1
--- /dev/null
+++ b/x11-misc/vnc2swf/files/vnc2swf-0.5.0-respect-AR.patch
@@ -0,0 +1,45 @@
+--- a/configure.in
++++ b/configure.in
+@@ -12,6 +12,9 @@
+ AC_PROG_MAKE_SET
+ AC_LANG_CPLUSPLUS
+ 
++AC_ARG_VAR([AR], [the archiver to use])
++AC_CHECK_TOOL([AR], [ar])
++
+ case "`(uname -sr) 2>/dev/null`" in
+ "SunOS 5"*)
+   SOLARIS=yes
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -95,7 +95,7 @@
+ LIBS = @LIBS@
+ LDFLAGS = @LDFLAGS@
+ RANLIB = @RANLIB@
+-AR = ar cq
++AR = @AR@ cq
+ 
+ prefix = /usr/X11R6
+ exec_prefix = $(prefix)
+--- a/rdr/Makefile.in
++++ b/rdr/Makefile.in
+@@ -37,7 +37,7 @@
+ LIBS = @LIBS@
+ LDFLAGS = @LDFLAGS@
+ RANLIB = @RANLIB@
+-AR = ar cq
++AR = @AR@ cq
+ 
+ .SUFFIXES:
+ .SUFFIXES: .cxx .c .o
+--- a/rfb/Makefile.in
++++ b/rfb/Makefile.in
+@@ -36,7 +36,7 @@
+ LIBS = @LIBS@
+ LDFLAGS = @LDFLAGS@
+ RANLIB = @RANLIB@
+-AR = ar cq
++AR = @AR@ cq
+ 
+ .SUFFIXES:
+ .SUFFIXES: .cxx .c .o

diff --git a/x11-misc/vnc2swf/vnc2swf-0.5.0-r1.ebuild 
b/x11-misc/vnc2swf/vnc2swf-0.5.0-r1.ebuild
index 07b8cc0bbeb..a589a99435c 100644
--- a/x11-misc/vnc2swf/vnc2swf-0.5.0-r1.ebuild
+++ b/x11-misc/vnc2swf/vnc2swf-0.5.0-r1.ebuild
@@ -3,6 +3,8 @@
 
 EAPI=7
 
+inherit autotools
+
 DESCRIPTION="A tool for recording Flash SWF movies from VNC sessions"
 HOMEPAGE="https://www.unixuser.org/~euske/vnc2swf/";
 SRC_URI="https://www.unixuser.org/~euske/vnc2swf/${P}.tar.gz";
@@ -23,10 +25,17 @@ RDEPEND="
 DEPEND="${RDEPEND}
        x11-base/xorg-proto"
 
+PATCHES=(
+       "${FILESDIR}"/${P}-respect-AR.patch # bug 726264
+)
+
 src_prepare() {
        default
        sed -i -e "s:docs:html:" README || die
        sed -i -e "s:-mouse ::" -e "s:./vnc2swf:vnc2swf:" recordwin.sh || die
+
+       mv configure.{in,ac} || die
+       eautoconf
 }
 
 src_install() {

Reply via email to