commit:     f25e4ca04d556784c07d324627b5f33e8259d2b9
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Nov 30 03:11:43 2020 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Nov 30 03:11:43 2020 +0000
URL:        https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=f25e4ca0

dev-libs/libintl: bump to 0.21

Dropped patches for cygwin seem to have been applied upstream.

Package-Manager: Portage-3.0.9, Repoman-3.0.2
RepoMan-Options: --force
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-libs/libintl/Manifest            |  1 +
 dev-libs/libintl/libintl-0.21.ebuild | 80 ++++++++++++++++++++++++++++++++++++
 2 files changed, 81 insertions(+)

diff --git a/dev-libs/libintl/Manifest b/dev-libs/libintl/Manifest
index 015ea61aee..3f9d6130b3 100644
--- a/dev-libs/libintl/Manifest
+++ b/dev-libs/libintl/Manifest
@@ -1,3 +1,4 @@
 DIST gettext-0.19.6.tar.gz 18619659 BLAKE2B 
fb5e518cef2048c89d2c637d3551d6d7debff2fcdeb35b60f0ae9943733bf5cd8ec46f0a4cccd9f1806a6af4b16eef372a0621af611d3706356af6ae82d0d5bf
 SHA512 
46adfd4a6d0038aba999658bebe51117e3ab3dc149a9054c1087d3e79ec7ba3371a7e78a8ca30a8872d162c2dc44aba6e67e4d64808c4f92e1e2bd674174f1db
 DIST gettext-0.19.7.tar.gz 19235781 BLAKE2B 
4c2cfcb0b21a66a9f8d2d57de7420e624a1235f97180ad5ac194a5eb629760a9cacc7f3966cdf893d7af86c1740d8bb2266c639ebe2664ea44f2c47a962a841a
 SHA512 
7ba89074d3eddd0b4a5e2980e1ec74b53c49b7a04a1fa91c70c4bc11ce9c30415e4df9d79698148eaaed325fb4feb25a340a2e8e01fbe86b1a66b1376a4c9e3d
 DIST gettext-0.19.8.1.tar.gz 19704011 BLAKE2B 
17dc7aad338a26d71b818fea51e46a47dccf14744ee575ce86b591becaea402e36d64dc018e1a84113c356122ffef367cf2fa424e51ebc9720350040b4960091
 SHA512 
073042fa2dc48804c58e76f036130a669e19612c25427b0ab14d0b366b549a63751bf3af03bfd0745d7c4f72497a4b2aab26a3cc6de83189ce111679073878e1
+DIST gettext-0.21.tar.gz 24181849 BLAKE2B 
2eae99d0916b00b2af6fbc6bf7e309076519a10fea16cd49e7aa29fe8aec1ee7c784c6277281b764dc4abacf400cd3fe461129586303c8cd337db15c76cb4b87
 SHA512 
bbe590c5dd3580c75bf30ff768da99a88eb8d466ec1ac9eea20be4cab4357ecf72448e6b81b47425e39d50fa6320ba426632914d7898dfebb4f159abc39c31d1

diff --git a/dev-libs/libintl/libintl-0.21.ebuild 
b/dev-libs/libintl/libintl-0.21.ebuild
new file mode 100644
index 0000000000..c6e56c06d9
--- /dev/null
+++ b/dev-libs/libintl/libintl-0.21.ebuild
@@ -0,0 +1,80 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# Note: Keep version bumps in sync with sys-devel/gettext.
+
+EAPI="5"
+
+MY_P="gettext-${PV}"
+
+inherit multilib-minimal toolchain-funcs libtool
+
+DESCRIPTION="the GNU international library (split out of gettext)"
+HOMEPAGE="https://www.gnu.org/software/gettext/";
+SRC_URI="mirror://gnu/gettext/${MY_P}.tar.gz"
+
+LICENSE="LGPL-2.1+"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 
~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~sparc-fbsd ~x86-fbsd 
~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
+IUSE="static-libs +threads"
+
+DEPEND=">=virtual/libiconv-0-r1[${MULTILIB_USEDEP}]"
+# Block C libraries known to provide libintl.
+RDEPEND="${DEPEND}
+       !sys-libs/glibc
+       !sys-libs/musl
+       !<sys-devel/gettext-0.19.6-r1"
+
+S="${WORKDIR}/${MY_P}/gettext-runtime"
+
+src_prepare() {
+       # Doesn't apply to 0.21
+       # Looks like a lot of the fixes have landed upstream
+       #epatch "${FILESDIR}"/0.19.3-localename.patch # Cygwin
+
+       # The libtool files are stored higher up, so make sure we run in the
+       # whole tree and not just the subdir we build.
+       elibtoolize "${WORKDIR}"
+}
+
+multilib_src_configure() {
+       local myconf=(
+               # Emacs support is now in a separate package.
+               --without-emacs
+               --without-lispdir
+               # Normally this controls nls behavior in general, but the 
libintl
+               # subdir is skipped unless this is explicitly set.  ugh.
+               --enable-nls
+               # This magic flag enables libintl.
+               --with-included-gettext
+               # The gettext package provides this library.
+               --disable-c++
+               --disable-libasprintf
+               # No java until someone cares.
+               --disable-java
+
+               $(use_enable static-libs static)
+               $(use_enable threads)
+       )
+       ECONF_SOURCE=${S} econf "${myconf[@]}"
+}
+
+multilib_src_compile() {
+       # We only need things in the intl/ subdir.
+       emake -C intl
+}
+
+multilib_src_install() {
+       # We only need things in the intl/ subdir.
+       emake DESTDIR="${D}" install -C intl
+
+       gen_usr_ldscript -a intl
+}
+
+multilib_src_install_all() {
+       use static-libs || prune_libtool_files --all
+
+       rm -f "${ED}"/usr/share/locale/locale.alias 
"${ED}"/usr/lib/charset.alias
+
+       dodoc AUTHORS ChangeLog NEWS README
+}

Reply via email to