Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/gettext/, sys-devel/gettext/files/
Date: Thu, 29 Oct 2020 14:08:10
Message-Id: 1603980379.4a160d8fb45b3cdab58a99eeb5f9f0dc07a96a7b.polynomial-c@gentoo
1 commit: 4a160d8fb45b3cdab58a99eeb5f9f0dc07a96a7b
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Thu Oct 29 14:06:19 2020 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Thu Oct 29 14:06:19 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4a160d8f
7
8 Revert "sys-devel/gettext: Removed old"
9
10 This reverts commit 2820aee152f31d8627ab8c1dc42d38240ad108b5.
11 Because of wrong bug reference
12
13 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
14
15 sys-devel/gettext/Manifest | 2 +
16 .../files/gettext-0.20-avoid_eautomake.patch | 22 +++
17 sys-devel/gettext/gettext-0.20.1.ebuild | 152 +++++++++++++++++++++
18 sys-devel/gettext/gettext-0.20.2.ebuild | 152 +++++++++++++++++++++
19 4 files changed, 328 insertions(+)
20
21 diff --git a/sys-devel/gettext/Manifest b/sys-devel/gettext/Manifest
22 index 61bb66f324f..aa086cfc85b 100644
23 --- a/sys-devel/gettext/Manifest
24 +++ b/sys-devel/gettext/Manifest
25 @@ -1 +1,3 @@
26 +DIST gettext-0.20.1.tar.gz 23267473 BLAKE2B 34e776b985c7db105f8029e0f3400aa645ff6843cd35f778d48450368a31218ddcf590fbc7fd2d10f716b63094d6a15bf40b358e8a6f498d450d2420e7e7a5f2 SHA512 af6d74986da285df0bdd59524bdf01bb12db448e5ea659dda3b60b660c4a9063c80e8c74cc8751334e065e98348ee0db0079e43c67d485a15e86ae236115fe06
27 +DIST gettext-0.20.2.tar.gz 23717789 BLAKE2B f0db5eacc93501020f31d80e4b11df708d5ce1ae76f9c35587c830c064a4b712284df4645cedf054a41e66ab08d14d080c4fe1d316a108b997207b78148ed579 SHA512 50b0520230dba5da6e04e51b2317e073cacf1536d73ea88e4b5dc6cc5bd97cf2c9a279c3c3ada1067f39c8b3bb0b1ce8e0823cc1dd4c33f4f10860bdf787009d
28 DIST gettext-0.21.tar.gz 24181849 BLAKE2B 2eae99d0916b00b2af6fbc6bf7e309076519a10fea16cd49e7aa29fe8aec1ee7c784c6277281b764dc4abacf400cd3fe461129586303c8cd337db15c76cb4b87 SHA512 bbe590c5dd3580c75bf30ff768da99a88eb8d466ec1ac9eea20be4cab4357ecf72448e6b81b47425e39d50fa6320ba426632914d7898dfebb4f159abc39c31d1
29
30 diff --git a/sys-devel/gettext/files/gettext-0.20-avoid_eautomake.patch b/sys-devel/gettext/files/gettext-0.20-avoid_eautomake.patch
31 new file mode 100644
32 index 00000000000..16592c8018e
33 --- /dev/null
34 +++ b/sys-devel/gettext/files/gettext-0.20-avoid_eautomake.patch
35 @@ -0,0 +1,22 @@
36 +--- gettext-0.20/gettext-tools/src/Makefile.in
37 ++++ gettext-0.20/gettext-tools/src/Makefile.in
38 +@@ -3952,9 +3952,16 @@
39 +
40 + # How to get the include files of libtextstyle.
41 + textstyle.h textstyle/stdbool.h textstyle/version.h textstyle/woe32dll.h:
42 +- here=`pwd`; \
43 +- cd ../../libtextstyle/lib && \
44 +- $(MAKE) install-nobase_includeHEADERS install-nobase_nodist_includeHEADERS includedir="$$here"
45 ++ cd "$(abs_top_builddir)/../libtextstyle/lib" && $(MAKE) $@
46 ++ if test -f "$(abs_top_builddir)/../libtextstyle/lib/$@"; then \
47 ++ file="$(abs_top_builddir)/../libtextstyle/lib/$@"; \
48 ++ else \
49 ++ file="$(abs_top_srcdir)/../libtextstyle/lib/$@"; \
50 ++ fi; \
51 ++ target_dir="$(abs_builddir)/$@"; \
52 ++ target_dir="$${target_dir%/*}"; \
53 ++ $(MKDIR_P) "$${target_dir}"; \
54 ++ $(INSTALL_HEADER) "$$file" $@
55 +
56 + # No need to install libgettextsrc.a, except on AIX.
57 + install-exec-hook: install-exec-clean
58
59 diff --git a/sys-devel/gettext/gettext-0.20.1.ebuild b/sys-devel/gettext/gettext-0.20.1.ebuild
60 new file mode 100644
61 index 00000000000..a36da278b93
62 --- /dev/null
63 +++ b/sys-devel/gettext/gettext-0.20.1.ebuild
64 @@ -0,0 +1,152 @@
65 +# Copyright 1999-2020 Gentoo Authors
66 +# Distributed under the terms of the GNU General Public License v2
67 +
68 +# Note: Keep version bumps in sync with dev-libs/libintl.
69 +
70 +EAPI=7
71 +
72 +inherit mono-env libtool java-pkg-opt-2 multilib-minimal
73 +
74 +DESCRIPTION="GNU locale utilities"
75 +HOMEPAGE="https://www.gnu.org/software/gettext/"
76 +SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
77 +
78 +# Only libasprintf is under the LGPL (and libintl is in a sep package),
79 +# so put that license behind USE=cxx.
80 +LICENSE="GPL-3+ cxx? ( LGPL-2.1+ )"
81 +SLOT="0"
82 +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv s390 sparc x86"
83 +IUSE="acl -cvs +cxx doc emacs git java ncurses nls openmp static-libs"
84 +
85 +# only runtime goes multilib
86 +# Note: The version of libxml2 corresponds to the version bundled via gnulib.
87 +# If the build detects too old of a system version, it will end up falling back
88 +# to the bundled copy. #596918
89 +# Note: expat lacks a subslot because it is dynamically loaded at runtime. We
90 +# would depend on older subslots if they were available (based on the ABIs that
91 +# are explicitly handled), but expat doesn't currently use subslots.
92 +DEPEND=">=virtual/libiconv-0-r1[${MULTILIB_USEDEP}]
93 + >=virtual/libintl-0-r2[${MULTILIB_USEDEP}]
94 + >=dev-libs/libxml2-2.9.3:=
95 + dev-libs/expat
96 + acl? ( virtual/acl )
97 + ncurses? ( sys-libs/ncurses:0= )
98 + java? ( >=virtual/jdk-1.4:= )"
99 +RDEPEND="${DEPEND}
100 + !git? ( cvs? ( dev-vcs/cvs ) )
101 + git? ( dev-vcs/git )
102 + java? ( >=virtual/jre-1.4 )"
103 +BDEPEND="
104 + git? ( dev-vcs/git )
105 +"
106 +PDEPEND="emacs? ( app-emacs/po-mode )"
107 +
108 +MULTILIB_WRAPPED_HEADERS=(
109 + # only installed for native ABI
110 + /usr/include/gettext-po.h
111 +
112 + /usr/include/autosprintf.h
113 + /usr/include/textstyle.h
114 + /usr/include/textstyle/stdbool.h
115 + /usr/include/textstyle/version.h
116 + /usr/include/textstyle/woe32dll.h
117 +)
118 +
119 +PATCHES=(
120 + "${FILESDIR}"/${PN}-0.19.7-disable-libintl.patch #564168
121 + "${FILESDIR}"/${PN}-0.20-parallel_install.patch #685530
122 + "${FILESDIR}"/${PN}-0.20-avoid_eautomake.patch
123 +)
124 +
125 +QA_SONAME_NO_SYMLINK=".*/preloadable_libintl.so"
126 +
127 +pkg_setup() {
128 + mono-env_pkg_setup
129 + java-pkg-opt-2_pkg_setup
130 +}
131 +
132 +src_prepare() {
133 + java-pkg-opt-2_src_prepare
134 +
135 + default
136 +
137 + elibtoolize
138 +}
139 +
140 +multilib_src_configure() {
141 + local myconf=(
142 + # switches common to runtime and top-level
143 + --cache-file="${BUILD_DIR}"/config.cache
144 + #--docdir="\$(datarootdir)/doc/${PF}"
145 +
146 + # Emacs support is now in a separate package
147 + --without-emacs
148 + --without-lispdir
149 + # glib depends on us so avoid circular deps
150 + --with-included-glib
151 + # libcroco depends on glib which ... ^^^
152 + --with-included-libcroco
153 + # this will _disable_ libunistring (since it is not bundled),
154 + # see bug #326477
155 + --with-included-libunistring
156 + # Never build libintl since it's in dev-libs/libintl now.
157 + --without-included-gettext
158 + # Never build bundled copy of libxml2.
159 + --without-included-libxml
160 +
161 + $(use_enable acl)
162 + $(use_enable cxx c++)
163 + $(use_enable cxx libasprintf)
164 + $(use_with git)
165 + $(usex git --without-cvs $(use_with cvs))
166 + $(use_enable java)
167 + $(use_enable ncurses curses)
168 + $(use_enable nls)
169 + $(use_enable openmp)
170 + $(use_enable static-libs static)
171 + )
172 +
173 + local ECONF_SOURCE="${S}"
174 + if ! multilib_is_native_abi ; then
175 + # for non-native ABIs, we build runtime only
176 + ECONF_SOURCE+=/gettext-runtime
177 + fi
178 +
179 + econf "${myconf[@]}"
180 +}
181 +
182 +multilib_src_install() {
183 + emake DESTDIR="${D}" install
184 +
185 + if multilib_is_native_abi ; then
186 + dosym msgfmt /usr/bin/gmsgfmt #43435
187 + dobin gettext-tools/misc/gettextize
188 + fi
189 +}
190 +
191 +multilib_src_install_all() {
192 + find "${ED}" -type f -name "*.la" -delete || die
193 +
194 + if use java ; then
195 + java-pkg_dojar "${ED}"/usr/share/${PN}/*.jar
196 + rm "${ED}"/usr/share/${PN}/*.jar || die
197 + rm "${ED}"/usr/share/${PN}/*.class || die
198 + if use doc ; then
199 + java-pkg_dojavadoc "${ED}"/usr/share/doc/${PF}/html/javadoc2
200 + fi
201 + fi
202 +
203 + dodoc AUTHORS ChangeLog NEWS README THANKS
204 +
205 + if use doc ; then
206 + docinto html
207 + dodoc "${ED}"/usr/share/doc/${PF}/*.html
208 + else
209 + rm -rf "${ED}"/usr/share/doc/${PF}/{csharpdoc,examples,javadoc2,javadoc1}
210 + fi
211 + rm "${ED}"/usr/share/doc/${PF}/*.html || die
212 +}
213 +
214 +pkg_preinst() {
215 + java-pkg-opt-2_pkg_preinst
216 +}
217
218 diff --git a/sys-devel/gettext/gettext-0.20.2.ebuild b/sys-devel/gettext/gettext-0.20.2.ebuild
219 new file mode 100644
220 index 00000000000..f84993f9796
221 --- /dev/null
222 +++ b/sys-devel/gettext/gettext-0.20.2.ebuild
223 @@ -0,0 +1,152 @@
224 +# Copyright 1999-2020 Gentoo Authors
225 +# Distributed under the terms of the GNU General Public License v2
226 +
227 +# Note: Keep version bumps in sync with dev-libs/libintl.
228 +
229 +EAPI=7
230 +
231 +inherit mono-env libtool java-pkg-opt-2 multilib-minimal
232 +
233 +DESCRIPTION="GNU locale utilities"
234 +HOMEPAGE="https://www.gnu.org/software/gettext/"
235 +SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
236 +
237 +# Only libasprintf is under the LGPL (and libintl is in a sep package),
238 +# so put that license behind USE=cxx.
239 +LICENSE="GPL-3+ cxx? ( LGPL-2.1+ )"
240 +SLOT="0"
241 +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv s390 sparc x86"
242 +IUSE="acl -cvs +cxx doc emacs git java ncurses nls openmp static-libs"
243 +
244 +# only runtime goes multilib
245 +# Note: The version of libxml2 corresponds to the version bundled via gnulib.
246 +# If the build detects too old of a system version, it will end up falling back
247 +# to the bundled copy. #596918
248 +# Note: expat lacks a subslot because it is dynamically loaded at runtime. We
249 +# would depend on older subslots if they were available (based on the ABIs that
250 +# are explicitly handled), but expat doesn't currently use subslots.
251 +DEPEND=">=virtual/libiconv-0-r1[${MULTILIB_USEDEP}]
252 + >=virtual/libintl-0-r2[${MULTILIB_USEDEP}]
253 + >=dev-libs/libxml2-2.9.3:=
254 + dev-libs/expat
255 + acl? ( virtual/acl )
256 + ncurses? ( sys-libs/ncurses:0= )
257 + java? ( >=virtual/jdk-1.4:= )"
258 +RDEPEND="${DEPEND}
259 + !git? ( cvs? ( dev-vcs/cvs ) )
260 + git? ( dev-vcs/git )
261 + java? ( >=virtual/jre-1.4 )"
262 +BDEPEND="
263 + git? ( dev-vcs/git )
264 +"
265 +PDEPEND="emacs? ( app-emacs/po-mode )"
266 +
267 +MULTILIB_WRAPPED_HEADERS=(
268 + # only installed for native ABI
269 + /usr/include/gettext-po.h
270 +
271 + /usr/include/autosprintf.h
272 + /usr/include/textstyle.h
273 + /usr/include/textstyle/stdbool.h
274 + /usr/include/textstyle/version.h
275 + /usr/include/textstyle/woe32dll.h
276 +)
277 +
278 +PATCHES=(
279 + "${FILESDIR}"/${PN}-0.19.7-disable-libintl.patch #564168
280 + "${FILESDIR}"/${PN}-0.20-parallel_install.patch #685530
281 + "${FILESDIR}"/${PN}-0.21_rc1-avoid_eautomake.patch
282 +)
283 +
284 +QA_SONAME_NO_SYMLINK=".*/preloadable_libintl.so"
285 +
286 +pkg_setup() {
287 + mono-env_pkg_setup
288 + java-pkg-opt-2_pkg_setup
289 +}
290 +
291 +src_prepare() {
292 + java-pkg-opt-2_src_prepare
293 +
294 + default
295 +
296 + elibtoolize
297 +}
298 +
299 +multilib_src_configure() {
300 + local myconf=(
301 + # switches common to runtime and top-level
302 + --cache-file="${BUILD_DIR}"/config.cache
303 + #--docdir="\$(datarootdir)/doc/${PF}"
304 +
305 + # Emacs support is now in a separate package
306 + --without-emacs
307 + --without-lispdir
308 + # glib depends on us so avoid circular deps
309 + --with-included-glib
310 + # libcroco depends on glib which ... ^^^
311 + --with-included-libcroco
312 + # this will _disable_ libunistring (since it is not bundled),
313 + # see bug #326477
314 + --with-included-libunistring
315 + # Never build libintl since it's in dev-libs/libintl now.
316 + --without-included-gettext
317 + # Never build bundled copy of libxml2.
318 + --without-included-libxml
319 +
320 + $(use_enable acl)
321 + $(use_enable cxx c++)
322 + $(use_enable cxx libasprintf)
323 + $(use_with git)
324 + $(usex git --without-cvs $(use_with cvs))
325 + $(use_enable java)
326 + $(use_enable ncurses curses)
327 + $(use_enable nls)
328 + $(use_enable openmp)
329 + $(use_enable static-libs static)
330 + )
331 +
332 + local ECONF_SOURCE="${S}"
333 + if ! multilib_is_native_abi ; then
334 + # for non-native ABIs, we build runtime only
335 + ECONF_SOURCE+=/gettext-runtime
336 + fi
337 +
338 + econf "${myconf[@]}"
339 +}
340 +
341 +multilib_src_install() {
342 + emake DESTDIR="${D}" install
343 +
344 + if multilib_is_native_abi ; then
345 + dosym msgfmt /usr/bin/gmsgfmt #43435
346 + dobin gettext-tools/misc/gettextize
347 + fi
348 +}
349 +
350 +multilib_src_install_all() {
351 + find "${ED}" -type f -name "*.la" -delete || die
352 +
353 + if use java ; then
354 + java-pkg_dojar "${ED}"/usr/share/${PN}/*.jar
355 + rm "${ED}"/usr/share/${PN}/*.jar || die
356 + rm "${ED}"/usr/share/${PN}/*.class || die
357 + if use doc ; then
358 + java-pkg_dojavadoc "${ED}"/usr/share/doc/${PF}/html/javadoc2
359 + fi
360 + fi
361 +
362 + dodoc AUTHORS ChangeLog NEWS README THANKS
363 +
364 + if use doc ; then
365 + docinto html
366 + dodoc "${ED}"/usr/share/doc/${PF}/*.html
367 + else
368 + rm -rf "${ED}"/usr/share/doc/${PF}/{csharpdoc,examples,javadoc2,javadoc1}
369 + fi
370 + rm "${ED}"/usr/share/doc/${PF}/*.html || die
371 +}
372 +
373 +pkg_preinst() {
374 + java-pkg-opt-2_pkg_preinst
375 +}