--- net-irc/irker/irker-1.20.ebuild 2013-05-22 05:40:55.000000000 +0200 +++ net-irc/ircer/irker-1.20.ebuild 2013-09-19 15:35:16.000000000 +0200 @@ -2,27 +2,47 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-irc/irker/irker-1.20.ebuild,v 1.1 2013/05/22 03:40:55 patrick Exp $ -EAPI=4 +EAPI=5 +PYTHON_COMPAT=( python{2_7,2_6} ) -inherit python +inherit python-single-r1 systemd DESCRIPTION="Submission tools for IRC notifications" HOMEPAGE="http://www.catb.org/esr/irker/" SRC_URI="http://www.catb.org/esr/${PN}/${P}.tar.gz" + LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" + DEPEND="app-text/docbook-xml-dtd:4.1.2 app-text/xmlto" RDEPEND="=dev-lang/python-2* dev-python/irc" +src_prepare() { + # Rely on systemd eclass for systemd service install + sed -i -e "/^SYSTEMDSYSTEMUNITDIR/d" Makefile + + # Prefix support + sed -i -e "/^ExecStart=/ s:=/:=${EROOT}:" irkerd.service +} + src_install() { - python_convert_shebangs 2 irkerd irkerhook.py - emake DESTDIR="${D}" install + emake DESTDIR="${ED}" install + # the irkerhook.py is not installed with the default makefile - dobin irkerhook.py - newinitd "${FILESDIR}/irker.init" irkerd - newconfd "${FILESDIR}/irker.conf.d" irkerd + python_doscript irkerhook.py + + newinitd "${FILESDIR}/irkerd.initd" irkerd + newconfd "${FILESDIR}/irkerd.confd" irkerd + + systemd_dounit irkerd.service + + dodoc NEWS README hacking.txt security.txt + dohtml irkerd.html irkerhook.html + + docinto examples + dodoc filter-example.py filter-test.py }