commit:     ed6158a6321d9c49c3427173173e63ca7c83eb85
Author:     Jakov Smolic <jakov.smolic <AT> sartura <DOT> hr>
AuthorDate: Sat Feb 13 22:51:57 2021 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sat Feb 13 22:51:57 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ed6158a6

net-p2p/opendchub: Port to EAPI 7

Closes: https://bugs.gentoo.org/770352
Signed-off-by: Jakov Smolic <jakov.smolic <AT> sartura.hr>
Signed-off-by: David Seifert <soap <AT> gentoo.org>

 net-p2p/opendchub/files/opendchub-0.8.2-telnet.patch |  4 ++--
 net-p2p/opendchub/opendchub-0.8.2.ebuild             | 17 ++++++++---------
 2 files changed, 10 insertions(+), 11 deletions(-)

diff --git a/net-p2p/opendchub/files/opendchub-0.8.2-telnet.patch 
b/net-p2p/opendchub/files/opendchub-0.8.2-telnet.patch
index f81bf44cbc6..c8efc525ed6 100644
--- a/net-p2p/opendchub/files/opendchub-0.8.2-telnet.patch
+++ b/net-p2p/opendchub/files/opendchub-0.8.2-telnet.patch
@@ -1,5 +1,5 @@
---- opendchub-0.8.2/src/main.c.orig
-+++ opendchub-0.8.2/src/main.c
+--- a/src/main.c
++++ b/src/main.c
 @@ -1073,7 +1073,7 @@
             /* The chat command, starts with <nick> */
             else if(*temp == '<')

diff --git a/net-p2p/opendchub/opendchub-0.8.2.ebuild 
b/net-p2p/opendchub/opendchub-0.8.2.ebuild
index 0e6df905951..047e913aefc 100644
--- a/net-p2p/opendchub/opendchub-0.8.2.ebuild
+++ b/net-p2p/opendchub/opendchub-0.8.2.ebuild
@@ -1,9 +1,9 @@
 # Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
+EAPI=7
 
-inherit autotools eutils flag-o-matic
+inherit autotools flag-o-matic
 
 DESCRIPTION="hub software for Direct Connect"
 HOMEPAGE="http://opendchub.sf.net";
@@ -17,34 +17,33 @@ IUSE="perl"
 RDEPEND="perl? ( dev-lang/perl )"
 DEPEND="${RDEPEND}"
 
-DOCS="NEWS TODO README AUTHORS Documentation/*"
+PATCHES=( "${FILESDIR}"/${P}-telnet.patch )
 
 src_prepare() {
-       epatch "${FILESDIR}"/${P}-telnet.patch
+       default
        eautoreconf
 }
 
 src_configure() {
-       add-flags -fcommon
+       append-cflags -fcommon
        use perl || myconf="--disable-perl --enable-switch_user"
        econf ${myconf}
 }
 
 src_install() {
        default
+       dodoc -r Documentation/.
 
-       if use perl ; then
+       if use perl; then
                dobin "${FILESDIR}"/opendchub_setup.sh
                insinto /usr/share/opendchub/scripts
-               doins Samplescripts/*
+               doins -r Samplescripts/.
        fi
 }
 
 pkg_postinst() {
        if use perl ; then
-               echo
                einfo "To set up perl scripts for opendchub to use, please run"
                einfo "opendchub_setup.sh as the user you will be using 
opendchub as."
-               echo
        fi
 }

Reply via email to