Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 231105 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/portage/net-p2p/btg/btg-0.9.7.ebuild (-17 / +40 lines)
Lines 1-48 Link Here
1
# Copyright 1999-2008 Gentoo Foundation
1
# Copyright 1999-2008 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-p2p/btg/btg-0.9.7.ebuild,v 1.3 2008/09/11 11:44:58 pvdabeel Exp $
3
# $Header: $
4
4
5
EAPI=1
5
EAPI=1
6
6
7
inherit eutils flag-o-matic
7
inherit eutils flag-o-matic versionator subversion autotools
8
9
ESVN_REPO_URI="http://svn.berlios.de/svnroot/repos/btg/trunk/"
8
10
9
DESCRIPTION="bittorrent client using rb_libtorrent"
11
DESCRIPTION="bittorrent client using rb_libtorrent"
10
HOMEPAGE="http://btg.berlios.de/"
12
HOMEPAGE="http://btg.berlios.de/"
11
SRC_URI="mirror://berlios/${PN}/${P}.tar.gz"
13
SRC_URI=""
12
14
13
LICENSE="GPL-2"
15
LICENSE="GPL-2"
14
SLOT="0"
16
SLOT="0"
15
KEYWORDS="amd64 ~ppc ~x86"
17
KEYWORDS="amd64 ~ppc ~x86"
16
IUSE="debug doc event-callback gtk minimal ncurses session test webinterface"
18
IUSE="curl debug doc event-callback gtk minimal ncurses session test webinterface"
17
19
18
RDEPEND=">=dev-libs/boost-1.34.1
20
RDEPEND=">=dev-libs/boost-1.35
19
	dev-libs/expat
21
	>=dev-libs/expat-1.95.8
20
	dev-libs/libgcrypt
22
	dev-libs/libgcrypt
21
	dev-libs/libgpg-error
23
	dev-libs/libgpg-error
22
	dev-libs/libtasn1
24
	dev-libs/libtasn1
23
	dev-util/dialog
25
	>=net-libs/gnutls-1.0
24
	net-libs/gnutls
26
	>=net-libs/rb_libtorrent-0.14
25
	>=net-libs/rb_libtorrent-0.13_rc1
27
	curl? ( >=net-misc/curl-7.15.5 )
26
	gtk? ( dev-cpp/gtkmm:2.4
28
	gtk? ( dev-cpp/gtkmm:2.4
27
		dev-libs/libsigc++:2
29
		dev-libs/libsigc++:2
28
		x11-libs/pango )
30
		x11-libs/pango )
31
	!minimal? ( dev-util/dialog )
32
	ncurses? ( sys-libs/ncurses:5 )
29
	test? ( dev-util/cppunit )
33
	test? ( dev-util/cppunit )
30
	webinterface? ( =dev-lang/php-5* virtual/httpd-cgi )"
34
	webinterface? ( =dev-lang/php-5* virtual/httpd-cgi )"
31
DEPEND="${RDEPEND}
35
DEPEND="${RDEPEND}
32
	>=dev-util/pkgconfig-0.21
36
	>=dev-util/pkgconfig-0.21
33
	doc? ( app-doc/doxygen )"
37
	doc? ( app-doc/doxygen )"
34
38
39
pkg_setup() {	
40
	if use webinterface && ! built_with_use dev-lang/php xml;then
41
		die "dev-lang/php should be compiled with the xml use flag when you
42
		have the webinterface use flag set"
43
	fi
44
	if use webinterface && ! built_with_use dev-lang/php zlib;then
45
		ewarn "dev-lang/php should be compiled with the zlib use flag when you
46
		have the webinterface use flag set (performance issues)"
47
	fi
48
		
49
}
50
35
src_unpack() {
51
src_unpack() {
36
	unpack ${A}
52
	subversion_src_unpack
37
	cd "${S}"
53
	cd "${S}"
38
54
39
	epatch "${FILESDIR}"/${P}-broken_bundled_plotmm_sigc.patch
55
	eautoreconf
40
}
56
}
41
57
42
src_compile() {
58
src_compile() {
43
	filter-ldflags -Wl,--as-needed --as-needed
59
	#missing libs for UI/cli,UI/cli/ncurses,daemon/auth
60
	local morelibs=""
61
	morelibs="-lboost_thread \
62
		-lboost_date_time"
44
63
45
	econf \
64
	econf LIBS="${morelibs}" \
46
		$(use_enable debug) \
65
		$(use_enable debug) \
47
		$(use_enable gtk gui) \
66
		$(use_enable gtk gui) \
48
		$(use_enable ncurses cli) \
67
		$(use_enable ncurses cli) \
Lines 50-66 Link Here
50
		$(use_enable session session-saving) \
69
		$(use_enable session session-saving) \
51
		$(use_enable test unittest) \
70
		$(use_enable test unittest) \
52
		$(use_enable webinterface www) \
71
		$(use_enable webinterface www) \
72
		$(use_enable curl url) \
53
		$(use_enable !minimal command-list) \
73
		$(use_enable !minimal command-list) \
54
		--enable-btg-config \
74
		$(use_enable !minimal btg-config) \
55
		--disable-upnp \
75
		--disable-upnp \
56
		--disable-dependency-tracking \
76
		--disable-dependency-tracking \
57
		|| die
77
		|| die "econf failed"
58
78
59
	emake || die
79
	emake || die "emake failed"
60
}
80
}
61
81
62
src_install() {
82
src_install() {
63
	emake DESTDIR="${D}" install || die
83
	emake DESTDIR="${D}" install || die "emake install failed"
64
84
65
	dodoc AUTHORS ChangeLog README TODO
85
	dodoc AUTHORS ChangeLog README TODO
66
86
Lines 77-81 Link Here
77
	echo
97
	echo
78
	elog "BTG needs a daemon.ini and client.ini, to create them run btg-config"
98
	elog "BTG needs a daemon.ini and client.ini, to create them run btg-config"
79
	elog "and put them in the home of the user running btg (/home/p2p/.btg by default)"
99
	elog "and put them in the home of the user running btg (/home/p2p/.btg by default)"
100
	ewarn "On hardened system you must run"
101
	ewarn "paxctl -m /usr/bin/btgdaemon /usr/bin/btgcli /usr/bin/btgncli"
102
	ewarn "to get btg work."
80
	echo
103
	echo
81
}
104
}

Return to bug 231105