summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-03-17 04:38:50 +0000
committerSam James <sam@gentoo.org>2021-03-17 04:43:11 +0000
commit7cee3d1c8220e3d1d08e92909ad33599a344db61 (patch)
tree82714f1deeb290d47648c4099eac5056b1bbc232 /games-board/mt_ncurses_client
parentdev-games/libmaitretarot: port to EAPI 7 (diff)
downloadgentoo-7cee3d1c8220e3d1d08e92909ad33599a344db61.tar.gz
gentoo-7cee3d1c8220e3d1d08e92909ad33599a344db61.tar.bz2
gentoo-7cee3d1c8220e3d1d08e92909ad33599a344db61.zip
games-board/mt_ncurses_client: fix libdir for library searches
Closes: https://bugs.gentoo.org/716102 Package-Manager: Portage-3.0.14-prefix, Repoman-3.0.2 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'games-board/mt_ncurses_client')
-rw-r--r--games-board/mt_ncurses_client/files/mt_ncurses_client-0.1.98-libdir.patch34
-rw-r--r--games-board/mt_ncurses_client/mt_ncurses_client-0.1.98-r1.ebuild1
2 files changed, 35 insertions, 0 deletions
diff --git a/games-board/mt_ncurses_client/files/mt_ncurses_client-0.1.98-libdir.patch b/games-board/mt_ncurses_client/files/mt_ncurses_client-0.1.98-libdir.patch
new file mode 100644
index 000000000000..73c5b184ca9f
--- /dev/null
+++ b/games-board/mt_ncurses_client/files/mt_ncurses_client-0.1.98-libdir.patch
@@ -0,0 +1,34 @@
+https://bugs.gentoo.org/739148
+
+--- a/m4/libmaitretarot.m4
++++ b/m4/libmaitretarot.m4
+@@ -9,10 +9,10 @@ AC_DEFUN([AM_LIB_MAITRETAROT],
+ --with-libmaitretarot path to libmaitretarot libraries,
+ [
+ LIBMT_CFLAGS="-I${withval}/include"
+- LIBMT_LIBS="-L${withval}/lib -lmaitretarot"
++ LIBMT_LIBS="-L${withval}/${libdir} -lmaitretarot"
+ ],[
+- LIBMT_CFLAGS="-I/usr/local/include -I/usr/include"
+- LIBMT_LIBS="-L/usr/local/lib -L/usr/lib -lmaitretarot"
++ LIBMT_CFLAGS="-I/usr/include"
++ LIBMT_LIBS="-L${libdir} -lmaitretarot"
+ ])
+ ac_save_CPPFLAGS="$CPPFLAGS"
+ ac_save_CFLAGS="$CFLAGS"
+--- a/m4/libmt_client.m4
++++ b/m4/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/games-board/mt_ncurses_client/mt_ncurses_client-0.1.98-r1.ebuild b/games-board/mt_ncurses_client/mt_ncurses_client-0.1.98-r1.ebuild
index 447183c017e2..bde4eab1f3d2 100644
--- a/games-board/mt_ncurses_client/mt_ncurses_client-0.1.98-r1.ebuild
+++ b/games-board/mt_ncurses_client/mt_ncurses_client-0.1.98-r1.ebuild
@@ -23,6 +23,7 @@ RDEPEND="${DEPEND}"
PATCHES=(
"${FILESDIR}"/${P}-format.patch
+ "${FILESDIR}"/${PN}-0.1.98-libdir.patch
)
src_configure() {