commit:     79dfca2512dbaaf7e133e629f27cf2815a8477e0
Author:     Naohiro Aota <naota <AT> gentoo <DOT> org>
AuthorDate: Thu May 27 02:00:23 2021 +0000
Commit:     Naohiro Aota <naota <AT> gentoo <DOT> org>
CommitDate: Thu May 27 02:05:23 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=79dfca25

media-libs/libuninameslist: enable french lib

This commit enable frenclib to fix build with -O0 (undefined references).

Enabling french lib caused parallel make issue, so Makefile.am is also
patched.

Closes: https://bugs.gentoo.org/781716
Signed-off-by: Naohiro Aota <naota <AT> gentoo.org>

 .../files/libuninameslist-20200413-makefile.patch  | 20 ++++++++++++++
 .../libuninameslist-20200413-r2.ebuild             | 32 ++++++++++++++++++++++
 2 files changed, 52 insertions(+)

diff --git 
a/media-libs/libuninameslist/files/libuninameslist-20200413-makefile.patch 
b/media-libs/libuninameslist/files/libuninameslist-20200413-makefile.patch
new file mode 100644
index 00000000000..fc9c24329a4
--- /dev/null
+++ b/media-libs/libuninameslist/files/libuninameslist-20200413-makefile.patch
@@ -0,0 +1,20 @@
+diff --git a/Makefile.am b/Makefile.am
+index 98be02ca26c8..848bc6c8269b 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -44,6 +44,7 @@ lib_LTLIBRARIES += libuninameslist.la
+ 
+ include_HEADERS = uninameslist.h
+ libuninameslist_la_LIBADD =
++EXTRA_libuninameslist_la_DEPENDENCIES =
+ man_MANS = libuninameslist.3
+ noinst_HEADERS = nameslist-dll.h
+ 
+@@ -53,6 +54,7 @@ libuninameslist_fr_la_LDFLAGS = $(AM_LDFLAGS) -version-info 
$(FR_VERSION)
+ libuninameslist_fr_la_SOURCES = nameslist-fr.c
+ libuninameslist_fr_la.$(OBJEXT): uninameslist-fr.h nameslist-dll.h
+ libuninameslist_la_LIBADD += -luninameslist-fr
++EXTRA_libuninameslist_la_DEPENDENCIES += libuninameslist-fr.la
+ man_MANS += libuninameslist-fr.3
+ else
+ EXTRA_DIST += nameslist-fr.c uninameslist-fr.h libuninameslist-fr.3

diff --git a/media-libs/libuninameslist/libuninameslist-20200413-r2.ebuild 
b/media-libs/libuninameslist/libuninameslist-20200413-r2.ebuild
new file mode 100644
index 00000000000..f83f0bcf85a
--- /dev/null
+++ b/media-libs/libuninameslist/libuninameslist-20200413-r2.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit autotools
+
+DESCRIPTION="Library of unicode annotation data"
+HOMEPAGE="https://github.com/fontforge/libuninameslist";
+SRC_URI="https://github.com/fontforge/libuninameslist/releases/download/${PV}/${PN}-dist-${PV}.tar.gz";
+
+LICENSE="BSD"
+SLOT="0/1"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 
~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-solaris"
+
+PATCHES=(
+       "${FILESDIR}/${PN}-20200413-makefile.patch"
+)
+
+src_prepare() {
+       default
+       eautoreconf
+}
+
+src_configure() {
+       econf --disable-static --enable-frenchlib
+}
+
+src_install() {
+       default
+       find "${ED}"/usr -name '*.la' -delete || die
+}

Reply via email to