Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/prefix:master commit in: dev-libs/libintl/
Date: Mon, 30 Nov 2020 03:12:32
Message-Id: 1606705903.f25e4ca04d556784c07d324627b5f33e8259d2b9.sam@gentoo
1 commit: f25e4ca04d556784c07d324627b5f33e8259d2b9
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Mon Nov 30 03:11:43 2020 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Mon Nov 30 03:11:43 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=f25e4ca0
7
8 dev-libs/libintl: bump to 0.21
9
10 Dropped patches for cygwin seem to have been applied upstream.
11
12 Package-Manager: Portage-3.0.9, Repoman-3.0.2
13 RepoMan-Options: --force
14 Signed-off-by: Sam James <sam <AT> gentoo.org>
15
16 dev-libs/libintl/Manifest | 1 +
17 dev-libs/libintl/libintl-0.21.ebuild | 80 ++++++++++++++++++++++++++++++++++++
18 2 files changed, 81 insertions(+)
19
20 diff --git a/dev-libs/libintl/Manifest b/dev-libs/libintl/Manifest
21 index 015ea61aee..3f9d6130b3 100644
22 --- a/dev-libs/libintl/Manifest
23 +++ b/dev-libs/libintl/Manifest
24 @@ -1,3 +1,4 @@
25 DIST gettext-0.19.6.tar.gz 18619659 BLAKE2B fb5e518cef2048c89d2c637d3551d6d7debff2fcdeb35b60f0ae9943733bf5cd8ec46f0a4cccd9f1806a6af4b16eef372a0621af611d3706356af6ae82d0d5bf SHA512 46adfd4a6d0038aba999658bebe51117e3ab3dc149a9054c1087d3e79ec7ba3371a7e78a8ca30a8872d162c2dc44aba6e67e4d64808c4f92e1e2bd674174f1db
26 DIST gettext-0.19.7.tar.gz 19235781 BLAKE2B 4c2cfcb0b21a66a9f8d2d57de7420e624a1235f97180ad5ac194a5eb629760a9cacc7f3966cdf893d7af86c1740d8bb2266c639ebe2664ea44f2c47a962a841a SHA512 7ba89074d3eddd0b4a5e2980e1ec74b53c49b7a04a1fa91c70c4bc11ce9c30415e4df9d79698148eaaed325fb4feb25a340a2e8e01fbe86b1a66b1376a4c9e3d
27 DIST gettext-0.19.8.1.tar.gz 19704011 BLAKE2B 17dc7aad338a26d71b818fea51e46a47dccf14744ee575ce86b591becaea402e36d64dc018e1a84113c356122ffef367cf2fa424e51ebc9720350040b4960091 SHA512 073042fa2dc48804c58e76f036130a669e19612c25427b0ab14d0b366b549a63751bf3af03bfd0745d7c4f72497a4b2aab26a3cc6de83189ce111679073878e1
28 +DIST gettext-0.21.tar.gz 24181849 BLAKE2B 2eae99d0916b00b2af6fbc6bf7e309076519a10fea16cd49e7aa29fe8aec1ee7c784c6277281b764dc4abacf400cd3fe461129586303c8cd337db15c76cb4b87 SHA512 bbe590c5dd3580c75bf30ff768da99a88eb8d466ec1ac9eea20be4cab4357ecf72448e6b81b47425e39d50fa6320ba426632914d7898dfebb4f159abc39c31d1
29
30 diff --git a/dev-libs/libintl/libintl-0.21.ebuild b/dev-libs/libintl/libintl-0.21.ebuild
31 new file mode 100644
32 index 0000000000..c6e56c06d9
33 --- /dev/null
34 +++ b/dev-libs/libintl/libintl-0.21.ebuild
35 @@ -0,0 +1,80 @@
36 +# Copyright 1999-2020 Gentoo Authors
37 +# Distributed under the terms of the GNU General Public License v2
38 +
39 +# Note: Keep version bumps in sync with sys-devel/gettext.
40 +
41 +EAPI="5"
42 +
43 +MY_P="gettext-${PV}"
44 +
45 +inherit multilib-minimal toolchain-funcs libtool
46 +
47 +DESCRIPTION="the GNU international library (split out of gettext)"
48 +HOMEPAGE="https://www.gnu.org/software/gettext/"
49 +SRC_URI="mirror://gnu/gettext/${MY_P}.tar.gz"
50 +
51 +LICENSE="LGPL-2.1+"
52 +SLOT="0"
53 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
54 +IUSE="static-libs +threads"
55 +
56 +DEPEND=">=virtual/libiconv-0-r1[${MULTILIB_USEDEP}]"
57 +# Block C libraries known to provide libintl.
58 +RDEPEND="${DEPEND}
59 + !sys-libs/glibc
60 + !sys-libs/musl
61 + !<sys-devel/gettext-0.19.6-r1"
62 +
63 +S="${WORKDIR}/${MY_P}/gettext-runtime"
64 +
65 +src_prepare() {
66 + # Doesn't apply to 0.21
67 + # Looks like a lot of the fixes have landed upstream
68 + #epatch "${FILESDIR}"/0.19.3-localename.patch # Cygwin
69 +
70 + # The libtool files are stored higher up, so make sure we run in the
71 + # whole tree and not just the subdir we build.
72 + elibtoolize "${WORKDIR}"
73 +}
74 +
75 +multilib_src_configure() {
76 + local myconf=(
77 + # Emacs support is now in a separate package.
78 + --without-emacs
79 + --without-lispdir
80 + # Normally this controls nls behavior in general, but the libintl
81 + # subdir is skipped unless this is explicitly set. ugh.
82 + --enable-nls
83 + # This magic flag enables libintl.
84 + --with-included-gettext
85 + # The gettext package provides this library.
86 + --disable-c++
87 + --disable-libasprintf
88 + # No java until someone cares.
89 + --disable-java
90 +
91 + $(use_enable static-libs static)
92 + $(use_enable threads)
93 + )
94 + ECONF_SOURCE=${S} econf "${myconf[@]}"
95 +}
96 +
97 +multilib_src_compile() {
98 + # We only need things in the intl/ subdir.
99 + emake -C intl
100 +}
101 +
102 +multilib_src_install() {
103 + # We only need things in the intl/ subdir.
104 + emake DESTDIR="${D}" install -C intl
105 +
106 + gen_usr_ldscript -a intl
107 +}
108 +
109 +multilib_src_install_all() {
110 + use static-libs || prune_libtool_files --all
111 +
112 + rm -f "${ED}"/usr/share/locale/locale.alias "${ED}"/usr/lib/charset.alias
113 +
114 + dodoc AUTHORS ChangeLog NEWS README
115 +}