Lines 2-28
Link Here
|
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-irc/irker/irker-1.20.ebuild,v 1.1 2013/05/22 03:40:55 patrick Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/net-irc/irker/irker-1.20.ebuild,v 1.1 2013/05/22 03:40:55 patrick Exp $ |
4 |
|
4 |
|
5 |
EAPI=4 |
5 |
EAPI=5 |
|
|
6 |
PYTHON_COMPAT=( python{2_7,2_6} ) |
6 |
|
7 |
|
7 |
inherit python |
8 |
inherit python-single-r1 systemd |
8 |
|
9 |
|
9 |
DESCRIPTION="Submission tools for IRC notifications" |
10 |
DESCRIPTION="Submission tools for IRC notifications" |
10 |
HOMEPAGE="http://www.catb.org/esr/irker/" |
11 |
HOMEPAGE="http://www.catb.org/esr/irker/" |
11 |
SRC_URI="http://www.catb.org/esr/${PN}/${P}.tar.gz" |
12 |
SRC_URI="http://www.catb.org/esr/${PN}/${P}.tar.gz" |
|
|
13 |
|
12 |
LICENSE="BSD" |
14 |
LICENSE="BSD" |
13 |
SLOT="0" |
15 |
SLOT="0" |
14 |
KEYWORDS="~amd64 ~x86" |
16 |
KEYWORDS="~amd64 ~x86" |
15 |
IUSE="" |
17 |
IUSE="" |
|
|
18 |
|
16 |
DEPEND="app-text/docbook-xml-dtd:4.1.2 |
19 |
DEPEND="app-text/docbook-xml-dtd:4.1.2 |
17 |
app-text/xmlto" |
20 |
app-text/xmlto" |
18 |
RDEPEND="=dev-lang/python-2* |
21 |
RDEPEND="=dev-lang/python-2* |
19 |
dev-python/irc" |
22 |
dev-python/irc" |
20 |
|
23 |
|
|
|
24 |
src_prepare() { |
25 |
# Rely on systemd eclass for systemd service install |
26 |
sed -i -e "/^SYSTEMDSYSTEMUNITDIR/d" Makefile |
27 |
|
28 |
# Prefix support |
29 |
sed -i -e "/^ExecStart=/ s:=/:=${EROOT}:" irkerd.service |
30 |
} |
31 |
|
21 |
src_install() { |
32 |
src_install() { |
22 |
python_convert_shebangs 2 irkerd irkerhook.py |
33 |
emake DESTDIR="${ED}" install |
23 |
emake DESTDIR="${D}" install |
34 |
|
24 |
# the irkerhook.py is not installed with the default makefile |
35 |
# the irkerhook.py is not installed with the default makefile |
25 |
dobin irkerhook.py |
36 |
python_doscript irkerhook.py |
26 |
newinitd "${FILESDIR}/irker.init" irkerd |
37 |
|
27 |
newconfd "${FILESDIR}/irker.conf.d" irkerd |
38 |
newinitd "${FILESDIR}/irkerd.initd" irkerd |
|
|
39 |
newconfd "${FILESDIR}/irkerd.confd" irkerd |
40 |
|
41 |
systemd_dounit irkerd.service |
42 |
|
43 |
dodoc NEWS README hacking.txt security.txt |
44 |
dohtml irkerd.html irkerhook.html |
45 |
|
46 |
docinto examples |
47 |
dodoc filter-example.py filter-test.py |
28 |
} |
48 |
} |