here is a reviewed diff with my tweaks included,
both editline and readline flavors builds and runs fine.
also I added license mark that was missing.
? rc-1.7.4.diff
Index: Makefile
===================================================================
RCS file: /cvs/ports/plan9/rc/Makefile,v
retrieving revision 1.22
diff -u -p -u -p -r1.22 Makefile
--- Makefile    21 Mar 2015 21:28:27 -0000      1.22
+++ Makefile    24 Sep 2015 18:20:40 -0000
@@ -2,16 +2,16 @@
 
 COMMENT=       shell (clone of plan9 shell)
 
-DISTNAME=      rc-1.6
-REVISION=      1
+DISTNAME=      rc-1.7.4
 CATEGORIES=    plan9 shells
-MASTER_SITES=  http://www.star.le.ac.uk/~tjg/rc/release/ \
-               ftp://ftp.sys.toronto.edu/pub/rc/
-MASTER_SITES0= http://www.star.le.ac.uk/~tjg/rc/misc/
+MASTER_SITES=  http://static.tobold.org/rc/
 SUPDISTFILES=  editline-1.5.tar.gz:0
 
-MAINTAINER=    Markus Friedl <mar...@openbsd.org>
+HOMEPAGE=      http://tobold.org/article/rc
 
+MAINTAINER=    Michael Reed <m.r...@mykolab.com>
+
+# zlib license
 PERMIT_PACKAGE_CDROM=  Yes
 
 WANTLIB=               c
@@ -25,20 +25,15 @@ FLAVOR?=
 
 TEST_TARGET= trip
 
-.if defined(WITH_READLINE) && ${WITH_READLINE:U} == YES
-FLAVOR+=readline
-.elif defined(WITH_EDITLINE) && ${WITH_EDITLINE:U} == YES
-FLAVOR+=editline
-.endif
-
 .if ${FLAVOR} == "readline"
-CONFIGURE_ARGS+= --with-readline
+CONFIGURE_ARGS+= --with-edit=readline
 WANTLIB+=              readline termcap
 .elif ${FLAVOR} == "editline"
 DISTFILES=     ${DISTNAME}.tar.gz editline-1.5.tar.gz:0
 EDITLINE=      ${WRKSRC}/../editline
-CONFIGURE_ARGS+= --with-editline
-CONFIGURE_ENV= LIBS="-L${EDITLINE}"
+CONFIGURE_ARGS+= --with-edit=edit
+CONFIGURE_ENV= LIBS+="-L${EDITLINE}"
+WANTLIB += edit termcap
 .endif
 
 .if ${FLAVOR} == "editline"
Index: distinfo
===================================================================
RCS file: /cvs/ports/plan9/rc/distinfo,v
retrieving revision 1.6
diff -u -p -u -p -r1.6 distinfo
--- distinfo    18 Jan 2015 03:14:56 -0000      1.6
+++ distinfo    24 Sep 2015 18:20:40 -0000
@@ -1,4 +1,4 @@
 SHA256 (editline-1.5.tar.gz) = gMtItn8V0KTaYqEGbSXSYHCRCWhzZV3IkTvmcf+Nhfo=
-SHA256 (rc-1.6.tar.gz) = 1ufjnDlU4FC4QUkaYzg2PEvyGqX4Stamiuv/+Qpi1/A=
+SHA256 (rc-1.7.4.tar.gz) = XtJjNN0MGmFiSLFa18kMpniuMGb6AsXd0OaTb5r5v9g=
 SIZE (editline-1.5.tar.gz) = 13823
-SIZE (rc-1.6.tar.gz) = 139914
+SIZE (rc-1.7.4.tar.gz) = 215206
Index: patches/patch-configure
===================================================================
RCS file: patches/patch-configure
diff -N patches/patch-configure
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-configure     24 Sep 2015 18:20:40 -0000
@@ -0,0 +1,12 @@
+$OpenBSD$
+--- configure.orig     Wed Aug 26 16:57:31 2015
++++ configure  Wed Aug 26 16:57:45 2015
+@@ -2224,7 +2224,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
+ 
+ 
+ 
+-RELDATE=`date -I`
++RELDATE=`date +%Y-%m-%d`
+ 
+ cat >>confdefs.h <<_ACEOF
+ #define RELDATE "$RELDATE"
\ No newline at end of file
Index: patches/patch-print_c
===================================================================
RCS file: /cvs/ports/plan9/rc/patches/patch-print_c,v
retrieving revision 1.3
diff -u -p -u -p -r1.3 patch-print_c
--- patches/patch-print_c       15 May 2003 03:25:56 -0000      1.3
+++ patches/patch-print_c       24 Sep 2015 18:20:40 -0000
@@ -1,12 +0,0 @@
-$OpenBSD: patch-print_c,v 1.3 2003/05/15 03:25:56 markus Exp $
---- print.c.orig       Wed Nov 20 21:42:09 2002
-+++ print.c    Wed Nov 20 21:42:50 2002
-@@ -103,8 +103,6 @@ static void intconv(Format *format, unsi
- 
-       if (flags & FMT_long)
-               n = va_arg(format->args, long);
--      else if (flags & FMT_short)
--              n = va_arg(format->args, short);
-       else
-               n = va_arg(format->args, int);
- 
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/plan9/rc/pkg/PLIST,v
retrieving revision 1.4
diff -u -p -u -p -r1.4 PLIST
--- pkg/PLIST   9 Aug 2013 23:17:56 -0000       1.4
+++ pkg/PLIST   24 Sep 2015 18:20:40 -0000
@@ -1,8 +1,8 @@
 @comment $OpenBSD: PLIST,v 1.4 2013/08/09 23:17:56 landry Exp $
-bin/-
-bin/--
-bin/--p
-bin/-p
+@bin bin/-
+@bin bin/--
+@bin bin/--p
+@bin bin/-p
 @shell bin/rc
 @man man/man1/history.1
 @man man/man1/rc.1

Reply via email to