commit:     52f6c32678677a7fcc0233017af9dd514725a2f2
Author:     Alexander Tsoy <alexander <AT> tsoy <DOT> me>
AuthorDate: Mon Aug  4 21:33:03 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Sep  6 15:02:20 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=52f6c326

net-p2p/amule: fix build with gettext-0.23

Closes: https://bugs.gentoo.org/960925
Signed-off-by: Alexander Tsoy <alexander <AT> tsoy.me>
Part-of: https://github.com/gentoo/gentoo/pull/43329
Closes: https://github.com/gentoo/gentoo/pull/43329
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-p2p/amule/amule-9999.ebuild                   |  1 +
 net-p2p/amule/files/amule-9999-gettext-0.23.patch | 22 ++++++++++++++++++++++
 2 files changed, 23 insertions(+)

diff --git a/net-p2p/amule/amule-9999.ebuild b/net-p2p/amule/amule-9999.ebuild
index 9da35c53b9e1..257bb57f669f 100644
--- a/net-p2p/amule/amule-9999.ebuild
+++ b/net-p2p/amule/amule-9999.ebuild
@@ -55,6 +55,7 @@ PATCHES=(
        "${FILESDIR}/${PN}-2.3.3-fix-exception.patch"
        "${FILESDIR}/${PN}-2.3.3-backport-pr368.patch"
        "${FILESDIR}/${PN}-2.3.3-use-xdg-open-as-preview-default.patch"
+       "${FILESDIR}/${PN}-9999-gettext-0.23.patch"
 )
 
 src_prepare() {

diff --git a/net-p2p/amule/files/amule-9999-gettext-0.23.patch 
b/net-p2p/amule/files/amule-9999-gettext-0.23.patch
new file mode 100644
index 000000000000..e7245ff0e25d
--- /dev/null
+++ b/net-p2p/amule/files/amule-9999-gettext-0.23.patch
@@ -0,0 +1,22 @@
+https://github.com/amule-project/amule/pull/413
+
+--- a/configure.ac
++++ b/configure.ac
+@@ -318,6 +318,7 @@ AC_LANG_POP([C++])
+ dnl Sets gettext version.
+ dnl AM_GNU_GETTEXT_VERSION *must not* be moved away from configure.ac!
+ AM_GNU_GETTEXT_VERSION(0.11.5)
++AM_GNU_GETTEXT([no-libtool], [need-ngettext])
+ MULE_CHECK_NLS
+ AS_IF([test x$USE_INCLUDED_LIBINTL = xyes], [AC_CONFIG_COMMANDS([intl], [[
+       test -d intl || mkdir intl
+--- a/m4/nls.m4
++++ b/m4/nls.m4
+@@ -82,7 +82,6 @@ AC_DEFUN([MULE_CHECK_NLS],
+                       [Specify a comma-separated list of languages you want 
to have installed. See po/LINGUAS for available languages])],
+               [AS_IF([test "$withval" != "all"], [LINGUAS="`echo $withval | 
sed -e 's/,/ /g'`"])])
+ 
+-      AM_GNU_GETTEXT([no-libtool], [need-ngettext])
+       AS_IF([test $USE_INCLUDED_LIBINTL = yes], 
[INCINTL=-I\${top_builddir}/intl])
+ 
+       AS_IF([test x$USE_NLS = xyes], [MULE_CHECK_AUTOPOINT(, [USE_NLS=no])])

Reply via email to