|
Lines 1-20
Link Here
|
| 1 |
# Copyright 1999-2012 Gentoo Foundation |
1 |
# Copyright 1999-2012 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/deluge/deluge-1.3.5-r2.ebuild,v 1.3 2012/12/30 17:05:09 mr_bones_ Exp $ |
3 |
# $Header: $ |
| 4 |
|
4 |
|
| 5 |
EAPI="3" |
5 |
EAPI="3" |
| 6 |
PYTHON_DEPEND="2:2.5" |
6 |
PYTHON_DEPEND="2:2.5" |
| 7 |
|
7 |
|
| 8 |
inherit distutils eutils flag-o-matic python |
8 |
inherit distutils eutils python |
| 9 |
|
9 |
|
| 10 |
DESCRIPTION="BitTorrent client with a client/server model." |
10 |
DESCRIPTION="BitTorrent client with a client/server model." |
| 11 |
HOMEPAGE="http://deluge-torrent.org/" |
11 |
HOMEPAGE="http://deluge-torrent.org/" |
| 12 |
SRC_URI="http://download.deluge-torrent.org/source/${P}.tar.lzma" |
12 |
SRC_URI="http://download.deluge-torrent.org/source/${P}.tar.bz2" |
| 13 |
|
13 |
|
| 14 |
LICENSE="GPL-2" |
14 |
LICENSE="GPL-2" |
| 15 |
SLOT="0" |
15 |
SLOT="0" |
| 16 |
KEYWORDS="~amd64 ~arm ~ppc ~sparc ~x86" |
16 |
KEYWORDS="~amd64 ~x86" |
| 17 |
IUSE="geoip gtk libnotify setproctitle webinterface" |
17 |
IUSE="geoip gtk libnotify setproctitle sound webinterface" |
| 18 |
|
18 |
|
| 19 |
DEPEND=">=net-libs/rb_libtorrent-0.14.9[python] |
19 |
DEPEND=">=net-libs/rb_libtorrent-0.14.9[python] |
| 20 |
dev-python/setuptools |
20 |
dev-python/setuptools |
|
Lines 28-44
Link Here
|
| 28 |
>=dev-python/twisted-web-8.1 |
28 |
>=dev-python/twisted-web-8.1 |
| 29 |
geoip? ( dev-libs/geoip ) |
29 |
geoip? ( dev-libs/geoip ) |
| 30 |
gtk? ( |
30 |
gtk? ( |
| 31 |
dev-python/pygame |
|
|
| 32 |
dev-python/pygobject:2 |
31 |
dev-python/pygobject:2 |
| 33 |
>=dev-python/pygtk-2.12 |
32 |
>=dev-python/pygtk-2.12 |
| 34 |
gnome-base/librsvg |
33 |
gnome-base/librsvg |
| 35 |
libnotify? ( dev-python/notify-python ) |
34 |
libnotify? ( dev-python/notify-python ) |
|
|
35 |
sound? ( dev-python/pygame ) |
| 36 |
) |
36 |
) |
| 37 |
setproctitle? ( dev-python/setproctitle ) |
37 |
setproctitle? ( dev-python/setproctitle ) |
| 38 |
webinterface? ( dev-python/mako )" |
38 |
webinterface? ( dev-python/mako )" |
| 39 |
|
39 |
|
| 40 |
pkg_setup() { |
40 |
pkg_setup() { |
| 41 |
append-ldflags $(no-as-needed) |
|
|
| 42 |
python_set_active_version 2 |
41 |
python_set_active_version 2 |
| 43 |
python_pkg_setup |
42 |
python_pkg_setup |
| 44 |
} |
43 |
} |
|
Lines 46-53
Link Here
|
| 46 |
src_prepare() { |
45 |
src_prepare() { |
| 47 |
distutils_src_prepare |
46 |
distutils_src_prepare |
| 48 |
python_convert_shebangs -r 2 . |
47 |
python_convert_shebangs -r 2 . |
| 49 |
epatch "${FILESDIR}/${P}-rb_libtorrent-disable-python-bindings" |
48 |
epatch "${FILESDIR}/${PN}-1.3.5-disable_libtorrent_internal_copy.patch" |
| 50 |
epatch "${FILESDIR}/${P}-disable_libtorrent_internal_copy.patch" |
|
|
| 51 |
|
49 |
|
| 52 |
} |
50 |
} |
| 53 |
|
51 |
|
|
Lines 55-60
Link Here
|
| 55 |
distutils_src_install |
53 |
distutils_src_install |
| 56 |
newinitd "${FILESDIR}"/deluged.init deluged |
54 |
newinitd "${FILESDIR}"/deluged.init deluged |
| 57 |
newconfd "${FILESDIR}"/deluged.conf deluged |
55 |
newconfd "${FILESDIR}"/deluged.conf deluged |
|
|
56 |
use gtk || rm -f "${ED}"/usr/bin/deluge-gtk |
| 58 |
} |
57 |
} |
| 59 |
|
58 |
|
| 60 |
pkg_postinst() { |
59 |
pkg_postinst() { |