Gentoo Archives: gentoo-commits

From: Naohiro Aota <naota@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/libuninameslist/files/, media-libs/libuninameslist/
Date: Thu, 27 May 2021 02:06:10
Message-Id: 1622081123.79dfca2512dbaaf7e133e629f27cf2815a8477e0.naota@gentoo
1 commit: 79dfca2512dbaaf7e133e629f27cf2815a8477e0
2 Author: Naohiro Aota <naota <AT> gentoo <DOT> org>
3 AuthorDate: Thu May 27 02:00:23 2021 +0000
4 Commit: Naohiro Aota <naota <AT> gentoo <DOT> org>
5 CommitDate: Thu May 27 02:05:23 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=79dfca25
7
8 media-libs/libuninameslist: enable french lib
9
10 This commit enable frenclib to fix build with -O0 (undefined references).
11
12 Enabling french lib caused parallel make issue, so Makefile.am is also
13 patched.
14
15 Closes: https://bugs.gentoo.org/781716
16 Signed-off-by: Naohiro Aota <naota <AT> gentoo.org>
17
18 .../files/libuninameslist-20200413-makefile.patch | 20 ++++++++++++++
19 .../libuninameslist-20200413-r2.ebuild | 32 ++++++++++++++++++++++
20 2 files changed, 52 insertions(+)
21
22 diff --git a/media-libs/libuninameslist/files/libuninameslist-20200413-makefile.patch b/media-libs/libuninameslist/files/libuninameslist-20200413-makefile.patch
23 new file mode 100644
24 index 00000000000..fc9c24329a4
25 --- /dev/null
26 +++ b/media-libs/libuninameslist/files/libuninameslist-20200413-makefile.patch
27 @@ -0,0 +1,20 @@
28 +diff --git a/Makefile.am b/Makefile.am
29 +index 98be02ca26c8..848bc6c8269b 100644
30 +--- a/Makefile.am
31 ++++ b/Makefile.am
32 +@@ -44,6 +44,7 @@ lib_LTLIBRARIES += libuninameslist.la
33 +
34 + include_HEADERS = uninameslist.h
35 + libuninameslist_la_LIBADD =
36 ++EXTRA_libuninameslist_la_DEPENDENCIES =
37 + man_MANS = libuninameslist.3
38 + noinst_HEADERS = nameslist-dll.h
39 +
40 +@@ -53,6 +54,7 @@ libuninameslist_fr_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(FR_VERSION)
41 + libuninameslist_fr_la_SOURCES = nameslist-fr.c
42 + libuninameslist_fr_la.$(OBJEXT): uninameslist-fr.h nameslist-dll.h
43 + libuninameslist_la_LIBADD += -luninameslist-fr
44 ++EXTRA_libuninameslist_la_DEPENDENCIES += libuninameslist-fr.la
45 + man_MANS += libuninameslist-fr.3
46 + else
47 + EXTRA_DIST += nameslist-fr.c uninameslist-fr.h libuninameslist-fr.3
48
49 diff --git a/media-libs/libuninameslist/libuninameslist-20200413-r2.ebuild b/media-libs/libuninameslist/libuninameslist-20200413-r2.ebuild
50 new file mode 100644
51 index 00000000000..f83f0bcf85a
52 --- /dev/null
53 +++ b/media-libs/libuninameslist/libuninameslist-20200413-r2.ebuild
54 @@ -0,0 +1,32 @@
55 +# Copyright 1999-2021 Gentoo Authors
56 +# Distributed under the terms of the GNU General Public License v2
57 +
58 +EAPI=7
59 +
60 +inherit autotools
61 +
62 +DESCRIPTION="Library of unicode annotation data"
63 +HOMEPAGE="https://github.com/fontforge/libuninameslist"
64 +SRC_URI="https://github.com/fontforge/libuninameslist/releases/download/${PV}/${PN}-dist-${PV}.tar.gz"
65 +
66 +LICENSE="BSD"
67 +SLOT="0/1"
68 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-solaris"
69 +
70 +PATCHES=(
71 + "${FILESDIR}/${PN}-20200413-makefile.patch"
72 +)
73 +
74 +src_prepare() {
75 + default
76 + eautoreconf
77 +}
78 +
79 +src_configure() {
80 + econf --disable-static --enable-frenchlib
81 +}
82 +
83 +src_install() {
84 + default
85 + find "${ED}"/usr -name '*.la' -delete || die
86 +}