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 /app-i18n/enca | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'app-i18n/enca')
-rw-r--r-- | app-i18n/enca/Manifest | 3 | ||||
-rw-r--r-- | app-i18n/enca/enca-1.19-r1.ebuild | 82 | ||||
-rw-r--r-- | app-i18n/enca/metadata.xml | 11 |
3 files changed, 96 insertions, 0 deletions
diff --git a/app-i18n/enca/Manifest b/app-i18n/enca/Manifest new file mode 100644 index 000000000000..7c26209e7187 --- /dev/null +++ b/app-i18n/enca/Manifest @@ -0,0 +1,3 @@ +DIST enca-1.19.tar.xz 465412 BLAKE2B fefd58502cf345f9b88d620d5af349d72b9e2af70d61c9b5aa3632cf91011110dc1fa08e78dd04c02c5a333adfefeb88f529f3cadcb75d0cea2b500a5a70c057 SHA512 6678639992685180457bbef7b0da6e475071ec6935dfd672188fc242ef80b906e75eff9a206e07989893d0ef4ae5eb500f1d0bbd6b4d58146c94bb143b5fb296 +EBUILD enca-1.19-r1.ebuild 2105 BLAKE2B 84c0feea65781ac79eabeee650cd0123408503fac13227c779103ab174233ad36cb6bfe2fe6110c45eb295ad40ebb51ef6324e428ac81247610726134439d233 SHA512 eb96e486d1c7d2a50872bc88f40d1fa8a1c92452b2d1e28d5e6507e6c37dc56af75c6b86e5b63f2bc8478966968e33cbefb9062f792bd07c38964743916d9bd6 +MISC metadata.xml 324 BLAKE2B 61e560fc5161d96f01841ebd42ce64012725667f0545fe3bfa463f94b61a536822e1109bfa044f17f6e12c6c45bd24c284aa4846f36db5836e24742b1cc171e9 SHA512 b10801cd8a372709601915899abe03282148aa9a0519160963f5a7734fbeadc082f5493e46ecfb887a16c4b9b5f28424b3b2b87ab4b34708b77cdf3cd4eba03f diff --git a/app-i18n/enca/enca-1.19-r1.ebuild b/app-i18n/enca/enca-1.19-r1.ebuild new file mode 100644 index 000000000000..d1567c61b8be --- /dev/null +++ b/app-i18n/enca/enca-1.19-r1.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools eutils flag-o-matic multilib-minimal toolchain-funcs + +DESCRIPTION="Detect and convert encoding of text files" +HOMEPAGE="https://cihar.com/software/enca/" +SRC_URI="https://dl.cihar.com/${PN}/${P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris" +IUSE="doc +iconv recode static-libs" + +RDEPEND=" + iconv? ( virtual/libiconv[${MULTILIB_USEDEP}] ) + recode? ( app-text/recode[${MULTILIB_USEDEP}] ) +" +DEPEND="${RDEPEND} + sys-devel/gettext + doc? ( dev-util/gtk-doc ) +" + +pkg_pretend() { + if tc-is-cross-compiler && use iconv; then + die "${PN} can't be cross built with iconv USE enabled. See Gentoo bug 593220." + fi +} + +src_prepare() { + default_src_prepare + + # Disable unconditional documentation build. + sed -i -e '/SUBDIRS/s/ devel-docs//g' Makefile.am || die + + eautoreconf +} + +multilib_src_configure() { + # Workaround GCC-4.8 brokenness. See Gentoo bug 501386. + if tc-is-gcc && [[ $(gcc-version) == "4.8" ]]; then + replace-flags -O[3-9] -O2 + fi + + local myeconfargs=( + --enable-external + $(use_enable doc gtk-doc) + $(use_enable static-libs static) + $(use_with iconv libiconv-prefix "${EPREFIX}/usr") + $(use_with recode librecode "${EPREFIX}/usr") + ) + + # Workaround automagic virtual/libiconv dependency. + use iconv || export am_cv_func_iconv=no + + ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" +} + +multilib_src_compile() { + # Workaround cross compilation issues. See Gentoo bug 424473. + tc-is-cross-compiler && tc-env_build emake -e -C tools + + if ! multilib_is_native_abi; then + emake -C lib + else + emake + use doc && emake -C devel-docs docs + fi +} + +multilib_src_install() { + if ! multilib_is_native_abi; then + emake -C lib DESTDIR="${D}" install + emake DESTDIR="${D}" install-pkgconfigDATA + else + emake DESTDIR="${D}" install + use doc && emake -C devel-docs DESTDIR="${D}" install + fi + prune_libtool_files +} diff --git a/app-i18n/enca/metadata.xml b/app-i18n/enca/metadata.xml new file mode 100644 index 000000000000..095f5a5eb044 --- /dev/null +++ b/app-i18n/enca/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>maksbotan@gentoo.org</email> + <name>Maxim Koltsov</name> + </maintainer> + <upstream> + <remote-id type="github">nijel/enca</remote-id> + </upstream> +</pkgmetadata> |