commit:     1c4a51032de933388a99d7500c667a9bc83dba17
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Sat Sep 19 23:45:43 2020 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sat Sep 19 23:45:43 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1c4a5103

sys-apps/syslog-notify: Port to EAPI 7

Closes: https://bugs.gentoo.org/670528
Closes: https://bugs.gentoo.org/742092
Package-Manager: Portage-3.0.7, Repoman-3.0.1
Signed-off-by: David Seifert <soap <AT> gentoo.org>

 sys-apps/syslog-notify/syslog-notify-0.2.ebuild | 34 ++++++++++++++-----------
 1 file changed, 19 insertions(+), 15 deletions(-)

diff --git a/sys-apps/syslog-notify/syslog-notify-0.2.ebuild 
b/sys-apps/syslog-notify/syslog-notify-0.2.ebuild
index 35fc40806b2..c77dd707397 100644
--- a/sys-apps/syslog-notify/syslog-notify-0.2.ebuild
+++ b/sys-apps/syslog-notify/syslog-notify-0.2.ebuild
@@ -1,8 +1,9 @@
-# Copyright 1999-2013 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=4
-inherit readme.gentoo
+EAPI=7
+
+inherit readme.gentoo-r1
 
 DESCRIPTION="Notifications for syslog entries via libnotify"
 HOMEPAGE="https://jtniehof.github.com/syslog-notify/";
@@ -11,26 +12,29 @@ 
SRC_URI="https://github.com/downloads/jtniehof/${PN}/${P}.tar.bz2";
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="amd64 x86"
-IUSE=""
 
 DEPEND=">=x11-libs/libnotify-0.7"
-RDEPEND="${DEPEND}
-       || ( app-admin/syslog-ng app-admin/rsyslog )"
+RDEPEND="
+       ${DEPEND}
+       || (
+               app-admin/syslog-ng
+               app-admin/rsyslog
+       )"
+
+src_install() {
+       default
+       dodoc HACKING
+
+       dodir /var/spool
+       keepdir /var/spool
 
-pkg_setup() {
-       DOCS="AUTHORS CHANGELOG HACKING README"
-       DISABLE_AUTOFORMATTING="yes"
-       DOC_CONTENTS="Add the following options on your 
/etc/syslog-ng/syslog-ng.conf
+       local DISABLE_AUTOFORMATTING="yes"
+       local DOC_CONTENTS="Add the following options on your 
/etc/syslog-ng/syslog-ng.conf
 file:
 #  destination notify { pipe("/var/spool/syslog-notify"); };
 #  log { source(src); destination(notify);};
 
 Remember to restart syslog-ng before starting syslog-notify."
-}
-
-src_install() {
-       default
-       dodir /var/spool
        readme.gentoo_create_doc
 }
 

Reply via email to