net-dns/totd: Port to EAPI 7
authorDavid Seifert <soap@gentoo.org>
Sat, 18 Jan 2020 17:35:40 +0000 (18:35 +0100)
committerDavid Seifert <soap@gentoo.org>
Sat, 18 Jan 2020 17:35:40 +0000 (18:35 +0100)
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: David Seifert <soap@gentoo.org>
net-dns/totd/files/totd-1.5.1-fix-CC.patch [new file with mode: 0644]
net-dns/totd/totd-1.5.1.ebuild

diff --git a/net-dns/totd/files/totd-1.5.1-fix-CC.patch b/net-dns/totd/files/totd-1.5.1-fix-CC.patch
new file mode 100644 (file)
index 0000000..3ebbd41
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -4,7 +4,7 @@
+ # <$Id: Makefile.in,v 3.43 2005/01/31 11:55:14 dillema Exp $>
+ #
+-CC = gcc
++CC = @CC@
+ # These use the standard autoconf variables, which by default are
+ # rooted in @prefix@
index 8cb983f4b008bc4234e70ad7445b372e17b3b971..e9e8691f95fe2b3335b0260dc282e99f2549ff51 100644 (file)
@@ -1,9 +1,7 @@
-# Copyright 1999-2013 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=4
-
-inherit eutils
+EAPI=7
 
 DESCRIPTION="Trick Or Treat Daemon, a DNS proxy for 6to4"
 HOMEPAGE="http://www.dillema.net/software/totd.html"
@@ -12,14 +10,11 @@ SRC_URI="http://www.dillema.net/software/${PN}/${P}.tar.gz"
 LICENSE="totd BSD BSD-4"
 SLOT="0"
 KEYWORDS="~amd64 x86"
-IUSE=""
-
-DEPEND=""
-RDEPEND=""
 
-src_prepare() {
-       epatch "${FILESDIR}"/${P}-no_werror.patch
-}
+PATCHES=(
+       "${FILESDIR}"/${P}-no_werror.patch
+       "${FILESDIR}"/${P}-fix-CC.patch
+)
 
 src_configure() {
        econf \