blob: 20400b13aa4dd3f2d32afa6bd80a471fdcd58e25 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# 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.8 2014/07/28 13:42:17 ago Exp $
EAPI="4"
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.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 )
sys-devel/gettext"
RDEPEND="${DEPEND}"
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
}
|