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/
Date: Thu, 09 May 2019 13:06:37
Message-Id: 1557407182.48d3ecd08b584d3bc96ff38ba8dcc53e2cb7d885.polynomial-c@gentoo
1 commit: 48d3ecd08b584d3bc96ff38ba8dcc53e2cb7d885
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Thu May 9 08:29:48 2019 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Thu May 9 13:06:22 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=48d3ecd0
7
8 sys-devel/gettext: Bump to version 0.20
9
10 Package-Manager: Portage-2.3.66, Repoman-2.3.12
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 sys-devel/gettext/Manifest | 1 +
14 sys-devel/gettext/gettext-0.20.ebuild | 154 ++++++++++++++++++++++++++++++++++
15 2 files changed, 155 insertions(+)
16
17 diff --git a/sys-devel/gettext/Manifest b/sys-devel/gettext/Manifest
18 index 83c6b66de3f..5a17d4f692d 100644
19 --- a/sys-devel/gettext/Manifest
20 +++ b/sys-devel/gettext/Manifest
21 @@ -1 +1,2 @@
22 DIST gettext-0.19.8.1.tar.gz 19704011 BLAKE2B 17dc7aad338a26d71b818fea51e46a47dccf14744ee575ce86b591becaea402e36d64dc018e1a84113c356122ffef367cf2fa424e51ebc9720350040b4960091 SHA512 073042fa2dc48804c58e76f036130a669e19612c25427b0ab14d0b366b549a63751bf3af03bfd0745d7c4f72497a4b2aab26a3cc6de83189ce111679073878e1
23 +DIST gettext-0.20.tar.gz 23269355 BLAKE2B f3cfcaab7794a10262073d400ea0f8e21d26a2ec9c2b70cc5b493469142ab9d3bfebb3c08e5103f53afe6c48a820440f535151e7bae9a8bb40ca1259bafd0bb0 SHA512 7901039834775878e485544699b14168ec60417dc88a295a6495766cc7222e8972706959e97c3f225aec9c059868f0becdf7a74ecf826e9989b564955ab39063
24
25 diff --git a/sys-devel/gettext/gettext-0.20.ebuild b/sys-devel/gettext/gettext-0.20.ebuild
26 new file mode 100644
27 index 00000000000..ed1c8764f3e
28 --- /dev/null
29 +++ b/sys-devel/gettext/gettext-0.20.ebuild
30 @@ -0,0 +1,154 @@
31 +# Copyright 1999-2019 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +# Note: Keep version bumps in sync with dev-libs/libintl.
35 +
36 +EAPI=7
37 +
38 +inherit epunt-cxx mono-env libtool java-pkg-opt-2 multilib-minimal
39 +
40 +DESCRIPTION="GNU locale utilities"
41 +HOMEPAGE="https://www.gnu.org/software/gettext/"
42 +SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
43 +
44 +# Only libasprintf is under the LGPL (and libintl is in a sep package),
45 +# so put that license behind USE=cxx.
46 +LICENSE="GPL-3+ cxx? ( LGPL-2.1+ )"
47 +SLOT="0"
48 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
49 +IUSE="acl -cvs +cxx doc emacs git java ncurses nls openmp static-libs"
50 +
51 +# only runtime goes multilib
52 +# Note: The version of libxml2 corresponds to the version bundled via gnulib.
53 +# If the build detects too old of a system version, it will end up falling back
54 +# to the bundled copy. #596918
55 +# Note: expat lacks a subslot because it is dynamically loaded at runtime. We
56 +# would depend on older subslots if they were available (based on the ABIs that
57 +# are explicitly handled), but expat doesn't currently use subslots.
58 +DEPEND=">=virtual/libiconv-0-r1[${MULTILIB_USEDEP}]
59 + >=virtual/libintl-0-r2[${MULTILIB_USEDEP}]
60 + >=dev-libs/libxml2-2.9.3:=
61 + dev-libs/expat
62 + acl? ( virtual/acl )
63 + ncurses? ( sys-libs/ncurses:0= )
64 + java? ( >=virtual/jdk-1.4:= )"
65 +RDEPEND="${DEPEND}
66 + !git? ( cvs? ( dev-vcs/cvs ) )
67 + git? ( dev-vcs/git )
68 + java? ( >=virtual/jre-1.4 )"
69 +PDEPEND="emacs? ( app-emacs/po-mode )"
70 +
71 +MULTILIB_WRAPPED_HEADERS=(
72 + # only installed for native ABI
73 + /usr/include/gettext-po.h
74 +
75 + /usr/include/autosprintf.h
76 + /usr/include/textstyle.h
77 + /usr/include/textstyle/stdbool.h
78 + /usr/include/textstyle/version.h
79 + /usr/include/textstyle/woe32dll.h
80 +)
81 +
82 +PATCHES=(
83 + "${FILESDIR}"/${PN}-0.19.7-disable-libintl.patch #564168
84 +)
85 +
86 +pkg_setup() {
87 + mono-env_pkg_setup
88 + java-pkg-opt-2_pkg_setup
89 +}
90 +
91 +src_prepare() {
92 + java-pkg-opt-2_src_prepare
93 +
94 + default
95 +
96 + epunt_cxx
97 + elibtoolize
98 +}
99 +
100 +multilib_src_configure() {
101 + local myconf=(
102 + # switches common to runtime and top-level
103 + --cache-file="${BUILD_DIR}"/config.cache
104 + #--docdir="\$(datarootdir)/doc/${PF}"
105 +
106 + # Emacs support is now in a separate package
107 + --without-emacs
108 + --without-lispdir
109 + # glib depends on us so avoid circular deps
110 + --with-included-glib
111 + # libcroco depends on glib which ... ^^^
112 + --with-included-libcroco
113 + # this will _disable_ libunistring (since it is not bundled),
114 + # see bug #326477
115 + --with-included-libunistring
116 + # Never build libintl since it's in dev-libs/libintl now.
117 + --without-included-gettext
118 + # Never build bundled copy of libxml2.
119 + --without-included-libxml
120 +
121 + $(use_enable acl)
122 + $(use_enable cxx c++)
123 + $(use_enable cxx libasprintf)
124 + $(use_with git)
125 + $(usex git --without-cvs $(use_with cvs))
126 + $(use_enable java)
127 + $(use_enable ncurses curses)
128 + $(use_enable nls)
129 + $(use_enable openmp)
130 + $(use_enable static-libs static)
131 + )
132 +
133 + local ECONF_SOURCE="${S}"
134 + if ! multilib_is_native_abi ; then
135 + # for non-native ABIs, we build runtime only
136 + ECONF_SOURCE+=/gettext-runtime
137 + fi
138 +
139 + econf "${myconf[@]}"
140 +}
141 +
142 +multilib_src_install() {
143 + default
144 +
145 + if multilib_is_native_abi ; then
146 + dosym msgfmt /usr/bin/gmsgfmt #43435
147 + dobin gettext-tools/misc/gettextize
148 + fi
149 +}
150 +
151 +multilib_src_install_all() {
152 + if ! use nls ; then
153 + rm -r "${ED}"/usr/share/locale || die
154 + fi
155 + if ! use static-libs ; then
156 + find "${ED}" -type f -name "*.la" -delete || die
157 + fi
158 +
159 + rm -f "${ED}"/usr/share/locale/locale.alias "${ED}"/usr/lib/charset.alias
160 +
161 + if use java ; then
162 + java-pkg_dojar "${ED}"/usr/share/${PN}/*.jar
163 + rm "${ED}"/usr/share/${PN}/*.jar || die
164 + rm "${ED}"/usr/share/${PN}/*.class || die
165 + if use doc ; then
166 + java-pkg_dojavadoc "${ED}"/usr/share/doc/${PF}/javadoc2
167 + rm -r"${ED}"/usr/share/doc/${PF}/javadoc2 || die
168 + fi
169 + fi
170 +
171 + dodoc AUTHORS ChangeLog NEWS README THANKS
172 +
173 + if use doc ; then
174 + docinto html
175 + dodoc "${ED}"/usr/share/doc/${PF}/*.html
176 + else
177 + rm -rf "${ED}"/usr/share/doc/${PF}/{csharpdoc,examples,javadoc2,javadoc1}
178 + fi
179 + rm "${ED}"/usr/share/doc/${PF}/*.html || die
180 +}
181 +
182 +pkg_preinst() {
183 + java-pkg-opt-2_pkg_preinst
184 +}