commit:     dd323a38284c9a324d0316e1136f884bf831ba89
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Mar 23 04:19:55 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Mar 23 04:19:55 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dd323a38

app-admin/authbind: port to EAPI 7

Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-admin/authbind/authbind-2.1.1.ebuild | 23 ++++++++++++-----------
 1 file changed, 12 insertions(+), 11 deletions(-)

diff --git a/app-admin/authbind/authbind-2.1.1.ebuild 
b/app-admin/authbind/authbind-2.1.1.ebuild
index c7a9890aa7c..0d4fef683b8 100644
--- a/app-admin/authbind/authbind-2.1.1.ebuild
+++ b/app-admin/authbind/authbind-2.1.1.ebuild
@@ -1,27 +1,27 @@
-# Copyright 1999-2013 Gentoo Foundation
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
+EAPI=7
 
-inherit eutils multilib flag-o-matic
+inherit flag-o-matic toolchain-funcs
 
 DESCRIPTION="Bind sockets to privileged ports without root"
-HOMEPAGE="http://www.chiark.greenend.org.uk/ucgi/~ian/git/authbind.git/";
+HOMEPAGE="https://www.chiark.greenend.org.uk/ucgi/~ian/git/authbind.git/";
 SRC_URI="mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${PV}.tar.gz"
 
 LICENSE="GPL-2+"
 SLOT="0"
 KEYWORDS="~amd64"
-IUSE=""
 
-DEPEND=""
-RDEPEND=""
+BDEPEND="virtual/awk"
 
-src_prepare() {
-       epatch "${FILESDIR}/${P}-respect-flags.patch"
-}
+PATCHES=(
+       "${FILESDIR}/${P}-respect-flags.patch"
+)
 
 src_configure() {
+       tc-export CC LD
+
        sed -i \
                -e "s|^prefix=.*|prefix=/usr|" \
                -e "s|^lib_dir=.*|lib_dir=\$(prefix)/$(get_libdir)|" \
@@ -38,7 +38,8 @@ src_install() {
        dobin authbind
        doman authbind.1 authbind-helper.8
 
-       ln -s libauthbind.so.* libauthbind.so.$(awk -F= '/MAJOR=/ { print $2 }' 
< Makefile)
+       local major=$(awk -F= '/MAJOR=/ { print $2 }' Makefile || die)
+       ln -s libauthbind.so.* libauthbind.so.${major} || die
        dolib.so libauthbind.so*
 
        exeinto /usr/libexec/authbind

Reply via email to