blob: 9e97c4212a3c705fa732b5745359340fd73093f3 (
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-ftp/gftp/gftp-2.0.18-r1.ebuild,v 1.4 2005/02/14 16:32:33 corsair Exp $
inherit eutils
DESCRIPTION="Gnome based FTP Client"
SRC_URI="http://www.gftp.org/${P}.tar.bz2"
HOMEPAGE="http://www.gftp.org"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="x86 ~ppc ~sparc amd64 ppc64"
IUSE="nls gtk gtk2 ssl"
DEPEND="virtual/x11
ssl? ( dev-libs/openssl )
gtk? (
gtk2? ( >=x11-libs/gtk+-2 )
!gtk2? ( =x11-libs/gtk+-1.2* ) )
!gtk? ( sys-libs/readline
sys-libs/ncurses
=dev-libs/glib-1.2* )"
#RDEPEND="nls? ( sys-devel/gettext )"
src_unpack() {
unpack ${A}
cd ${S}
# fix building gtk1 backend (#80845)
epatch ${FILESDIR}/${P}-fix_gtk1.patch
}
src_compile() {
local myconf
use nls \
&& myconf="--enable-nls" \
|| myconf="--disable-nls"
# do not use enable-{gtk20,gtkport} they are not recognized
# and will disable building the gtkport alltogether
if use gtk
then
einfo "gtk+ enabled"
use gtk2 \
&& einfo "gtk2 enabled" \
|| myconf="${myconf} --disable-gtk20"
else
einfo "gtk+ and gtk2 disabled"
myconf="${myconf} --disable-gtkport --disable-gtk20"
fi
use ssl \
&& myconf="${myconf}" \
|| myconf="${myconf} --disable-ssl"
econf ${myconf} || die
emake || die
}
src_install() {
make DESTDIR=${D} install || die
dodoc COPYING ChangeLog README* THANKS \
TODO docs/USERS-GUIDE
}
|