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

(-)/usr/portage/net-ftp/gftp/gftp-2.0.18-r1.ebuild (-21 / +11 lines)
Lines 1-6 Link Here
1
# Copyright 1999-2005 Gentoo Foundation
1
# Copyright 1999-2005 Gentoo Foundation
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/net-ftp/gftp/gftp-2.0.18-r1.ebuild,v 1.8 2005/09/15 23:19:03 agriffis Exp $
3
# $Header: $
4
4
5
inherit eutils
5
inherit eutils
6
6
Lines 10-23 Link Here
10
10
11
SLOT="0"
11
SLOT="0"
12
LICENSE="GPL-2"
12
LICENSE="GPL-2"
13
KEYWORDS="alpha amd64 ppc ppc64 sparc x86"
13
KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86"
14
IUSE="nls gtk gtk2 ssl"
14
IUSE="nls gtk ssl"
15
15
16
DEPEND="virtual/x11
16
DEPEND="virtual/x11
17
	ssl? ( dev-libs/openssl )
17
	ssl? ( dev-libs/openssl )
18
	gtk? (
18
	gtk? ( >=x11-libs/gtk+-2 )
19
		gtk2? ( >=x11-libs/gtk+-2 )
20
		!gtk2? ( =x11-libs/gtk+-1.2* ) )
21
	!gtk? ( sys-libs/readline
19
	!gtk? ( sys-libs/readline
22
		sys-libs/ncurses
20
		sys-libs/ncurses
23
		=dev-libs/glib-1.2* )"
21
		=dev-libs/glib-1.2* )"
Lines 29-36 Link Here
29
	unpack ${A}
27
	unpack ${A}
30
28
31
	cd ${S}
29
	cd ${S}
32
	# fix building gtk1 backend (#80845)
33
	epatch ${FILESDIR}/${P}-fix_gtk1.patch
34
30
35
}
31
}
36
32
Lines 38-65 Link Here
38
34
39
	local myconf
35
	local myconf
40
36
41
	use nls \
42
		&& myconf="--enable-nls" \
43
		|| myconf="--disable-nls"
44
45
	# do not use enable-{gtk20,gtkport} they are not recognized
37
	# do not use enable-{gtk20,gtkport} they are not recognized
46
	# and will disable building the gtkport alltogether
38
	# and will disable building the gtkport alltogether
47
	if use gtk
39
	if use gtk
48
	then
40
	then
49
		einfo "gtk+ enabled"
41
		einfo "gtk+ enabled"
50
		use gtk2 \
51
			&& einfo "gtk2 enabled" \
52
			|| myconf="${myconf} --disable-gtk20"
53
	else
42
	else
54
		einfo "gtk+ and gtk2 disabled"
43
		einfo "gtk+ disabled"
55
		myconf="${myconf} --disable-gtkport --disable-gtk20"
44
		myconf="${myconf} --disable-gtkport --disable-gtk20"
56
	fi
45
	fi
57
46
58
	use ssl \
47
	econf \
59
		&& myconf="${myconf}" \
48
		$(use_enable nls) \
60
		|| myconf="${myconf} --disable-ssl"
49
		$(use_enable ssl) \
61
50
		${myconf} \
62
	econf ${myconf} || die
51
		|| die
52
		
63
	emake || die
53
	emake || die
64
54
65
}
55
}

Return to bug 108555