Lines 1-11
Link Here
|
1 |
# Copyright 1999-2013 Gentoo Foundation |
1 |
# Copyright 1999-2015 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-nntp/hellanzb/hellanzb-0.13-r8.ebuild,v 1.3 2013/08/03 09:45:50 mgorny Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/net-nntp/hellanzb/hellanzb-0.13-r8.ebuild,v 1.3 2013/08/03 09:45:50 mgorny Exp $ |
4 |
|
4 |
|
5 |
EAPI="3" |
5 |
EAPI=5 |
6 |
PYTHON_DEPEND="2" |
|
|
7 |
|
6 |
|
8 |
inherit distutils eutils |
7 |
PYTHON_COMPAT=( python2_7 ) |
|
|
8 |
DISTUTILS_SINGLE_IMPL=1 |
9 |
|
10 |
inherit distutils-r1 |
9 |
|
11 |
|
10 |
DESCRIPTION="Retrieves and processes .nzb files" |
12 |
DESCRIPTION="Retrieves and processes .nzb files" |
11 |
HOMEPAGE="http://www.hellanzb.com/" |
13 |
HOMEPAGE="http://www.hellanzb.com/" |
Lines 16-53
Link Here
|
16 |
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-solaris" |
18 |
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-solaris" |
17 |
IUSE="libnotify ssl" |
19 |
IUSE="libnotify ssl" |
18 |
|
20 |
|
19 |
RDEPEND=">=dev-python/twisted-core-2.0 |
21 |
RDEPEND=">=dev-python/twisted-core-2.0[${PYTHON_USEDEP}] |
20 |
dev-python/twisted-web |
22 |
dev-python/twisted-web[${PYTHON_USEDEP}] |
21 |
|| ( app-arch/unrar |
23 |
|| ( app-arch/unrar |
22 |
app-arch/rar ) |
24 |
app-arch/rar ) |
23 |
app-arch/par2cmdline |
25 |
app-arch/par2cmdline |
24 |
ssl? ( dev-python/pyopenssl ) |
26 |
ssl? ( dev-python/pyopenssl[${PYTHON_USEDEP}] ) |
25 |
libnotify? ( dev-python/notify-python )" |
27 |
libnotify? ( dev-python/notify-python[${PYTHON_USEDEP}] )" |
26 |
|
28 |
|
27 |
DEPEND="" |
29 |
DEPEND="" |
28 |
|
30 |
|
29 |
DOCS="CHANGELOG CREDITS PKG-INFO README" |
31 |
PATCHES=( "${FILESDIR}/${P}-datafiles.patch" |
30 |
PYTHON_MODNAME="Hellanzb" |
32 |
"${FILESDIR}/${P}-Fix_conf_file_search_path.patch" |
|
|
33 |
"${FILESDIR}/${P}-Choose_interface_to_bind_on.patch" |
34 |
"${FILESDIR}/${P}-fix_multiples_hosts.diff" |
35 |
"${FILESDIR}/${P}-gettinggroup.patch" |
36 |
"${FILESDIR}/${P}-python_26_fixes.patch" |
37 |
"${FILESDIR}/${P}-twisted-10.0.0.patch" |
38 |
) |
31 |
|
39 |
|
32 |
pkg_setup() { |
40 |
pkg_setup() { |
33 |
python_set_active_version 2 |
41 |
python-single-r1_pkg_setup |
34 |
python_pkg_setup |
|
|
35 |
} |
36 |
|
37 |
src_prepare() { |
38 |
distutils_src_prepare |
39 |
|
40 |
epatch "${FILESDIR}/${P}-datafiles.patch" |
41 |
epatch "${FILESDIR}/${P}-Fix_conf_file_search_path.patch" |
42 |
epatch "${FILESDIR}/${P}-Choose_interface_to_bind_on.patch" |
43 |
epatch "${FILESDIR}/${P}-fix_multiples_hosts.diff" |
44 |
epatch "${FILESDIR}/${P}-gettinggroup.patch" |
45 |
epatch "${FILESDIR}/${P}-python_26_fixes.patch" |
46 |
epatch "${FILESDIR}/${P}-twisted-10.0.0.patch" |
47 |
} |
42 |
} |
48 |
|
43 |
|
49 |
src_install() { |
44 |
src_install() { |
50 |
distutils_src_install |
45 |
distutils-r1_src_install |
51 |
|
46 |
|
52 |
newconfd "${FILESDIR}/hellanzb.conf" hellanzb |
47 |
newconfd "${FILESDIR}/hellanzb.conf" hellanzb |
53 |
newinitd "${FILESDIR}/hellanzb.init" hellanzb |
48 |
newinitd "${FILESDIR}/hellanzb.init" hellanzb |
Lines 57-64
Link Here
|
57 |
} |
52 |
} |
58 |
|
53 |
|
59 |
pkg_postinst() { |
54 |
pkg_postinst() { |
60 |
distutils_pkg_postinst |
|
|
61 |
|
62 |
elog "You can start hellanzb in the background automatically by using" |
55 |
elog "You can start hellanzb in the background automatically by using" |
63 |
elog "the init-script. To do this, add it to your default runlevel:" |
56 |
elog "the init-script. To do this, add it to your default runlevel:" |
64 |
elog "" |
57 |
elog "" |