summaryrefslogtreecommitdiff
blob: b7d8a7779fb2dfec2ddb092f9f84a3997651eef1 (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
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-ftp/gftp/gftp-2.0.13.ebuild,v 1.8 2003/09/07 00:12:23 msterret Exp $

IUSE="nls gtk2"

S=${WORKDIR}/${P}
DESCRIPTION="Gnome based FTP Client"
SRC_URI="http://www.gftp.org/${P}.tar.gz"
HOMEPAGE="http://www.gftp.org"

SLOT="0"
LICENSE="GPL-2"
KEYWORDS="x86 ppc sparc "

# very generic depends. it should be that way.
DEPEND="virtual/x11
	gtk2? ( >=x11-libs/gtk+-2.0.0 )"

RDEPEND="nls? ( sys-devel/gettext )"

src_unpack() {
	unpack ${A}
	cd ${S}
	# fix to allow compiling against >=x11-libs/gtk+-2.2
	# for gftp-2.0.13 only, fixed in 2.0.14
	patch -p0 < ${FILESDIR}/${P}-gtk2.2.patch || die "died applying patch"
}

src_compile() {
	local myconf

	use nls || myconf="--disable-nls"
	use gtk2 && myconf="${myconf} --enable-gtk20"

	econf ${myconf} || die
	emake || die
}

src_install() {

	einstall || die

	dodoc COPYING ChangeLog README* THANKS TODO
	dodoc docs/USERS-GUIDE

}