mail-filter/libmilter: EAPI bump
authorAndreas K. Hüttel <dilfridge@gentoo.org>
Fri, 12 Apr 2019 22:08:52 +0000 (00:08 +0200)
committerAndreas K. Hüttel <dilfridge@gentoo.org>
Fri, 12 Apr 2019 22:09:00 +0000 (00:09 +0200)
Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
mail-filter/libmilter/libmilter-1.0.2.ebuild

index a804150cb01b3320f4d2b2bf1d0945ab7e175340..326d780d483f00ef822eedf6973f968800e22550 100644 (file)
@@ -1,9 +1,9 @@
 # Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI="2"
+EAPI=7
 
-inherit eutils multilib toolchain-funcs
+inherit multilib toolchain-funcs
 
 # This library is part of sendmail, but it does not share the version number with it.
 # In order to find the right libmilter version number, check SMFI_VERSION definition
@@ -27,8 +27,9 @@ RDEPEND="!mail-mta/sendmail"
 S="${WORKDIR}/sendmail-${SENDMAIL_VER}"
 
 src_prepare() {
-       epatch "${FILESDIR}"/${PN}-build-system.patch
-       epatch "${FILESDIR}"/${PN}-sharedlib.patch
+       eapply "${FILESDIR}"/${PN}-build-system.patch
+       eapply "${FILESDIR}"/${PN}-sharedlib.patch
+       default
 
        local CC="$(tc-getCC)"
        local ENVDEF="-DNETUNIX -DNETINET"
@@ -45,7 +46,7 @@ src_prepare() {
 
 src_compile() {
        pushd libmilter
-       emake -j1 MILTER_SOVER=${PV} || die "libmilter compilation failed"
+       emake -j1 MILTER_SOVER=${PV}
        popd
 }
 
@@ -58,9 +59,8 @@ src_install () {
                MANOWN=root MANGRP=0 INCOWN=root INCGRP=0 \
                MSPQOWN=root CFOWN=root CFGRP=0 \
                MILTER_SOVER=${PV} \
-               install -C obj.*/libmilter \
-               || die "install failed"
+               install -C obj.*/libmilter
 
        dodoc libmilter/README
-       dohtml libmilter/docs/*
+       dodoc libmilter/docs/*
 }