net-mail/vqadmin: Bump to EAPI 7
authorMichał Górny <mgorny@gentoo.org>
Sat, 23 Nov 2019 19:11:20 +0000 (20:11 +0100)
committerMichał Górny <mgorny@gentoo.org>
Sat, 23 Nov 2019 19:26:07 +0000 (20:26 +0100)
Bug: https://bugs.gentoo.org/697246
Signed-off-by: Michał Górny <mgorny@gentoo.org>
net-mail/vqadmin/vqadmin-2.3.7.ebuild

index 71d0578aaaac568116980baf6e8e6f9516a2055d..50516805cf56c72996f41345f3e31fd53cc7a2b1 100644 (file)
@@ -1,11 +1,11 @@
-# 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 webapp eutils autotools qmail
+inherit webapp autotools qmail
 
-DESCRIPTION="A web based control pannel to manage Virtual Qmail Domains. Works with qmailadmin"
+DESCRIPTION="A web based control pannel to manage Virtual Qmail Domains"
 HOMEPAGE="http://www.inter7.com/index.php?page=vqadmin"
 SRC_URI="http://www.inter7.com/vqadmin/${P}.tar.gz"
 
@@ -20,9 +20,8 @@ DEPEND="virtual/qmail
 RDEPEND="${DEPEND}
        net-mail/qmailadmin"
 
-src_unpack() {
-       unpack ${A}
-       cd "${S}"
+src_prepare() {
+       default
 
        # fixes for sane webapp integration
        sed -i \
@@ -30,18 +29,15 @@ src_unpack() {
                -e "s|/images/vqadmin/|/vqadmin/|g" \
                -e "s|/cgi-bin/vqadmin/|/cgi-bin/|g" \
                -e "s|vqadmin\.cgi|vqadmin|g" \
-               *.h *.c html/*.html
+               *.h *.c html/*.html || die
 }
 
-src_compile() {
-       econf ${myopts} \
+src_configure() {
+       econf \
                --enable-qmaildir="${QMAIL_HOME}" \
                --enable-vpopuser=vpopmail \
                --enable-vpopgroup=vpopmail \
-               --enable-cgibindir="${MY_CGIBINDIR}" \
-       || die "econf failed"
-
-       emake || die "make failed"
+               --enable-cgibindir="${MY_CGIBINDIR}"
 }
 
 src_install () {