commit: f02c8b601daa83c59bbecd91cd97a9286a9572f0 Author: Akinori Hattori <hattya <AT> gentoo <DOT> org> AuthorDate: Wed Sep 17 13:47:17 2025 +0000 Commit: Akinori Hattori <hattya <AT> gentoo <DOT> org> CommitDate: Wed Sep 17 13:49:49 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f02c8b60
dev-libs/m17n-lib: new upstream release Closes: https://bugs.gentoo.org/945261 Signed-off-by: Akinori Hattori <hattya <AT> gentoo.org> dev-libs/m17n-lib/Manifest | 1 + dev-libs/m17n-lib/files/m17n-lib-configure.patch | 146 +++++++++++++++++++++++ dev-libs/m17n-lib/m17n-lib-1.8.6.ebuild | 89 ++++++++++++++ 3 files changed, 236 insertions(+) diff --git a/dev-libs/m17n-lib/Manifest b/dev-libs/m17n-lib/Manifest index 9c068353e290..61746babce13 100644 --- a/dev-libs/m17n-lib/Manifest +++ b/dev-libs/m17n-lib/Manifest @@ -1 +1,2 @@ DIST m17n-lib-1.8.4.tar.gz 1119271 BLAKE2B 790a002e0abd66d7db0d61ab0240712b2810e698c73d507a5054ad83d4a7a7258c4407d5167ce92fc4c1f3acdfc9f8d3244634af801cde2a00762f09d5e1d823 SHA512 7e322788aed8a758a8c289112433aabccd12dacf14b247ba9060503bcc44930c9251f0c4e718987b9a151de097e72bc1e07c8096f7f4ad83a7d7183a549721d6 +DIST m17n-lib-1.8.6.tar.gz 1134862 BLAKE2B d51974643f7c76ccb96f8e9849c7850880d6c206beb07a2dddbe5b885d4ad97d092f80382ad0e3ebe72d76e04510b6ae1753f0395add09250ebc17647a62d57d SHA512 4fe3e9d2f88a90e8e9b30ee53a71612f937ab3d4c5243075f39de13818522e5c595840f67b3411b03d403affeafeb1802158b6ae8ddf80a1e695d1105b595a59 diff --git a/dev-libs/m17n-lib/files/m17n-lib-configure.patch b/dev-libs/m17n-lib/files/m17n-lib-configure.patch new file mode 100644 index 000000000000..a87d4dd950ef --- /dev/null +++ b/dev-libs/m17n-lib/files/m17n-lib-configure.patch @@ -0,0 +1,146 @@ +diff --git a/configure.ac b/configure.ac +index 2348512..1105b4b 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -96,8 +96,11 @@ AC_SUBST(M17NDIR) + + dnl Checks which levels of APIs should be compiled. + +-AC_ARG_ENABLE(gui, +- AS_HELP_STRING([--enable-gui],[enable GUI level APIs (default is YES)])) ++PKG_PROG_PKG_CONFIG ++AM_CONDITIONAL([HAVE_PKG_CONFIG], [test "x$PKG_CONFIG" != x]) ++ ++AC_ARG_WITH(gui, ++ AS_HELP_STRING([--with-gui],[enable GUI level APIs (default is YES)])) + + AM_CONDITIONAL(WITH_GUI, test x$with_gui != xno) + +@@ -117,14 +120,14 @@ dnl augmented. + + M17N_EXT_LIBS= + +-PKG_PROG_PKG_CONFIG +-AM_CONDITIONAL([HAVE_PKG_CONFIG], [test "x$PKG_CONFIG" != x]) +- + if test "x$no_x" != "xyes"; then + AC_DEFINE(HAVE_X11, 1, [Define to 1 if you have X11.]) + X11_LD_FLAGS="-lXt -lX11" + M17N_EXT_LIBS="$M17N_EXT_LIBS X11" + ++ AC_ARG_WITH(athena, ++ AS_HELP_STRING([--with-athena],[with X Athena Widget suport])) ++ if test "x$with_athena" != "xno"; then + if test "x$HAVE_XAW" = "xyes"; then + AC_DEFINE(HAVE_X11_XAW_COMMAND_H, 1, + [Define to 1 if you have the Xaw header files.]) +@@ -132,11 +135,15 @@ if test "x$no_x" != "xyes"; then + CONFIG_FLAGS="$CONFIG_FLAGS -DHAVE_X11_XAW_COMMAND_H" + M17N_EXT_LIBS="$M17N_EXT_LIBS Xaw" + fi ++ fi + fi + AC_SUBST(X11_LD_FLAGS) + AC_SUBST(XAW_LD_FLAGS) + + dnl Check for fribidi library. ++AC_ARG_WITH(fribidi, ++ AS_HELP_STRING([--with-fribidi],[with FriBidi suport])) ++if test "x$with_fribidi" != "xno"; then + save_CPPFLAGS="$CPPFLAGS" + save_LIBS="$LIBS" + AC_CHECK_PROG(HAVE_FRIBIDI_CONFIG, fribidi-config, yes) +@@ -158,6 +165,7 @@ else + FRIBIDI_LD_FLAGS= + fi + LIBS="$save_LIBS" ++fi + AC_SUBST(FRIBIDI_LD_FLAGS) + + dnl Check for otflib usability. +@@ -201,11 +209,14 @@ fi + AC_SUBST(OTF_LD_FLAGS) + + dnl Check for Freetype2 usability. ++AC_ARG_WITH(freetype, ++ AS_HELP_STRING([--with-freetype],[with FreeType support])) ++if test "x$with_freetype" != "xno"; then + PKG_CHECK_MODULES([FREETYPE], [freetype2], [HAVE_FREETYPE=yes], + [HAVE_FREETYPE=no]) + AS_IF([test "x$HAVE_FREETYPE" = "xyes"], + [CPPFLAGS="$CPPFLAGS $FREETYPE_CFLAGS"; +- FREETYPE_LD_FLAGS=FREETYPE_LIBS; ++ FREETYPE_LD_FLAGS=$FREETYPE_LIBS; + AC_DEFINE([HAVE_FREETYPE], [1], + [Define to 1 if you have FreeType library and header file.]) + M17N_EXT_LIBS="$M17N_EXT_LIBS freetype"; +@@ -220,9 +231,13 @@ AS_IF([test "x$HAVE_FREETYPE" = "xyes"], + ], + [] + ) ++fi + AC_SUBST([FREETYPE_LD_FLAGS]) + + dnl Check for Xft2 usability. ++AC_ARG_WITH(xft, ++ AS_HELP_STRING([--with-xft],[with Xft support])) ++if test "x$with_xft" != "xno"; then + save_CPPFLAGS="$CPPFLAGS" + save_LIBS="$LIBS" + XFT2_LD_FLAGS="-lXft -lfreetype -lfontconfig -lXrender -lX11" +@@ -253,6 +268,7 @@ else + CPPFLAGS="$save_CPPFLAGS" + fi + LIBS="$save_LIBS" ++fi + AC_SUBST(XFT2_LD_FLAGS) + + dnl Check for fontconfig usability. +@@ -306,6 +322,9 @@ AC_SUBST(GD_LD_FLAGS) + fi + + dnl Check for libxml2 usability. ++AC_ARG_WITH(libxml2, ++ AS_HELP_STRING([--with-libxml2],[with libxml2 suport])) ++if test "x$with_libxml2" != "xno"; then + save_CPPFLAGS="$CPPFLAGS" + save_LIBS="$LIBS" + AC_CHECK_PROG(HAVE_XML2_CONFIG, xml2-config, yes) +@@ -328,10 +347,13 @@ else + CPPFLAGS="$save_CPPFLAGS" + fi + LIBS="$save_LIBS" ++fi + AC_SUBST(XML2_LD_FLAGS) + + dnl Check for Anthy usability. +- ++AC_ARG_WITH(anthy, ++ AS_HELP_STRING([--with-anthy],[with Anthy suport])) ++if test "x$with_anthy" != "xno"; then + PKG_CHECK_MODULES(ANTHY, anthy-unicode, + [HAVE_ANTHY=yes + M17N_EXT_LIBS="$M17N_EXT_LIBS anthy-unicode"], +@@ -347,17 +369,21 @@ if test "x$HAVE_ANTHY" = "xyes"; then + ANTHY_LD_FLAGS="$ANTHY_LIBS" + CONFIG_FLAGS="$CONFIG_FLAGS -DHAVE_ANTHY" + fi +- ++fi + AC_SUBST(ANTHY_LD_CFLAGS) + AC_SUBST(ANTHY_LD_FLAGS) + + dnl Check for Ispell usability. ++AC_ARG_WITH(ispell, ++ AS_HELP_STRING([--with-ispell],[with Ispell suport])) ++if test "x$with_ispell" != "xno"; then + AC_CHECK_PROG(HAVE_ISPELL, ispell, yes) + if test "x$HAVE_ISPELL" = "xyes"; then + AC_DEFINE(HAVE_ISPELL, 1, [Define if ispell is available.]) + M17N_EXT_LIBS="$M17N_EXT_LIBS ispell" + CONFIG_FLAGS="$CONFIG_FLAGS -DHAVE_ISPELL" + fi ++fi + + dnl Check for Thai word-segmentation library. + dnl If we have one, define HAVE_THAI_WORDSEG and one of these: diff --git a/dev-libs/m17n-lib/m17n-lib-1.8.6.ebuild b/dev-libs/m17n-lib/m17n-lib-1.8.6.ebuild new file mode 100644 index 000000000000..51c05baff452 --- /dev/null +++ b/dev-libs/m17n-lib/m17n-lib-1.8.6.ebuild @@ -0,0 +1,89 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="8" + +inherit autotools + +DESCRIPTION="Multilingual Library for Unix/Linux" +HOMEPAGE="https://www.nongnu.org/m17n/" +SRC_URI="mirror://nongnu/m17n/${P}.tar.gz" + +LICENSE="LGPL-2.1+" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86" +IUSE="X anthy athena bidi fontconfig gd libotf libxml2 spell xft" + +RDEPEND=">=dev-db/m17n-db-${PV} + X? ( + x11-libs/libX11 + x11-libs/libXt + athena? ( x11-libs/libXaw ) + bidi? ( dev-libs/fribidi ) + fontconfig? ( media-libs/fontconfig ) + gd? ( media-libs/gd[png] ) + libotf? ( dev-libs/libotf ) + xft? ( + media-libs/freetype + x11-libs/libXft + ) + ) + anthy? ( app-i18n/anthy ) + libxml2? ( dev-libs/libxml2:= ) + spell? ( app-text/aspell )" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}"/${PN}-configure.patch + "${FILESDIR}"/${PN}-freetype.patch + "${FILESDIR}"/${PN}-ispell.patch +) + +src_prepare() { + default + + eautoreconf + # workaround for parallel install + sed -i "/^install-module/s/:/: install-libLTLIBRARIES/" src/Makefile.in +} + +src_configure() { + local myconf=( + $(use_with anthy) + $(use_with libxml2) + $(use_with spell ispell) + ) + if use X; then + myconf+=( + $(use_with athena) + $(use_with bidi fribidi) + $(use_with fontconfig) + $(use_with xft freetype) + $(use_with gd) + --with-gui + $(use_with libotf) + --with-x + $(use_with xft) + ) + else + myconf+=( + --without-athena + --without-fontconfig + --without-freetype + --without-fribidi + --without-gd + --without-gui + --without-libotf + --without-x + --without-xft + ) + fi + + econf "${myconf[@]}" +} + +src_install() { + default + find "${ED}" -name '*.la' -delete || die +}
