diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-10-29 22:01:57 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-10-29 22:01:57 +0100 |
commit | 009897642a869d630779716efc51af1554f72867 (patch) | |
tree | 879100d35e2fd1f39b32b68b2abe220f156b3a20 /dev-libs/libintl/libintl-0.21.1.ebuild | |
parent | 9cd7e710ac676c1a318d09e665ca3558bb5c5323 (diff) |
gentoo auto-resync : 29:10:2022 - 22:01:57
Diffstat (limited to 'dev-libs/libintl/libintl-0.21.1.ebuild')
-rw-r--r-- | dev-libs/libintl/libintl-0.21.1.ebuild | 96 |
1 files changed, 96 insertions, 0 deletions
diff --git a/dev-libs/libintl/libintl-0.21.1.ebuild b/dev-libs/libintl/libintl-0.21.1.ebuild new file mode 100644 index 000000000000..851d216d34de --- /dev/null +++ b/dev-libs/libintl/libintl-0.21.1.ebuild @@ -0,0 +1,96 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# Note: Keep version bumps in sync with sys-devel/gettext. + +EAPI=7 + +MY_P="gettext-${PV}" +VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/gettext.asc +inherit multilib-minimal libtool usr-ldscript verify-sig + +DESCRIPTION="the GNU international library (split out of gettext)" +HOMEPAGE="https://www.gnu.org/software/gettext/" +SRC_URI="mirror://gnu/gettext/${MY_P}.tar.xz" +SRC_URI+=" verify-sig? ( mirror://gnu/gettext/${MY_P}.tar.xz.sig )" +S="${WORKDIR}/${MY_P}/gettext-runtime" + +LICENSE="LGPL-2.1+" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~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" +BDEPEND="verify-sig? ( sec-keys/openpgp-keys-gettext )" + +src_prepare() { + default + + cd "${WORKDIR}/${MY_P}" || die + eapply "${FILESDIR}"/${P}-java-autoconf.patch + + # gettext-0.21.1-java-autoconf.patch changes + # gettext-{runtime,tools}/configure.ac and the corresponding + # configure scripts. Avoid regenerating other autotools output. + touch -c gettext-{runtime,tools}/{aclocal.m4,Makefile.in,config.h.in,configure} || die + + # Makefile.am adds a dependency on gettext-{runtime,tools}/configure.ac + touch -c configure || die + + cd "${S}" || die + + # 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=( + --cache-file="${BUILD_DIR}"/config.cache + + # 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() { + if ! use static-libs ; then + find "${ED}" -type f -name "*.la" -delete || die + fi + + rm -r "${ED}"/usr/share/locale || die + + dodoc AUTHORS ChangeLog NEWS README +} |