diff options
author | 2020-08-31 10:10:39 +0100 | |
---|---|---|
committer | 2020-08-31 13:15:47 -0400 | |
commit | fc2ed88084be5fa1595ab7562f1eb6ef8475e5b6 (patch) | |
tree | 0e7508a327718d662ffca35f306d0b86d1c1e3ef /app-admin/syslog-summary/syslog-summary-1.14-r5.ebuild | |
parent | net-dns/unbound: x86 stable (bug #739690) (diff) | |
download | gentoo-fc2ed88084be5fa1595ab7562f1eb6ef8475e5b6.tar.gz gentoo-fc2ed88084be5fa1595ab7562f1eb6ef8475e5b6.tar.bz2 gentoo-fc2ed88084be5fa1595ab7562f1eb6ef8475e5b6.zip |
app-admin/syslog-summary: port to py3
Backport upstream py3 PR https://github.com/dpaleino/syslog-summary/pull/4
Remove py2 support
Bug: https://bugs.gentoo.org/735202
Signed-off-by: Paul Healy <lmiphay@gmail.com>
Signed-off-by: Aaron Bauman <bman@gentoo.org>
Diffstat (limited to 'app-admin/syslog-summary/syslog-summary-1.14-r5.ebuild')
-rw-r--r-- | app-admin/syslog-summary/syslog-summary-1.14-r5.ebuild | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/app-admin/syslog-summary/syslog-summary-1.14-r5.ebuild b/app-admin/syslog-summary/syslog-summary-1.14-r5.ebuild new file mode 100644 index 000000000000..e34fa9528f05 --- /dev/null +++ b/app-admin/syslog-summary/syslog-summary-1.14-r5.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{7,8} ) + +inherit python-single-r1 + +DESCRIPTION="Summarizes the contents of a syslog log file" +HOMEPAGE="https://github.com/dpaleino/syslog-summary" +SRC_URI="https://github.com/downloads/dpaleino/${PN}/${P}.tar.gz" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~sparc ~x86" +IUSE="" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +DEPEND="" +RDEPEND="${PYTHON_DEPS}" + +PATCHES=( \ + "${FILESDIR}/${P}-fix-ignore-code.patch" \ + "${FILESDIR}/${P}-remove-file-magic.patch" \ + "${FILESDIR}/${P}-py3.patch" \ + ) + +src_prepare() { + python_fix_shebang -f syslog-summary + + # Sadly, the makefile is useless for us. + rm Makefile || die + + default +} + +src_install() { + dobin syslog-summary + einstalldocs + doman syslog-summary.1 + + insinto /etc/syslog-summary + doins ignore.rules +} |