dev-vcs/rcsi: Port to EAPI 7
authorDavid Seifert <soap@gentoo.org>
Sun, 22 Dec 2019 12:41:12 +0000 (13:41 +0100)
committerDavid Seifert <soap@gentoo.org>
Sun, 22 Dec 2019 12:41:12 +0000 (13:41 +0100)
Package-Manager: Portage-2.3.81, Repoman-2.3.20
Signed-off-by: David Seifert <soap@gentoo.org>
dev-vcs/rcsi/files/rcsi-0.5-makefile.patch [new file with mode: 0644]
dev-vcs/rcsi/rcsi-0.5.ebuild

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 (file)
index 0000000..bf5a3d3
--- /dev/null
@@ -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
index cd4a10ad87e1ff88f7bfa2a35b9eecad7376b26c..72d00168b4573d9ee02067621f405b6786f49ffd 100644 (file)
@@ -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
 }