Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libintl/, dev-libs/libintl/files/
Date: Sat, 29 Oct 2022 15:04:56
Message-Id: 1667055866.eff075e104fdd571cd905bf4a7034d1b1cf91e5b.sam@gentoo
1 commit: eff075e104fdd571cd905bf4a7034d1b1cf91e5b
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 29 15:03:16 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 29 15:04:26 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eff075e1
7
8 dev-libs/libintl: add 0.21.1
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 dev-libs/libintl/Manifest | 2 +
13 .../files/libintl-0.21.1-java-autoconf.patch | 100 +++++++++++++++++++++
14 dev-libs/libintl/libintl-0.21.1.ebuild | 96 ++++++++++++++++++++
15 3 files changed, 198 insertions(+)
16
17 diff --git a/dev-libs/libintl/Manifest b/dev-libs/libintl/Manifest
18 index 653a9cf0788c..b0e7dcae84f3 100644
19 --- a/dev-libs/libintl/Manifest
20 +++ b/dev-libs/libintl/Manifest
21 @@ -1,2 +1,4 @@
22 +DIST gettext-0.21.1.tar.xz 10054564 BLAKE2B e994924284b3fd5b3e3bf59d4bf43eb30c9b21cc213dc3b98616b4a9fc321c90911d94d314f323cfffd0d2c3e9371b5b8f7985b9a785adc61617dd042b6f4df5 SHA512 61e93bc9876effd3ca1c4e64ff6ba5bd84b24951ec2cc6f40a0e3248410e60f887552f29ca1f70541fb5524f6a4e8191fed288713c3e280e18922dd5bff1a2c9
23 +DIST gettext-0.21.1.tar.xz.sig 833 BLAKE2B f673436d315e972f9e110a1b5c8d1b2f20a32fc1b7ce027fcd3bc2fe7a81af183fb8db744cbed1a8c3a6ce1a13d55e19a8e8829fc944960fbfc7efcd9aaed91c SHA512 fba912830c57d0616fb66cf81da0cb7a3ab1e27497c45daa63249d3c9f85182a4f42dfeb1591d8f31c2a340ba0c519f04fd2f05429d1cf26a3ea316d047993d0
24 DIST gettext-0.21.tar.xz 9714352 BLAKE2B e36418323c79f582d13777083b455ae76ccb29e41a8259a2f4d6d9f5d8e2ac7c8ecc4df1b1fa2e9838c819cb27345fe254772398bdb88b3315410866048f755a SHA512 f7e2968651879f8444d43a176a149db9f9411f4a03132a7f3b37c2ed97e3978ae6888169c995c1953cb78943b6e3573811abcbb8661b6631edbbe067b2699ddf
25 DIST gettext-0.21.tar.xz.sig 819 BLAKE2B 22a6e5f6e8a6322e24db9c1f575754bccbf6c7cff7cd14cb51ae8f5cf17cd7b677d8ecfc6b876e1b6f8d62077d568cbf57930e1d8accc5306e6869d3c6560bf4 SHA512 67c9515ad5e11773a28599d517dd84131e4afd878d67e97f505cd024e290518ca9cffff7446c62f88b56aea2c7234d11811738e8e2a076b2159f24c2f6809703
26
27 diff --git a/dev-libs/libintl/files/libintl-0.21.1-java-autoconf.patch b/dev-libs/libintl/files/libintl-0.21.1-java-autoconf.patch
28 new file mode 100644
29 index 000000000000..a7471ac724c9
30 --- /dev/null
31 +++ b/dev-libs/libintl/files/libintl-0.21.1-java-autoconf.patch
32 @@ -0,0 +1,100 @@
33 +From b8fc039e4266570f5af5ee1c2cd201369a766f1e Mon Sep 17 00:00:00 2001
34 +From: Bruno Haible <bruno@×××××.org>
35 +Date: Tue, 11 Oct 2022 01:54:44 +0200
36 +Subject: [PATCH] Avoid warnings during configure execution with
37 + --disable-java.
38 +
39 +Reported by Sam James <sam@×××××.info>
40 +in <https://savannah.gnu.org/bugs/?63193>.
41 +
42 +* gettext-runtime/configure.ac: Expand gt_JAVACOMP_DISABLED inline.
43 +* gettext-tools/configure.ac: Expand gt_JAVAEXEC_DISABLED and
44 +gt_JAVACOMP_DISABLED inline.
45 +--- a/gettext-runtime/configure.ac
46 ++++ b/gettext-runtime/configure.ac
47 +@@ -42,7 +42,16 @@ AS_IF([test "$JAVA_CHOICE" != no], [
48 + BUILDJAVA=no
49 + fi
50 + ], [
51 +- gt_JAVACOMP_DISABLED
52 ++ CONF_JAVAC=
53 ++ HAVE_JAVAC_ENVVAR=
54 ++ HAVE_GCJ_C=
55 ++ HAVE_JAVAC=
56 ++ HAVE_JIKES=
57 ++ AC_SUBST([CONF_JAVAC])
58 ++ AC_SUBST([HAVE_JAVAC_ENVVAR])
59 ++ AC_SUBST([HAVE_GCJ_C])
60 ++ AC_SUBST([HAVE_JAVAC])
61 ++ AC_SUBST([HAVE_JIKES])
62 + JAR=
63 + BUILDJAVA=no
64 + ])
65 +--- a/gettext-tools/configure.ac
66 ++++ b/gettext-tools/configure.ac
67 +@@ -43,8 +43,28 @@ AS_IF([test "$JAVA_CHOICE" != no], [
68 + BUILDJAVA=no
69 + fi
70 + ], [
71 +- gt_JAVAEXEC_DISABLED
72 +- gt_JAVACOMP_DISABLED
73 ++ CONF_JAVA=
74 ++ HAVE_JAVA_ENVVAR=
75 ++ HAVE_GIJ=
76 ++ HAVE_JAVA=
77 ++ HAVE_JRE=
78 ++ HAVE_JVIEW=
79 ++ AC_SUBST([CONF_JAVA])
80 ++ AC_SUBST([HAVE_JAVA_ENVVAR])
81 ++ AC_SUBST([HAVE_GIJ])
82 ++ AC_SUBST([HAVE_JAVA])
83 ++ AC_SUBST([HAVE_JRE])
84 ++ AC_SUBST([HAVE_JVIEW])
85 ++ CONF_JAVAC=
86 ++ HAVE_JAVAC_ENVVAR=
87 ++ HAVE_GCJ_C=
88 ++ HAVE_JAVAC=
89 ++ HAVE_JIKES=
90 ++ AC_SUBST([CONF_JAVAC])
91 ++ AC_SUBST([HAVE_JAVAC_ENVVAR])
92 ++ AC_SUBST([HAVE_GCJ_C])
93 ++ AC_SUBST([HAVE_JAVAC])
94 ++ AC_SUBST([HAVE_JIKES])
95 + JAR=
96 + BUILDJAVA=no
97 + ])
98 +diff --git a/gettext-runtime/configure b/gettext-runtime/configure
99 +index 5e2d593..cf579ff 100755
100 +--- a/gettext-runtime/configure
101 ++++ b/gettext-runtime/configure
102 +@@ -7070,7 +7070,11 @@ fi
103 +
104 + else $as_nop
105 +
106 +- gt_JAVACOMP_DISABLED
107 ++ CONF_JAVAC=
108 ++ HAVE_JAVAC_ENVVAR=
109 ++ HAVE_GCJ_C=
110 ++ HAVE_JAVAC=
111 ++ HAVE_JIKES=
112 + JAR=
113 + BUILDJAVA=no
114 +
115 +diff --git a/gettext-tools/configure b/gettext-tools/configure
116 +index f897bc3..3af54cd 100755
117 +--- a/gettext-tools/configure
118 ++++ b/gettext-tools/configure
119 +@@ -8718,8 +8718,11 @@ fi
120 +
121 + else $as_nop
122 +
123 +- gt_JAVAEXEC_DISABLED
124 +- gt_JAVACOMP_DISABLED
125 ++ CONF_JAVAC=
126 ++ HAVE_JAVAC_ENVVAR=
127 ++ HAVE_GCJ_C=
128 ++ HAVE_JAVAC=
129 ++ HAVE_JIKES=
130 + JAR=
131 + BUILDJAVA=no
132 +
133
134 diff --git a/dev-libs/libintl/libintl-0.21.1.ebuild b/dev-libs/libintl/libintl-0.21.1.ebuild
135 new file mode 100644
136 index 000000000000..851d216d34de
137 --- /dev/null
138 +++ b/dev-libs/libintl/libintl-0.21.1.ebuild
139 @@ -0,0 +1,96 @@
140 +# Copyright 1999-2022 Gentoo Authors
141 +# Distributed under the terms of the GNU General Public License v2
142 +
143 +# Note: Keep version bumps in sync with sys-devel/gettext.
144 +
145 +EAPI=7
146 +
147 +MY_P="gettext-${PV}"
148 +VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/gettext.asc
149 +inherit multilib-minimal libtool usr-ldscript verify-sig
150 +
151 +DESCRIPTION="the GNU international library (split out of gettext)"
152 +HOMEPAGE="https://www.gnu.org/software/gettext/"
153 +SRC_URI="mirror://gnu/gettext/${MY_P}.tar.xz"
154 +SRC_URI+=" verify-sig? ( mirror://gnu/gettext/${MY_P}.tar.xz.sig )"
155 +S="${WORKDIR}/${MY_P}/gettext-runtime"
156 +
157 +LICENSE="LGPL-2.1+"
158 +SLOT="0"
159 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
160 +IUSE="static-libs +threads"
161 +
162 +DEPEND=">=virtual/libiconv-0-r1[${MULTILIB_USEDEP}]"
163 +# Block C libraries known to provide libintl.
164 +RDEPEND="${DEPEND}
165 + !sys-libs/glibc
166 + !sys-libs/musl
167 + !<sys-devel/gettext-0.19.6-r1"
168 +BDEPEND="verify-sig? ( sec-keys/openpgp-keys-gettext )"
169 +
170 +src_prepare() {
171 + default
172 +
173 + cd "${WORKDIR}/${MY_P}" || die
174 + eapply "${FILESDIR}"/${P}-java-autoconf.patch
175 +
176 + # gettext-0.21.1-java-autoconf.patch changes
177 + # gettext-{runtime,tools}/configure.ac and the corresponding
178 + # configure scripts. Avoid regenerating other autotools output.
179 + touch -c gettext-{runtime,tools}/{aclocal.m4,Makefile.in,config.h.in,configure} || die
180 +
181 + # Makefile.am adds a dependency on gettext-{runtime,tools}/configure.ac
182 + touch -c configure || die
183 +
184 + cd "${S}" || die
185 +
186 + # The libtool files are stored higher up, so make sure we run in the
187 + # whole tree and not just the subdir we build.
188 + elibtoolize "${WORKDIR}"
189 +}
190 +
191 +multilib_src_configure() {
192 + local myconf=(
193 + --cache-file="${BUILD_DIR}"/config.cache
194 +
195 + # Emacs support is now in a separate package.
196 + --without-emacs
197 + --without-lispdir
198 + # Normally this controls nls behavior in general, but the libintl
199 + # subdir is skipped unless this is explicitly set. ugh.
200 + --enable-nls
201 + # This magic flag enables libintl.
202 + --with-included-gettext
203 + # The gettext package provides this library.
204 + --disable-c++
205 + --disable-libasprintf
206 + # No Java until someone cares.
207 + --disable-java
208 +
209 + $(use_enable static-libs static)
210 + $(use_enable threads)
211 + )
212 + ECONF_SOURCE="${S}" econf "${myconf[@]}"
213 +}
214 +
215 +multilib_src_compile() {
216 + # We only need things in the intl/ subdir.
217 + emake -C intl
218 +}
219 +
220 +multilib_src_install() {
221 + # We only need things in the intl/ subdir.
222 + emake DESTDIR="${D}" install -C intl
223 +
224 + gen_usr_ldscript -a intl
225 +}
226 +
227 +multilib_src_install_all() {
228 + if ! use static-libs ; then
229 + find "${ED}" -type f -name "*.la" -delete || die
230 + fi
231 +
232 + rm -r "${ED}"/usr/share/locale || die
233 +
234 + dodoc AUTHORS ChangeLog NEWS README
235 +}