summaryrefslogtreecommitdiff
path: root/lang/ratfor
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2000-08-27 06:16:37 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2000-08-27 06:16:37 +0000
commit277f8e68fff20cbf5fd86c7b47df528d655d7551 (patch)
tree100a0a051098788413e8ac7d4bf86157f3833ca3 /lang/ratfor
parentPKGNAMEPREFIX cleanup. This should allow chained PKGNAMEPREFIX'es. (diff)
The Ratfor FORTRAN pre-processor described in the "SOFTWARE TOOLS" book.
Notes
Notes: svn path=/head/; revision=32030
Diffstat (limited to 'lang/ratfor')
-rw-r--r--lang/ratfor/Makefile33
-rw-r--r--lang/ratfor/distinfo2
-rw-r--r--lang/ratfor/files/patch-rat4.c21
-rw-r--r--lang/ratfor/pkg-comment1
-rw-r--r--lang/ratfor/pkg-descr4
-rw-r--r--lang/ratfor/pkg-plist3
6 files changed, 64 insertions, 0 deletions
diff --git a/lang/ratfor/Makefile b/lang/ratfor/Makefile
new file mode 100644
index 000000000000..3976211b6bba
--- /dev/null
+++ b/lang/ratfor/Makefile
@@ -0,0 +1,33 @@
+# ex:ts=8
+# Ports collection makefile for: ratfor
+# Date created: Sat Aug 26, 2000
+# Whom: David O'Brien (obrien@NUXI.com)
+#
+# $FreeBSD$
+#
+
+PORTNAME= ratfor
+PORTVERSION= 1985.06
+CATEGORIES= lang
+MASTER_SITES= http://sepwww.stanford.edu/sep/prof/
+DISTFILES= ratfor.shar.2 local.ratfor77.shar
+
+MAINTAINER= obrien@FreeBSD.org
+
+NO_WRKSUBDIR= yes
+EXTRACT_CMD= ${CAT}
+EXTRACT_BEFORE_ARGS=
+EXTRACT_AFTER_ARGS= | ${SH}
+#USE_GMAKE= yes
+ALL_TARGET= all tests
+MAN1= ratfor.1
+
+post-patch:
+ @cd ${WRKSRC} ; ${PATCH} --quiet < testw.patch
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/ratfor77 ${PREFIX}/bin
+ cd ${PREFIX}/bin ; ${LN} -sf ratfor77 ratfor
+ ${INSTALL_MAN} ${WRKSRC}/ratfor.1 ${PREFIX}/man/man1
+
+.include <bsd.port.mk>
diff --git a/lang/ratfor/distinfo b/lang/ratfor/distinfo
new file mode 100644
index 000000000000..cb8d65b1a051
--- /dev/null
+++ b/lang/ratfor/distinfo
@@ -0,0 +1,2 @@
+MD5 (ratfor.shar.2) = eba078c5a787cc1f643ea719dbfa2514
+MD5 (local.ratfor77.shar) = 05683439378ccf409ddc9c5ce6f27677
diff --git a/lang/ratfor/files/patch-rat4.c b/lang/ratfor/files/patch-rat4.c
new file mode 100644
index 000000000000..cac067983526
--- /dev/null
+++ b/lang/ratfor/files/patch-rat4.c
@@ -0,0 +1,21 @@
+--- rat4.c.orig Wed Mar 20 16:58:50 1996
++++ rat4.c Sat Aug 26 22:58:11 2000
+@@ -36,2 +36,3 @@
+ #include <stdio.h>
++#include <unistd.h>
+
+@@ -162,3 +163,3 @@
+
+- while ((c=our_getopt(argc, argv, "Chn:o:6:")) != EOF)
++ while ((c=getopt(argc, argv, "Chl:n:o:6:")) != EOF)
+ switch (c) {
+@@ -193,6 +194,6 @@
+ */
+- if (optind77 >= argc)
++ if (optind >= argc)
+ infile[0] = stdin;
+- else if ((infile[0] = fopen(argv[optind77], "r")) == NULL)
+- error("cannot read %s\n", argv[optind77]);
++ else if ((infile[0] = fopen(argv[optind], "r")) == NULL)
++ error("cannot read %s\n", argv[optind]);
+
diff --git a/lang/ratfor/pkg-comment b/lang/ratfor/pkg-comment
new file mode 100644
index 000000000000..6afaaaecf99b
--- /dev/null
+++ b/lang/ratfor/pkg-comment
@@ -0,0 +1 @@
+Ratfor -- the Ration FORTRAN compiler
diff --git a/lang/ratfor/pkg-descr b/lang/ratfor/pkg-descr
new file mode 100644
index 000000000000..09b47a35b5fd
--- /dev/null
+++ b/lang/ratfor/pkg-descr
@@ -0,0 +1,4 @@
+This is a C version of Ratfor, derived from a UofA Ratfor in Ratfor rather
+than the AT&T Ratfor source. It closely corresponds to the pre-processor
+described in the "SOFTWARE TOOLS" book, and also produces FORTRAN77 code
+as well as FORTRAN 66.
diff --git a/lang/ratfor/pkg-plist b/lang/ratfor/pkg-plist
new file mode 100644
index 000000000000..e4e5c8bd39f4
--- /dev/null
+++ b/lang/ratfor/pkg-plist
@@ -0,0 +1,3 @@
+@comment $FreeBSD$
+bin/ratfor
+bin/ratfor77