commit:     64111c1235d91b065b80ff66906e5442d2365b86
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 23 19:20:50 2019 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Nov 23 19:26:27 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=64111c12

net-mail/qtools: Bump to EAPI 7

Bug: https://bugs.gentoo.org/697246
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 net-mail/qtools/qtools-0.56.ebuild | 32 ++++++++++++++------------------
 1 file changed, 14 insertions(+), 18 deletions(-)

diff --git a/net-mail/qtools/qtools-0.56.ebuild 
b/net-mail/qtools/qtools-0.56.ebuild
index 7251ba3d40e..b5c83062f98 100644
--- a/net-mail/qtools/qtools-0.56.ebuild
+++ b/net-mail/qtools/qtools-0.56.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=0
+EAPI=7
 
-inherit eutils toolchain-funcs
+inherit toolchain-funcs
 
 DESCRIPTION="Utilities for use with qmail, typically as part of .qmail command 
processing"
 HOMEPAGE="http://www.superscript.com/qtools/intro.html";
@@ -15,28 +15,24 @@ KEYWORDS="alpha ~amd64 ~hppa ~mips ppc ~sparc x86"
 IUSE="static"
 RESTRICT="mirror bindist"
 
-src_unpack() {
-       unpack ${A}
-       cd "${S}"
-       epatch "${FILESDIR}"/${P}-errno.patch
-       epatch "${FILESDIR}"/${P}-head.patch
-}
+PATCHES=(
+       "${FILESDIR}"/${P}-errno.patch
+       "${FILESDIR}"/${P}-head.patch
+)
 
-src_compile() {
+src_configure() {
        use static && LDFLAGS="${LDFLAGS} -static"
        export CC="$(tc-getCC)"
-       echo "${CC} ${CFLAGS}" > conf-cc
-       echo "${CC} ${LDFLAGS}" > conf-ld
-       echo "/usr" > conf-home
-       emake || die "emake failed"
+       echo "${CC} ${CFLAGS}" > conf-cc || die
+       echo "${CC} ${LDFLAGS}" > conf-ld || die
+       echo "/usr" > conf-home || die
 }
 
 src_install() {
-       into /usr
        dobin 822addr 822body 822bodyfilter 822fields 822headerfilter \
-                 822headerok 822headers checkaddr checkdomain \
-                 condtomaildir filterto ifaddr iftoccfrom replier \
-                 replier-config tomaildir
+               822headerok 822headers checkaddr checkdomain \
+               condtomaildir filterto ifaddr iftoccfrom replier \
+               replier-config tomaildir
 
        dodoc BAPVERSION CHANGES FILES README SYSDEPS TARGETS TODO VERSION
 }

Reply via email to