From 240bcf41eb66e9a0684352a363177ed1590418da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Fri, 7 Feb 2020 18:25:59 +0100 Subject: net-irc/irker: Switch to PYTHON_MULTI_USEDEP API MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- net-irc/irker/irker-2.18-r1.ebuild | 55 ----------------------------------- net-irc/irker/irker-2.18-r2.ebuild | 59 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+), 55 deletions(-) delete mode 100644 net-irc/irker/irker-2.18-r1.ebuild create mode 100644 net-irc/irker/irker-2.18-r2.ebuild (limited to 'net-irc/irker') diff --git a/net-irc/irker/irker-2.18-r1.ebuild b/net-irc/irker/irker-2.18-r1.ebuild deleted file mode 100644 index 62f36d076cfc..000000000000 --- a/net-irc/irker/irker-2.18-r1.ebuild +++ /dev/null @@ -1,55 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 -PYTHON_COMPAT=( python2_7 ) # Doesn't work with python3 bug #619700 -PYTHON_REQ_USE="ssl" - -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 ~arm ~x86" -IUSE="socks5" -REQUIRED_USE="${PYTHON_REQUIRED_USE}" - -RDEPEND="${PYTHON_DEPS}" -DEPEND="${RDEPEND} - app-text/docbook-xml-dtd:4.1.2 - app-text/xmlto - socks5? ( dev-python/PySocks[${PYTHON_USEDEP}] )" - -DOCS=( NEWS README hacking.txt security.txt ) -HTML_DOCS=( irkerd.html irkerhook.html ) - -src_prepare() { - default - - # Rely on systemd eclass for systemd service install - sed -i -e "/^SYSTEMDSYSTEMUNITDIR/d" Makefile \ - || die "sed failed" - - # Prefix support - sed -i -e "/^ExecStart=/ s:=/:=${EPREFIX}:" irkerd.service \ - || die "sed failed" -} - -src_install() { - default - - python_doscript "${ED%/}/usr/bin/irkerd" - # Not installed with the default Makefile - python_doscript irk irkerhook.py - - newinitd "${FILESDIR}/irkerd.initd" irkerd - newconfd "${FILESDIR}/irkerd.confd" irkerd - - systemd_dounit irkerd.service - - docinto examples - dodoc filter-example.py filter-test.py -} diff --git a/net-irc/irker/irker-2.18-r2.ebuild b/net-irc/irker/irker-2.18-r2.ebuild new file mode 100644 index 000000000000..df9f62a09166 --- /dev/null +++ b/net-irc/irker/irker-2.18-r2.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python2_7 ) # Doesn't work with python3 bug #619700 +PYTHON_REQ_USE="ssl" + +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 ~arm ~x86" +IUSE="socks5" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND="${PYTHON_DEPS}" +DEPEND="${RDEPEND} + app-text/docbook-xml-dtd:4.1.2 + app-text/xmlto + socks5? ( + $(python_gen_cond_dep ' + dev-python/PySocks[${PYTHON_MULTI_USEDEP}] + ') + )" + +DOCS=( NEWS README hacking.txt security.txt ) +HTML_DOCS=( irkerd.html irkerhook.html ) + +src_prepare() { + default + + # Rely on systemd eclass for systemd service install + sed -i -e "/^SYSTEMDSYSTEMUNITDIR/d" Makefile \ + || die "sed failed" + + # Prefix support + sed -i -e "/^ExecStart=/ s:=/:=${EPREFIX}:" irkerd.service \ + || die "sed failed" +} + +src_install() { + default + + python_doscript "${ED%/}/usr/bin/irkerd" + # Not installed with the default Makefile + python_doscript irk irkerhook.py + + newinitd "${FILESDIR}/irkerd.initd" irkerd + newconfd "${FILESDIR}/irkerd.confd" irkerd + + systemd_dounit irkerd.service + + docinto examples + dodoc filter-example.py filter-test.py +} -- cgit v1.2.3