Lines 1-47
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.1 2008/06/20 17:28:42 angelos Exp $ |
3 |
# $Header: |
4 |
|
4 |
|
5 |
EAPI=1 |
5 |
EAPI="1" |
6 |
|
6 |
|
7 |
inherit eutils flag-o-matic |
7 |
inherit eutils versionator |
|
|
8 |
|
9 |
MY_PV=$(replace_version_separator 3 '-') |
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="mirror://berlios/${PN}/${PN}-${MY_PV}.tar.gz" |
12 |
|
14 |
|
13 |
LICENSE="GPL-2" |
15 |
LICENSE="GPL-2" |
14 |
SLOT="0" |
16 |
SLOT="0" |
15 |
KEYWORDS="~amd64 ~x86" |
17 |
KEYWORDS="~amd64 ~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 |
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 |
|
|
24 |
net-libs/gnutls |
25 |
net-libs/gnutls |
25 |
>=net-libs/rb_libtorrent-0.13_rc1 |
26 |
>=net-libs/rb_libtorrent-0.13_rc1 |
|
|
27 |
curl? ( net-misc/curl ) |
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 ) |
29 |
test? ( dev-util/cppunit ) |
32 |
test? ( dev-util/cppunit ) |
30 |
webinterface? ( =dev-lang/php-5* virtual/httpd-cgi )" |
33 |
webinterface? ( =dev-lang/php-5* virtual/httpd-cgi )" |
31 |
DEPEND="${RDEPEND} |
34 |
DEPEND="${RDEPEND} |
32 |
>=dev-util/pkgconfig-0.21 |
35 |
>=dev-util/pkgconfig-0.21 |
33 |
doc? ( app-doc/doxygen )" |
36 |
doc? ( app-doc/doxygen )" |
34 |
|
37 |
|
|
|
38 |
S=${WORKDIR}/${PN}-$(get_version_component_range 1-3) |
39 |
|
35 |
src_unpack() { |
40 |
src_unpack() { |
36 |
unpack ${A} |
41 |
unpack ${A} |
37 |
cd "${S}" |
42 |
cd "${S}" |
38 |
|
43 |
|
39 |
epatch "${FILESDIR}"/${P}-broken_bundled_plotmm_sigc.patch |
44 |
epatch "${FILESDIR}"/${PN}-curl-as-needed.patch |
40 |
} |
45 |
} |
41 |
|
|
|
42 |
src_compile() { |
46 |
src_compile() { |
43 |
filter-ldflags -Wl,--as-needed --as-needed |
|
|
44 |
|
45 |
econf \ |
47 |
econf \ |
46 |
$(use_enable debug) \ |
48 |
$(use_enable debug) \ |
47 |
$(use_enable gtk gui) \ |
49 |
$(use_enable gtk gui) \ |
Lines 50-66
Link Here
|
50 |
$(use_enable session session-saving) \ |
52 |
$(use_enable session session-saving) \ |
51 |
$(use_enable test unittest) \ |
53 |
$(use_enable test unittest) \ |
52 |
$(use_enable webinterface www) \ |
54 |
$(use_enable webinterface www) \ |
|
|
55 |
$(use_enable curl url) \ |
53 |
$(use_enable !minimal command-list) \ |
56 |
$(use_enable !minimal command-list) \ |
54 |
--enable-btg-config \ |
57 |
$(use_enable !minimal btg-config) \ |
55 |
--disable-upnp \ |
58 |
--disable-upnp \ |
|
|
59 |
--disable-viewer \ |
56 |
--disable-dependency-tracking \ |
60 |
--disable-dependency-tracking \ |
57 |
|| die |
61 |
|| die "econf failed" |
58 |
|
62 |
|
59 |
emake || die |
63 |
emake || die "emake failed" |
60 |
} |
64 |
} |
61 |
|
65 |
|
62 |
src_install() { |
66 |
src_install() { |
63 |
emake DESTDIR="${D}" install || die |
67 |
emake DESTDIR="${D}" install || die "emake install failed" |
64 |
|
68 |
|
65 |
dodoc AUTHORS ChangeLog README TODO |
69 |
dodoc AUTHORS ChangeLog README TODO |
66 |
|
70 |
|