commit:     7a3c20ce5652f1ebbd037345dfd0d740883393af
Author:     Jakov Smolić <jsmolic <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 14 13:43:25 2021 +0000
Commit:     Jakov Smolić <jsmolic <AT> gentoo <DOT> org>
CommitDate: Sun Nov 14 13:43:25 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7a3c20ce

net-misc/telnet-bsd: Port to EAPI 8

Closes: https://bugs.gentoo.org/819291
Signed-off-by: Jakov Smolić <jsmolic <AT> gentoo.org>

 ...-bsd-1.2-r1.ebuild => telnet-bsd-1.2-r2.ebuild} | 32 ++++++++++++++--------
 1 file changed, 20 insertions(+), 12 deletions(-)

diff --git a/net-misc/telnet-bsd/telnet-bsd-1.2-r1.ebuild 
b/net-misc/telnet-bsd/telnet-bsd-1.2-r2.ebuild
similarity index 71%
rename from net-misc/telnet-bsd/telnet-bsd-1.2-r1.ebuild
rename to net-misc/telnet-bsd/telnet-bsd-1.2-r2.ebuild
index d9185075752c..f7e8097c0bcc 100644
--- a/net-misc/telnet-bsd/telnet-bsd-1.2-r1.ebuild
+++ b/net-misc/telnet-bsd/telnet-bsd-1.2-r2.ebuild
@@ -1,9 +1,9 @@
 # Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
+EAPI=8
 
-inherit autotools epatch toolchain-funcs
+inherit autotools toolchain-funcs
 
 DESCRIPTION="Telnet and telnetd ported from OpenBSD with IPv6 support"
 HOMEPAGE="ftp://ftp.suse.com/pub/people/kukuk/ipv6/";
@@ -14,16 +14,23 @@ SLOT="0"
 KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~m68k ppc ppc64 ~s390 sparc x86 
~amd64-linux ~x86-linux ~x64-macos"
 IUSE="nls xinetd"
 
-RDEPEND="sys-libs/ncurses:="
-DEPEND="${RDEPEND}
+RDEPEND="
+       sys-libs/ncurses:=
        !net-misc/netkit-telnetd
-       xinetd? ( sys-apps/xinetd )
-       virtual/pkgconfig"
+"
+RDEPEND="${DEPEND}
+       xinetd? ( sys-apps/xinetd   )
+       !net-misc/netkit-telnetd
+"
+BDEPEND="virtual/pkgconfig"
+
+PATCHES=(
+       "${FILESDIR}"/${P}-fbsd.patch
+       "${FILESDIR}"/${PN}-1.2-format-security.patch
+)
 
 src_prepare() {
-       epatch "${FILESDIR}"/${P}-fbsd.patch
-       epatch "${FILESDIR}"/${PN}-1.2-format-security.patch
-       eaclocal
+       default
        eautoreconf
 }
 
@@ -34,16 +41,17 @@ src_configure() {
        fi
 
        econf
+}
+
+src_compile() {
        emake LIBS="$("$(tc-getPKG_CONFIG)" --libs ncurses)"
 }
 
 src_install() {
-       emake DESTDIR="${D}" install
+       default
 
        if use xinetd ; then
                insinto /etc/xinetd.d
                newins "${FILESDIR}"/telnetd.xinetd telnetd
        fi
-
-       dodoc README THANKS NEWS AUTHORS ChangeLog INSTALL
 }

Reply via email to