commit:     210f6b3bb79cba1c12097efe94617c1395f037a0
Author:     Jakov Smolić <jsmolic <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 14 13:43:30 2021 +0000
Commit:     Jakov Smolić <jsmolic <AT> gentoo <DOT> org>
CommitDate: Sun Nov 14 13:43:30 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=210f6b3b

mail-filter/spamassassin-botnet: Port to EAPI 8

Closes: https://bugs.gentoo.org/819474
Signed-off-by: Jakov Smolić <jsmolic <AT> gentoo.org>

 .../spamassassin-botnet/spamassassin-botnet-0.8-r1.ebuild      | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/mail-filter/spamassassin-botnet/spamassassin-botnet-0.8-r1.ebuild 
b/mail-filter/spamassassin-botnet/spamassassin-botnet-0.8-r1.ebuild
index f4486210f919..a8bf5a5a1e7c 100644
--- a/mail-filter/spamassassin-botnet/spamassassin-botnet-0.8-r1.ebuild
+++ b/mail-filter/spamassassin-botnet/spamassassin-botnet-0.8-r1.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
+EAPI=8
 
 inherit perl-module
 
@@ -11,20 +11,18 @@ MY_P="${MY_PN}-${PV}"
 DESCRIPTION="SpamAssassin plugin that attempts to detect messages sent by a 
botnet"
 HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage";
 SRC_URI="http://people.ucsc.edu/~jrudd/spamassassin/${MY_P}.tar";
+S="${WORKDIR}"
 
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
-IUSE=""
 
 DEPEND=">=mail-filter/spamassassin-3.0.0"
 RDEPEND="${DEPEND}"
 
-S="${WORKDIR}"
-
 src_compile() {
        # make sure it doesn't try to look for the .pm in the same dir as the 
.cf
-       sed -rie 's/^(loadplugin.+)[ ]+Botnet.pm/\1/' Botnet.cf
+       sed -rie 's/^(loadplugin.+)[ ]+Botnet.pm/\1/' Botnet.cf || die
 }
 
 src_install() {

Reply via email to