1 |
commit: f7d75522af2a5a4a8bdcb5dcbbe95a8edee0baf8 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Dec 28 22:15:16 2015 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Dec 28 22:15:16 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f7d75522 |
7 |
|
8 |
sys-devel/gettext: Bump to version 0.19.7 |
9 |
|
10 |
Package-Manager: portage-2.2.26 |
11 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
12 |
|
13 |
sys-devel/gettext/Manifest | 1 + |
14 |
sys-devel/gettext/gettext-0.19.7.ebuild | 133 ++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 134 insertions(+) |
16 |
|
17 |
diff --git a/sys-devel/gettext/Manifest b/sys-devel/gettext/Manifest |
18 |
index b343363..c670405 100644 |
19 |
--- a/sys-devel/gettext/Manifest |
20 |
+++ b/sys-devel/gettext/Manifest |
21 |
@@ -2,3 +2,4 @@ DIST gettext-0.19.4.tar.gz 17717034 SHA256 8ac9f1ed1a5f8c4e656a2f37f5ba6b9ee04c4 |
22 |
DIST gettext-0.19.5.1.tar.gz 18353792 SHA256 a198d53b0c1fb11421ead197b7e76b144e887c9ef5a685323e92cbc950227731 SHA512 c2c1dc51d9c24c92b86619ec613b87266eae08a21280855e5b0d44c09e7efc8390341ded85dd85270c5a933ee21a6179373cc5cf275b6bc80cb510c7830d0ef4 WHIRLPOOL 2a2143edc4f3fdb37109aeb762072aa49f88045d55913ae282d203d5a7b3e848df5318c9e4f5e44f63a9f9a7c61c6018900df55b3bdfe06fa975a709322656d6 |
23 |
DIST gettext-0.19.5.tar.gz 18352722 SHA256 1258814ba174e4783194be2dc93648bd630d4dda166eae034e4ad54489dcf73a SHA512 10b435bba4fcdcf15be3182b3c9756eef5b6ef6ec1416c1b12af35345fc1668c26dce81081e2616b7e2b0d174051fddd6fe6266e4709652a751a91fcf241e610 WHIRLPOOL 94db59cc7a1f3bf833e23a9c9aa25524c571b9585928d083438e7357d034236493584c0137f0c2bb58120f2e55f35055bc36731736162d9ad3e01aa6a1cf270e |
24 |
DIST gettext-0.19.6.tar.gz 18619659 SHA256 ed4b4c19bd3a3034eb6769500a3592ff616759ef43cf30586dbb7a17c9dd695d SHA512 46adfd4a6d0038aba999658bebe51117e3ab3dc149a9054c1087d3e79ec7ba3371a7e78a8ca30a8872d162c2dc44aba6e67e4d64808c4f92e1e2bd674174f1db WHIRLPOOL 1988f9ddfd603734b4a632291925c8e5b31e7384eea1c6641d52aa58cb6b8f892e7664dd145a53435b7d2a4540ac65aeae1cb528a004c35832087c2820dafbcb |
25 |
+DIST gettext-0.19.7.tar.gz 19235781 SHA256 5386d2a40500295783c6a52121adcf42a25519e2d23675950619c9e69558c23f SHA512 7ba89074d3eddd0b4a5e2980e1ec74b53c49b7a04a1fa91c70c4bc11ce9c30415e4df9d79698148eaaed325fb4feb25a340a2e8e01fbe86b1a66b1376a4c9e3d WHIRLPOOL eb51c4be7c0a92c5c33c16329003e21947e0b9d1583c4a785ae6836f81273ea7ec2823a0a28ae81c3b977f2148c0f3bd524949484383ff87510e1d2bc642a786 |
26 |
|
27 |
diff --git a/sys-devel/gettext/gettext-0.19.7.ebuild b/sys-devel/gettext/gettext-0.19.7.ebuild |
28 |
new file mode 100644 |
29 |
index 0000000..7677f88 |
30 |
--- /dev/null |
31 |
+++ b/sys-devel/gettext/gettext-0.19.7.ebuild |
32 |
@@ -0,0 +1,133 @@ |
33 |
+# Copyright 1999-2015 Gentoo Foundation |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+# $Id$ |
36 |
+ |
37 |
+# Note: Keep version bumps in sync with dev-libs/libintl. |
38 |
+ |
39 |
+EAPI="5" |
40 |
+ |
41 |
+inherit eutils mono-env libtool java-pkg-opt-2 multilib-minimal |
42 |
+ |
43 |
+DESCRIPTION="GNU locale utilities" |
44 |
+HOMEPAGE="https://www.gnu.org/software/gettext/" |
45 |
+SRC_URI="mirror://gnu/${PN}/${P}.tar.gz" |
46 |
+ |
47 |
+# Only libasprintf is under the LGPL (and libintl is in a sep package), |
48 |
+# so put that license behind USE=cxx. |
49 |
+LICENSE="GPL-3+ cxx? ( LGPL-2.1+ )" |
50 |
+SLOT="0" |
51 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd" |
52 |
+IUSE="acl -cvs +cxx doc emacs git java ncurses nls openmp static-libs" |
53 |
+ |
54 |
+# only runtime goes multilib |
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:= |
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 |
+ |
76 |
+pkg_setup() { |
77 |
+ mono-env_pkg_setup |
78 |
+ java-pkg-opt-2_pkg_setup |
79 |
+} |
80 |
+ |
81 |
+src_prepare() { |
82 |
+ java-pkg-opt-2_src_prepare |
83 |
+ |
84 |
+ epunt_cxx |
85 |
+ elibtoolize |
86 |
+} |
87 |
+ |
88 |
+multilib_src_configure() { |
89 |
+ local myconf=( |
90 |
+ # switches common to runtime and top-level |
91 |
+ --cache-file="${BUILD_DIR}"/config.cache |
92 |
+ --docdir="/usr/share/doc/${PF}" |
93 |
+ |
94 |
+ # Emacs support is now in a separate package |
95 |
+ --without-emacs |
96 |
+ --without-lispdir |
97 |
+ # glib depends on us so avoid circular deps |
98 |
+ --with-included-glib |
99 |
+ # libcroco depends on glib which ... ^^^ |
100 |
+ --with-included-libcroco |
101 |
+ # this will _disable_ libunistring (since it is not bundled), |
102 |
+ # see bug #326477 |
103 |
+ --with-included-libunistring |
104 |
+ # Never build libintl since it's in dev-libs/libintl now. |
105 |
+ --without-included-gettext |
106 |
+ |
107 |
+ $(use_enable acl) |
108 |
+ $(use_enable cxx c++) |
109 |
+ $(use_enable cxx libasprintf) |
110 |
+ $(use_with git) |
111 |
+ $(usex git --without-cvs $(use_with cvs)) |
112 |
+ $(use_enable java) |
113 |
+ $(use_enable ncurses curses) |
114 |
+ $(use_enable nls) |
115 |
+ $(use_enable openmp) |
116 |
+ $(use_enable static-libs static) |
117 |
+ ) |
118 |
+ |
119 |
+ local ECONF_SOURCE=${S} |
120 |
+ if ! multilib_is_native_abi ; then |
121 |
+ # for non-native ABIs, we build runtime only |
122 |
+ ECONF_SOURCE+=/gettext-runtime |
123 |
+ fi |
124 |
+ |
125 |
+ econf "${myconf[@]}" |
126 |
+} |
127 |
+ |
128 |
+multilib_src_install() { |
129 |
+ default |
130 |
+ |
131 |
+ if multilib_is_native_abi ; then |
132 |
+ dosym msgfmt /usr/bin/gmsgfmt #43435 |
133 |
+ dobin gettext-tools/misc/gettextize |
134 |
+ fi |
135 |
+} |
136 |
+ |
137 |
+multilib_src_install_all() { |
138 |
+ use nls || rm -r "${D}"/usr/share/locale |
139 |
+ use static-libs || prune_libtool_files --all |
140 |
+ |
141 |
+ rm -f "${D}"/usr/share/locale/locale.alias "${D}"/usr/lib/charset.alias |
142 |
+ |
143 |
+ if use java ; then |
144 |
+ java-pkg_dojar "${D}"/usr/share/${PN}/*.jar |
145 |
+ rm -f "${D}"/usr/share/${PN}/*.jar |
146 |
+ rm -f "${D}"/usr/share/${PN}/*.class |
147 |
+ if use doc ; then |
148 |
+ java-pkg_dojavadoc "${D}"/usr/share/doc/${PF}/javadoc2 |
149 |
+ rm -rf "${D}"/usr/share/doc/${PF}/javadoc2 |
150 |
+ fi |
151 |
+ fi |
152 |
+ |
153 |
+ if use doc ; then |
154 |
+ dohtml "${D}"/usr/share/doc/${PF}/*.html |
155 |
+ else |
156 |
+ rm -rf "${D}"/usr/share/doc/${PF}/{csharpdoc,examples,javadoc2,javadoc1} |
157 |
+ fi |
158 |
+ rm -f "${D}"/usr/share/doc/${PF}/*.html |
159 |
+ |
160 |
+ dodoc AUTHORS ChangeLog NEWS README THANKS |
161 |
+} |
162 |
+ |
163 |
+pkg_preinst() { |
164 |
+ java-pkg-opt-2_pkg_preinst |
165 |
+} |