summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2014-03-09 11:24:48 +0000
committerAlexis Ballier <aballier@gentoo.org>2014-03-09 11:24:48 +0000
commit8170297f79ca6606b22452c63ecbcee389b5a3fb (patch)
tree8d7d633563e9f77866e6f502423d3e4945d42dfc /app-i18n
parentalpha stable wrt bug #495470 (diff)
downloadgentoo-2-8170297f79ca6606b22452c63ecbcee389b5a3fb.tar.gz
gentoo-2-8170297f79ca6606b22452c63ecbcee389b5a3fb.tar.bz2
gentoo-2-8170297f79ca6606b22452c63ecbcee389b5a3fb.zip
convert to multilib (needed by libass)
(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 160F534A)
Diffstat (limited to 'app-i18n')
-rw-r--r--app-i18n/enca/ChangeLog9
-rw-r--r--app-i18n/enca/enca-1.14-r1.ebuild57
2 files changed, 64 insertions, 2 deletions
diff --git a/app-i18n/enca/ChangeLog b/app-i18n/enca/ChangeLog
index 455db86440d7..4336d93d30d6 100644
--- a/app-i18n/enca/ChangeLog
+++ b/app-i18n/enca/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for app-i18n/enca
-# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-i18n/enca/ChangeLog,v 1.94 2013/04/26 20:29:33 pva Exp $
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-i18n/enca/ChangeLog,v 1.95 2014/03/09 11:24:48 aballier Exp $
+
+*enca-1.14-r1 (09 Mar 2014)
+
+ 09 Mar 2014; Alexis Ballier <aballier@gentoo.org> +enca-1.14-r1.ebuild:
+ convert to multilib (needed by libass)
26 Apr 2013; Peter Volkov <pva@gentoo.org>
+files/enca-1.14-automake-1.13.patch, enca-1.14.ebuild:
diff --git a/app-i18n/enca/enca-1.14-r1.ebuild b/app-i18n/enca/enca-1.14-r1.ebuild
new file mode 100644
index 000000000000..cf44bd0957a1
--- /dev/null
+++ b/app-i18n/enca/enca-1.14-r1.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-i18n/enca/enca-1.14-r1.ebuild,v 1.1 2014/03/09 11:24:48 aballier Exp $
+
+EAPI="4"
+
+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.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~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"
+
+DEPEND="recode? ( >=app-text/recode-3.6_p15 )"
+RDEPEND="${DEPEND}"
+
+AUTOTOOLS_AUTORECONF=2.52
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-remove-dirty-path-hack.patch
+ epatch "${FILESDIR}"/${P}-automake-1.13.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 / /' Makefile || die
+ sed -i -e '/SUBDIRS/s/ test//' Makefile || die
+ sed -i -e 's/install-data-hook:/install-data-hook:\n\ndisabled:/' Makefile || die
+ fi
+ autotools-utils_src_compile
+}