games-board/xmahjongg: Call AM_PROG_AR

Closes: https://bugs.gentoo.org/730800
Package-Manager: Portage-2.3.103, Repoman-2.3.23
Signed-off-by: David Seifert <soap@gentoo.org>
This commit is contained in:
David Seifert
2020-07-05 22:05:44 +02:00
parent a7c174beee
commit 4d09ab946a
2 changed files with 35 additions and 7 deletions

View File

@@ -0,0 +1,26 @@
--- a/configure.in
+++ b/configure.in
@@ -9,8 +9,11 @@
AC_PROG_CPP
AC_PROG_CXX
AC_PROG_CXXCPP
+AM_PROG_AR
AC_PROG_RANLIB
-if test -n "$GCC" ; then CC="$CC -Wall"; CXX="$CXX -Wall"; fi
+
+CFLAGS="${CFLAGS} -Wall"
+CXXFLAGS="${CXXFLAGS} -Wall"
AC_PATH_XTRA
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -32,7 +32,7 @@
INCLUDES = $(X_CFLAGS) -I$(top_srcdir)/include
-xmahjongg_LDADD = $(LDADD) ../liblcdf/liblcdf.a @X_LIBS@ @X_PRE_LIBS@ -lX11 @X_EXTRA_LIBS@
+xmahjongg_LDADD = $(LDADD) ../liblcdf/liblcdf.a @X_LIBS@ -lX11 @X_EXTRA_LIBS@
#

View File

@@ -1,8 +1,9 @@
# Copyright 1999-2017 Gentoo Foundation
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=5
inherit eutils
EAPI=7
inherit autotools desktop
DESCRIPTION="friendly GUI version of xmahjongg"
HOMEPAGE="http://www.lcdf.org/xmahjongg/"
@@ -11,21 +12,22 @@ SRC_URI="http://www.lcdf.org/xmahjongg/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~mips ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
IUSE=""
RDEPEND="x11-libs/libX11"
DEPEND="${RDEPEND}
x11-libs/libXt"
PATCHES=( "${FILESDIR}"/${P}-autotools.patch )
src_prepare() {
default
sed -i \
-e '/X_PRE_LIBS/s:-lSM -lICE::' \
configure || die
mv configure.{in,ac} || die
eautoreconf
}
src_install() {
default
newicon share/tiles/small.gif ${PN}.gif
make_desktop_entry xmahjongg "Xmahjongg" /usr/share/pixmaps/${PN}.gif
}