diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-libs/libintl/libintl-0.19.7.ebuild | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-libs/libintl/libintl-0.19.7.ebuild')
-rw-r--r-- | dev-libs/libintl/libintl-0.19.7.ebuild | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/dev-libs/libintl/libintl-0.19.7.ebuild b/dev-libs/libintl/libintl-0.19.7.ebuild new file mode 100644 index 000000000000..611831825144 --- /dev/null +++ b/dev-libs/libintl/libintl-0.19.7.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2018 Gentoo Foundation +# 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 ~amd64-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() { + # 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 +} |