From 1b8ce79f27e26e3df2ebd6f3a9fe816cc8cdf825 Mon Sep 17 00:00:00 2001 From: Sam James Date: Wed, 17 Mar 2021 05:10:11 +0000 Subject: dev-games/libmt_client: port to EAPI 7, install M4 macro, fix libdir * Fix libdir in our macro (then install it) * Install M4 macro This helps consumers like games-board/mt_ncurses_client find dev-games/libmt_client. We need to install the M4 macro so that we can actually regenerate (eautoreconf). Right now, some consumers don't have bundled macros at all, and others lack the needed libdir fixes. Let's install fixed ones here (and in libmaitretarot) so that consumers can just rely on those. Closes: https://bugs.gentoo.org/729734 Closes: https://bugs.gentoo.org/716102 Closes: https://bugs.gentoo.org/715582 Signed-off-by: Sam James --- .../files/libmt_client-0.1.98-format.patch | 4 +- .../files/libmt_client-0.1.98-libdir.patch | 18 ++++++++ .../libmt_client/libmt_client-0.1.98-r1.ebuild | 48 ++++++++++++++++++++++ dev-games/libmt_client/libmt_client-0.1.98.ebuild | 32 --------------- 4 files changed, 68 insertions(+), 34 deletions(-) create mode 100644 dev-games/libmt_client/files/libmt_client-0.1.98-libdir.patch create mode 100644 dev-games/libmt_client/libmt_client-0.1.98-r1.ebuild delete mode 100644 dev-games/libmt_client/libmt_client-0.1.98.ebuild (limited to 'dev-games/libmt_client') diff --git a/dev-games/libmt_client/files/libmt_client-0.1.98-format.patch b/dev-games/libmt_client/files/libmt_client-0.1.98-format.patch index 5173853849cc..76c329d388d6 100644 --- a/dev-games/libmt_client/files/libmt_client-0.1.98-format.patch +++ b/dev-games/libmt_client/files/libmt_client-0.1.98-format.patch @@ -1,5 +1,5 @@ ---- src/mt_client_game.c.old 2015-12-22 08:51:19.858561807 +0100 -+++ src/mt_client_game.c 2015-12-22 08:52:48.934904973 +0100 +--- a/src/mt_client_game.c ++++ b/src/mt_client_game.c @@ -56,7 +56,7 @@ } else diff --git a/dev-games/libmt_client/files/libmt_client-0.1.98-libdir.patch b/dev-games/libmt_client/files/libmt_client-0.1.98-libdir.patch new file mode 100644 index 000000000000..cc56eb09be45 --- /dev/null +++ b/dev-games/libmt_client/files/libmt_client-0.1.98-libdir.patch @@ -0,0 +1,18 @@ +https://bugs.gentoo.org/729734 + +--- a/libmt_client.m4 ++++ b/libmt_client.m4 +@@ -9,10 +9,10 @@ AC_DEFUN([AM_LIB_MT_CLIENT], + --with-libmt_client path to libmt_client libraries, + [ + LIBMT_CFLAGS="-I${withval}/include" +- LIBMT_LIBS="-L${withval}/lib -lmt_client" ++ LIBMT_LIBS="-L${withval}/${libdir} -lmt_client" + ],[ +- LIBMT_CFLAGS="-I/usr/local/include -I/usr/include" +- LIBMT_LIBS="-L/usr/local/lib -L/usr/lib -lmt_client" ++ LIBMT_CFLAGS="-I/usr/include" ++ LIBMT_LIBS="-L${libdir} -lmt_client" + ]) + ac_save_CPPFLAGS="$CPPFLAGS" + ac_save_CFLAGS="$CFLAGS" diff --git a/dev-games/libmt_client/libmt_client-0.1.98-r1.ebuild b/dev-games/libmt_client/libmt_client-0.1.98-r1.ebuild new file mode 100644 index 000000000000..997ade02a0e2 --- /dev/null +++ b/dev-games/libmt_client/libmt_client-0.1.98-r1.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools + +DESCRIPTION="backend library for the maitretarot clients" +HOMEPAGE="http://www.nongnu.org/maitretarot/" + +SRC_URI="https://savannah.nongnu.org/download/maitretarot/${PN}.pkg/${PV}/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" + +DEPEND="dev-libs/glib:2 + dev-libs/libxml2 + dev-games/libmaitretarot" +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}"/${P}-format.patch + "${FILESDIR}"/${PN}-0.1.98-libdir.patch +) + +src_prepare() { + default + + mv configure.{in,ac} || die + + # For the m4 libdir patch, bug #729734 + eautoreconf +} + +src_configure() { + econf --disable-static +} + +src_install() { + default + + # bug #716102 + insinto /usr/share/aclocal + doins libmt_client.m4 + + find "${ED}" -name '*.la' -delete || die +} diff --git a/dev-games/libmt_client/libmt_client-0.1.98.ebuild b/dev-games/libmt_client/libmt_client-0.1.98.ebuild deleted file mode 100644 index 611635f26520..000000000000 --- a/dev-games/libmt_client/libmt_client-0.1.98.ebuild +++ /dev/null @@ -1,32 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 - -inherit eutils - -DESCRIPTION="backend library for the maitretarot clients" -HOMEPAGE="http://www.nongnu.org/maitretarot/" -SRC_URI="https://savannah.nongnu.org/download/maitretarot/${PN}.pkg/${PV}/${P}.tar.bz2" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="amd64 x86" - -DEPEND="dev-libs/glib:2 - dev-libs/libxml2 - dev-games/libmaitretarot" -RDEPEND=${DEPEND} - -src_prepare() { - epatch "${FILESDIR}"/${P}-format.patch -} - -src_configure() { - econf --disable-static -} - -src_install() { - default - find "${ED}" -name '*.la' -delete || die -} -- cgit v1.2.3-65-gdbad