commit:     03628e256f8f400d4f11ee80b25758a2b1828015
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Sun Dec 22 12:41:12 2019 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sun Dec 22 12:41:12 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=03628e25

dev-vcs/rcsi: Port to EAPI 7

Package-Manager: Portage-2.3.81, Repoman-2.3.20
Signed-off-by: David Seifert <soap <AT> gentoo.org>

 dev-vcs/rcsi/files/rcsi-0.5-makefile.patch | 12 ++++++++++++
 dev-vcs/rcsi/rcsi-0.5.ebuild               | 19 +++++++++++--------
 2 files changed, 23 insertions(+), 8 deletions(-)

diff --git a/dev-vcs/rcsi/files/rcsi-0.5-makefile.patch 
b/dev-vcs/rcsi/files/rcsi-0.5-makefile.patch
new file mode 100644
index 00000000000..bf5a3d329ee
--- /dev/null
+++ b/dev-vcs/rcsi/files/rcsi-0.5-makefile.patch
@@ -0,0 +1,12 @@
+--- a/Makefile
++++ b/Makefile
+@@ -38,9 +38,6 @@
+ #     Later ones are for the various architectures that I have
+ #     successfully tested 'rcsi' on.
+ 
+-rcsi  : rcsi.c
+-      gcc -Wall -O2 -Xlinker -s -o rcsi rcsi.c
+-
+ sunos : rcsi
+ 
+ solaris       irix osf1       : rcsi.c

diff --git a/dev-vcs/rcsi/rcsi-0.5.ebuild b/dev-vcs/rcsi/rcsi-0.5.ebuild
index cd4a10ad87e..72d00168b45 100644
--- a/dev-vcs/rcsi/rcsi-0.5.ebuild
+++ b/dev-vcs/rcsi/rcsi-0.5.ebuild
@@ -1,7 +1,8 @@
-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=4
+EAPI=7
+
 inherit toolchain-funcs
 
 DESCRIPTION="A program to give information about RCS files"
@@ -11,20 +12,22 @@ 
SRC_URI="http://www.colinbrough.pwp.blueyonder.co.uk/${P}.tar.gz";
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="~amd64 ~ppc ~x86"
-IUSE=""
 
-DEPEND="sys-apps/sed"
 RDEPEND=">=dev-vcs/rcs-5.7-r2"
 
 S=${WORKDIR}/${PN}
 
-src_compile() {
-       $(tc-getCC) $CFLAGS $LDFLAGS rcsi.c -o rcsi || die "Compile failed"
+PATCHES=( "${FILESDIR}"/${P}-makefile.patch )
+
+src_configure() {
+       tc-export CC
 }
 
 src_install() {
        dobin rcsi
-       doman rcsi.1
+
        dodoc README
-       dohtml README.html example{1,2}.png
+       docinto html
+       dodoc README.html example{1,2}.png
+       doman rcsi.1
 }

Reply via email to