summaryrefslogtreecommitdiff
blob: 4bebe98a506cd3f0c980c66cf118674b174f4db2 (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
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-ftp/bareftp/bareftp-0.3.4.ebuild,v 1.1 2010/07/03 18:28:37 pacho Exp $

EAPI=2

inherit mono gnome2

DESCRIPTION="Mono based file transfer client"
HOMEPAGE="http://www.bareftp.org/"
SRC_URI="http://www.bareftp.org/release/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE="gnome-keyring"

RDEPEND=">=dev-lang/mono-2.0
	>=dev-dotnet/gtk-sharp-2.12
	>=dev-dotnet/gnome-sharp-2.20
	>=dev-dotnet/gnomevfs-sharp-2.20
	>=dev-dotnet/gconf-sharp-2.20
	gnome-keyring? ( >=dev-dotnet/gnome-keyring-sharp-1.0.0-r2 )"

DEPEND="${RDEPEND}"

pkg_setup() {
	G2CONF="--disable-caches
		$(use_with gnome-keyring gnomekeyring)"
}

src_prepare() {
	gnome2_src_prepare

	# Fix tests, bug #279892
	echo "src/bareFTP.Gui.Dialog/AskFileAction.cs" >> po/POTFILES.in
	echo "src/bareFTP.Gui.Dialog/gtk-gui/bareFTP.Gui.Dialog.ChmodDialog.cs" >> po/POTFILES.in
	echo "src/bareFTP.Gui.Dialog/gtk-gui/bareFTP.Gui.Dialog.ExceptionDialog.cs" >> po/POTFILES.in
	echo "src/bareFTP.Gui.FileManager/FileUtils.cs" >> po/POTFILES.in
	echo "src/bareFTP.Gui.Preferences/BookmarkWidget.cs" >> po/POTFILES.in
	echo "src/bareFTP.Gui/BookmarkUtils.cs" >> po/POTFILES.in
	echo "src/bareFTP.Protocol.Sftp/sftp/SftpConnection.cs" >> po/POTFILES.in
	echo "src/bareFTP/Main.cs" >> po/POTFILES.in
}

src_install() {
	gnome2_src_install
	dodoc ChangeLog README || die "dodoc failed"
}