Gentoo Archives: gentoo-commits

From: Mike Frysinger <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libintl/
Date: Thu, 28 Jan 2016 23:15:08
Message-Id: 1454020505.1056b8784e488dca03742b8677b53102301ace35.vapier@gentoo
1 commit: 1056b8784e488dca03742b8677b53102301ace35
2 Author: Mike Frysinger <vapier <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jan 28 22:31:13 2016 +0000
4 Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 28 22:35:05 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1056b878
7
8 dev-libs/libintl: version bump to 0.19.7
9
10 dev-libs/libintl/Manifest | 1 +
11 dev-libs/libintl/libintl-0.19.7.ebuild | 76 ++++++++++++++++++++++++++++++++++
12 2 files changed, 77 insertions(+)
13
14 diff --git a/dev-libs/libintl/Manifest b/dev-libs/libintl/Manifest
15 index ea4c35a..818c1c5 100644
16 --- a/dev-libs/libintl/Manifest
17 +++ b/dev-libs/libintl/Manifest
18 @@ -1 +1,2 @@
19 DIST gettext-0.19.6.tar.gz 18619659 SHA256 ed4b4c19bd3a3034eb6769500a3592ff616759ef43cf30586dbb7a17c9dd695d SHA512 46adfd4a6d0038aba999658bebe51117e3ab3dc149a9054c1087d3e79ec7ba3371a7e78a8ca30a8872d162c2dc44aba6e67e4d64808c4f92e1e2bd674174f1db WHIRLPOOL 1988f9ddfd603734b4a632291925c8e5b31e7384eea1c6641d52aa58cb6b8f892e7664dd145a53435b7d2a4540ac65aeae1cb528a004c35832087c2820dafbcb
20 +DIST gettext-0.19.7.tar.gz 19235781 SHA256 5386d2a40500295783c6a52121adcf42a25519e2d23675950619c9e69558c23f SHA512 7ba89074d3eddd0b4a5e2980e1ec74b53c49b7a04a1fa91c70c4bc11ce9c30415e4df9d79698148eaaed325fb4feb25a340a2e8e01fbe86b1a66b1376a4c9e3d WHIRLPOOL eb51c4be7c0a92c5c33c16329003e21947e0b9d1583c4a785ae6836f81273ea7ec2823a0a28ae81c3b977f2148c0f3bd524949484383ff87510e1d2bc642a786
21
22 diff --git a/dev-libs/libintl/libintl-0.19.7.ebuild b/dev-libs/libintl/libintl-0.19.7.ebuild
23 new file mode 100644
24 index 0000000..e591b76
25 --- /dev/null
26 +++ b/dev-libs/libintl/libintl-0.19.7.ebuild
27 @@ -0,0 +1,76 @@
28 +# Copyright 1999-2015 Gentoo Foundation
29 +# Distributed under the terms of the GNU General Public License v2
30 +# $Id$
31 +
32 +# Note: Keep version bumps in sync with sys-devel/gettext.
33 +
34 +EAPI="5"
35 +
36 +MY_P="gettext-${PV}"
37 +
38 +inherit multilib-minimal toolchain-funcs libtool
39 +
40 +DESCRIPTION="the GNU international library (split out of gettext)"
41 +HOMEPAGE="https://www.gnu.org/software/gettext/"
42 +SRC_URI="mirror://gnu/gettext/${MY_P}.tar.gz"
43 +
44 +LICENSE="LGPL-2.1+"
45 +SLOT="0"
46 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~ppc-aix ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
47 +IUSE="static-libs +threads"
48 +
49 +DEPEND=">=virtual/libiconv-0-r1[${MULTILIB_USEDEP}]"
50 +# Block C libraries known to provide libintl.
51 +RDEPEND="${DEPEND}
52 + !sys-libs/glibc
53 + !<sys-devel/gettext-0.19.6-r1"
54 +
55 +S="${WORKDIR}/${MY_P}/gettext-runtime"
56 +
57 +src_prepare() {
58 + # The libtool files are stored higher up, so make sure we run in the
59 + # whole tree and not just the subdir we build.
60 + elibtoolize "${WORKDIR}"
61 +}
62 +
63 +multilib_src_configure() {
64 + local myconf=(
65 + # Emacs support is now in a separate package.
66 + --without-emacs
67 + --without-lispdir
68 + # Normally this controls nls behavior in general, but the libintl
69 + # subdir is skipped unless this is explicitly set. ugh.
70 + --enable-nls
71 + # This magic flag enables libintl.
72 + --with-included-gettext
73 + # The gettext package provides this library.
74 + --disable-c++
75 + --disable-libasprintf
76 + # No java until someone cares.
77 + --disable-java
78 +
79 + $(use_enable static-libs static)
80 + $(use_enable threads)
81 + )
82 + ECONF_SOURCE=${S} econf "${myconf[@]}"
83 +}
84 +
85 +multilib_src_compile() {
86 + # We only need things in the intl/ subdir.
87 + emake -C intl
88 +}
89 +
90 +multilib_src_install() {
91 + # We only need things in the intl/ subdir.
92 + emake DESTDIR="${D}" install -C intl
93 +
94 + gen_usr_ldscript -a intl
95 +}
96 +
97 +multilib_src_install_all() {
98 + use static-libs || prune_libtool_files --all
99 +
100 + rm -f "${ED}"/usr/share/locale/locale.alias "${ED}"/usr/lib/charset.alias
101 +
102 + dodoc AUTHORS ChangeLog NEWS README
103 +}