Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 498030
Collapse All | Expand All

(-)autogen-5.18.1.ebuild.orig (-3 / +24 lines)
Lines 2-8 Link Here
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/sys-devel/autogen/autogen-5.18.1.ebuild,v 1.1 2013/12/02 10:18:43 radhermit Exp $
3
# $Header: /var/cvsroot/gentoo-x86/sys-devel/autogen/autogen-5.18.1.ebuild,v 1.1 2013/12/02 10:18:43 radhermit Exp $
4
4
5
EAPI="4"
5
EAPI="5-hdepend"
6
6
7
inherit eutils
7
inherit eutils
8
8
Lines 13-33 Link Here
13
LICENSE="GPL-2"
13
LICENSE="GPL-2"
14
SLOT="0"
14
SLOT="0"
15
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~arm-linux ~x86-linux ~x64-macos ~x86-macos"
15
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~arm-linux ~x86-linux ~x64-macos ~x86-macos"
16
IUSE="libopts static-libs"
16
IUSE="libopts static-libs targetroot"
17
17
18
RDEPEND=">=dev-scheme/guile-1.8
18
RDEPEND=">=dev-scheme/guile-1.8
19
	dev-libs/libxml2"
19
	dev-libs/libxml2"
20
DEPEND="${RDEPEND}"
20
DEPEND="${RDEPEND}"
21
HDEPEND="targetroot? ( ${CATEGORY}/${PN} )"
21
22
22
src_configure() {
23
src_configure() {
23
	# suppress possibly incorrect -R flag
24
	# suppress possibly incorrect -R flag
24
	export ag_cv_test_ldflags=
25
	export ag_cv_test_ldflags=
25
26
26
	econf $(use_enable static-libs static)
27
	econf $(use_enable static-libs static)
28
29
	if use targetroot; then
30
		# Cross-compile with host autogen.
31
		sed -i "s:PROG=\./:PROG=:" autoopts/tpl/agtexi-cmd.tpl || die
32
	fi
33
}
34
35
src_compile() {
36
	if use targetroot; then
37
		# Cross-compile with host autogen. Absolute paths required.
38
		emake AGexe="$(which autogen)" CLexe="$(which columns)" GDexe="$(which getdefs)"
39
	else
40
		default
41
	fi
27
}
42
}
28
43
29
src_install() {
44
src_install() {
30
	default
45
	if use targetroot; then
46
		# Cross-compile with host autogen. Absolute paths required.
47
		emake AGexe="$(which autogen)" CLexe="$(which columns)" GDexe="$(which getdefs)" DESTDIR="${D}" install
48
	else
49
		default
50
	fi
51
31
	prune_libtool_files
52
	prune_libtool_files
32
53
33
	if ! use libopts ; then
54
	if ! use libopts ; then

Return to bug 498030