annotate net-p2p/deluge/deluge-1.3.3.ebuild @ 290:eb98558e684c

bump deluge to 1.3.3
author holger
date Sat, 23 Jul 2011 21:07:52 +0200
parents
children a6bb3a2f981a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
290
eb98558e684c bump deluge to 1.3.3
holger
parents:
diff changeset
1 # Copyright 1999-2011 Gentoo Foundation
eb98558e684c bump deluge to 1.3.3
holger
parents:
diff changeset
2 # Distributed under the terms of the GNU General Public License v2
eb98558e684c bump deluge to 1.3.3
holger
parents:
diff changeset
3 # $Header: /var/cvsroot/gentoo-x86/net-p2p/deluge/deluge-1.3.2.ebuild,v 1.1 2011/06/05 11:54:47 armin76 Exp $
eb98558e684c bump deluge to 1.3.3
holger
parents:
diff changeset
4
eb98558e684c bump deluge to 1.3.3
holger
parents:
diff changeset
5 EAPI="3"
eb98558e684c bump deluge to 1.3.3
holger
parents:
diff changeset
6 PYTHON_DEPEND="2:2.5"
eb98558e684c bump deluge to 1.3.3
holger
parents:
diff changeset
7
eb98558e684c bump deluge to 1.3.3
holger
parents:
diff changeset
8 inherit distutils flag-o-matic
eb98558e684c bump deluge to 1.3.3
holger
parents:
diff changeset
9
eb98558e684c bump deluge to 1.3.3
holger
parents:
diff changeset
10 DESCRIPTION="BitTorrent client with a client/server model."
eb98558e684c bump deluge to 1.3.3
holger
parents:
diff changeset
11 HOMEPAGE="http://deluge-torrent.org/"
eb98558e684c bump deluge to 1.3.3
holger
parents:
diff changeset
12 SRC_URI="http://download.deluge-torrent.org/source/${P}.tar.lzma"
eb98558e684c bump deluge to 1.3.3
holger
parents:
diff changeset
13
eb98558e684c bump deluge to 1.3.3
holger
parents:
diff changeset
14 LICENSE="GPL-2"
eb98558e684c bump deluge to 1.3.3
holger
parents:
diff changeset
15 SLOT="0"
eb98558e684c bump deluge to 1.3.3
holger
parents:
diff changeset
16 KEYWORDS="~amd64 ~arm ~ppc ~sparc ~x86"
eb98558e684c bump deluge to 1.3.3
holger
parents:
diff changeset
17 IUSE="gtk libnotify webinterface"
eb98558e684c bump deluge to 1.3.3
holger
parents:
diff changeset
18
eb98558e684c bump deluge to 1.3.3
holger
parents:
diff changeset
19 DEPEND=">=net-libs/rb_libtorrent-0.14.9[python]
eb98558e684c bump deluge to 1.3.3
holger
parents:
diff changeset
20 dev-python/setuptools"
eb98558e684c bump deluge to 1.3.3
holger
parents:
diff changeset
21 RDEPEND="${DEPEND}
eb98558e684c bump deluge to 1.3.3
holger
parents:
diff changeset
22 dev-python/chardet
eb98558e684c bump deluge to 1.3.3
holger
parents:
diff changeset
23 dev-python/pyopenssl
eb98558e684c bump deluge to 1.3.3
holger
parents:
diff changeset
24 dev-python/pyxdg
eb98558e684c bump deluge to 1.3.3
holger
parents:
diff changeset
25 || ( dev-lang/python:2.7 dev-lang/python:2.6 dev-python/simplejson )
eb98558e684c bump deluge to 1.3.3
holger
parents:
diff changeset
26 >=dev-python/twisted-8.1
eb98558e684c bump deluge to 1.3.3
holger
parents:
diff changeset
27 >=dev-python/twisted-web-8.1
eb98558e684c bump deluge to 1.3.3
holger
parents:
diff changeset
28 gtk? (
eb98558e684c bump deluge to 1.3.3
holger
parents:
diff changeset
29 dev-python/pygame
eb98558e684c bump deluge to 1.3.3
holger
parents:
diff changeset
30 dev-python/pygobject
eb98558e684c bump deluge to 1.3.3
holger
parents:
diff changeset
31 >=dev-python/pygtk-2.12
eb98558e684c bump deluge to 1.3.3
holger
parents:
diff changeset
32 gnome-base/librsvg
eb98558e684c bump deluge to 1.3.3
holger
parents:
diff changeset
33 libnotify? ( dev-python/notify-python )
eb98558e684c bump deluge to 1.3.3
holger
parents:
diff changeset
34 )
eb98558e684c bump deluge to 1.3.3
holger
parents:
diff changeset
35 webinterface? ( dev-python/mako )"
eb98558e684c bump deluge to 1.3.3
holger
parents:
diff changeset
36
eb98558e684c bump deluge to 1.3.3
holger
parents:
diff changeset
37 pkg_setup() {
eb98558e684c bump deluge to 1.3.3
holger
parents:
diff changeset
38 append-ldflags $(no-as-needed)
eb98558e684c bump deluge to 1.3.3
holger
parents:
diff changeset
39 python_set_active_version 2
eb98558e684c bump deluge to 1.3.3
holger
parents:
diff changeset
40 python_pkg_setup
eb98558e684c bump deluge to 1.3.3
holger
parents:
diff changeset
41 }
eb98558e684c bump deluge to 1.3.3
holger
parents:
diff changeset
42
eb98558e684c bump deluge to 1.3.3
holger
parents:
diff changeset
43 src_prepare() {
eb98558e684c bump deluge to 1.3.3
holger
parents:
diff changeset
44 distutils_src_prepare
eb98558e684c bump deluge to 1.3.3
holger
parents:
diff changeset
45 python_convert_shebangs -r 2 .
eb98558e684c bump deluge to 1.3.3
holger
parents:
diff changeset
46 }
eb98558e684c bump deluge to 1.3.3
holger
parents:
diff changeset
47
eb98558e684c bump deluge to 1.3.3
holger
parents:
diff changeset
48 src_install() {
eb98558e684c bump deluge to 1.3.3
holger
parents:
diff changeset
49 distutils_src_install
eb98558e684c bump deluge to 1.3.3
holger
parents:
diff changeset
50 newinitd "${FILESDIR}"/deluged.init deluged
eb98558e684c bump deluge to 1.3.3
holger
parents:
diff changeset
51 newconfd "${FILESDIR}"/deluged.conf deluged
eb98558e684c bump deluge to 1.3.3
holger
parents:
diff changeset
52 }
eb98558e684c bump deluge to 1.3.3
holger
parents:
diff changeset
53
eb98558e684c bump deluge to 1.3.3
holger
parents:
diff changeset
54 pkg_postinst() {
eb98558e684c bump deluge to 1.3.3
holger
parents:
diff changeset
55 distutils_pkg_postinst
eb98558e684c bump deluge to 1.3.3
holger
parents:
diff changeset
56 elog
eb98558e684c bump deluge to 1.3.3
holger
parents:
diff changeset
57 elog "If after upgrading it doesn't work, please remove the"
eb98558e684c bump deluge to 1.3.3
holger
parents:
diff changeset
58 elog "'~/.config/deluge' directory and try again, but make a backup"
eb98558e684c bump deluge to 1.3.3
holger
parents:
diff changeset
59 elog "first!"
eb98558e684c bump deluge to 1.3.3
holger
parents:
diff changeset
60 elog
eb98558e684c bump deluge to 1.3.3
holger
parents:
diff changeset
61 elog "To start the daemon either run 'deluged' as user"
eb98558e684c bump deluge to 1.3.3
holger
parents:
diff changeset
62 elog "or modify /etc/conf.d/deluged and run"
eb98558e684c bump deluge to 1.3.3
holger
parents:
diff changeset
63 elog "/etc/init.d/deluged start as root"
eb98558e684c bump deluge to 1.3.3
holger
parents:
diff changeset
64 elog "You can still use deluge the old way"
eb98558e684c bump deluge to 1.3.3
holger
parents:
diff changeset
65 elog
eb98558e684c bump deluge to 1.3.3
holger
parents:
diff changeset
66 elog "For more information look at http://dev.deluge-torrent.org/wiki/Faq"
eb98558e684c bump deluge to 1.3.3
holger
parents:
diff changeset
67 elog
eb98558e684c bump deluge to 1.3.3
holger
parents:
diff changeset
68 }