diff options
author | 2016-01-07 18:05:00 +0100 | |
---|---|---|
committer | 2016-01-07 18:05:34 +0100 | |
commit | 373629513519e600a59ccd31ab6b28141da52359 (patch) | |
tree | b2f2a143d24dd85a9f20acbd7419372fc8f70cf7 /app-i18n/enca/enca-1.18.ebuild | |
parent | changing maintainer to myself from jlec (diff) | |
download | gentoo-373629513519e600a59ccd31ab6b28141da52359.tar.gz gentoo-373629513519e600a59ccd31ab6b28141da52359.tar.bz2 gentoo-373629513519e600a59ccd31ab6b28141da52359.zip |
app-i18n/enca: Bump to version 1.18
Package-Manager: portage-2.2.26
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Diffstat (limited to 'app-i18n/enca/enca-1.18.ebuild')
-rw-r--r-- | app-i18n/enca/enca-1.18.ebuild | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/app-i18n/enca/enca-1.18.ebuild b/app-i18n/enca/enca-1.18.ebuild new file mode 100644 index 000000000000..32da0cac57d6 --- /dev/null +++ b/app-i18n/enca/enca-1.18.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +AUTOTOOLS_AUTORECONF=2.52 + +inherit eutils toolchain-funcs autotools-multilib + +DESCRIPTION="ENCA detects the character coding of a file and converts it if desired" +HOMEPAGE="http://gitorious.org/enca" +SRC_URI="http://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 ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris" +IUSE="doc +recode" + +RDEPEND="recode? ( >=app-text/recode-3.6_p15 )" +DEPEND="${RDEPEND} + sys-devel/gettext" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-1.14-gcc4.8-avx-bug.patch + rm missing # too old, automake will update it + # fix crosscompilation, bug #424473 + if tc-is-cross-compiler; then + sed -e "s#./make_hash#./native_make_hash#" -i tools/Makefile.am || die + fi + autotools-multilib_src_prepare +} + +src_configure() { + local myeconfargs=( + --enable-external + --disable-static + $(use_with recode librecode "${EPREFIX}"/usr) + $(use_enable doc gtk-doc) + ) + autotools-multilib_src_configure +} + +multilib_src_compile() { + if tc-is-cross-compiler; then + pushd "${BUILD_DIR}"/tools > /dev/null + $(tc-getBUILD_CC) -o native_make_hash "${S}"/tools/make_hash.c || die "native make_hash failed" + popd > /dev/null + fi + # It will fail if we run these twice... + if ! multilib_is_native_abi ; then + sed -i -e 's/ src / /'\ + -e '/SUBDIRS/s/ test//' Makefile\ + -e 's/install-data-hook:/install-data-hook:\n\ndisabled:/' Makefile || die + fi + autotools-utils_src_compile +} |