summaryrefslogtreecommitdiff
blob: 168c158e1c02fc22739b31d097f0c2a9b22c7131 (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
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI="2"

inherit eutils distutils flag-o-matic

DESCRIPTION="A GTK-based BitTorrent client by Dmitry Konishchev"
HOMEPAGE="http://sourceforge.net/projects/flush/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~ppc"
IUSE=""

DEPEND=">=x11-libs/gtk+-2.16.6
	>=dev-cpp/gtkmm-2.16.0
	>=dev-cpp/glibmm-2.20.1	
	>=x11-libs/libnotify-0.4.5
		
	>=sys-devel/gettext-0.17
	>=dev-libs/libconfig-1.3.2
	>=dev-libs/boost-1.35.0
	>=sys-apps/dbus-1.2.3
	
	>=net-libs/rb_libtorrent-0.14.8"
RDEPEND="${DEPEND}"

src_configure() {
	econf --disable-bundle-package \
			--enable-system-libconfig \
			--enable-system-libtorrent
}

src_compile() {
	emake || die "emake failed"
}

src_install() {
	emake DESTDIR="${D}" install || die "emake install failed"
	dodoc COPYING ChangeLog

	# Fix icon if using different icon theme in GNOME
	insinto /usr/share/pixmaps
	doins ./icons/hicolor/72x72/apps/flush.png

	ewarn
	ewarn There seems to be some incompability with older version
	ewarn configuration files. If Flush seems to be unstable or 
	ewarn too slow you can fix this with 'rm -rf ~/.flush'.
	ewarn
	ewarn WARNING: This will remove all your loaded torrent files.
	ewarn
}