diff options
author | obrien <obrien@FreeBSD.org> | 2000-08-27 14:16:37 +0800 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2000-08-27 14:16:37 +0800 |
commit | ea728599392a805f3dfef8d138c0c89d80849a09 (patch) | |
tree | cd26bead0ba0fac5ff6eaf823d4ef72c9d542c41 | |
parent | ba3f4c168bdcec8c57c710d39e08ba5911f1df12 (diff) | |
download | freebsd-ports-gnome-ea728599392a805f3dfef8d138c0c89d80849a09.tar.gz freebsd-ports-gnome-ea728599392a805f3dfef8d138c0c89d80849a09.tar.zst freebsd-ports-gnome-ea728599392a805f3dfef8d138c0c89d80849a09.zip |
The Ratfor FORTRAN pre-processor described in the "SOFTWARE TOOLS" book.
-rw-r--r-- | lang/ratfor/Makefile | 33 | ||||
-rw-r--r-- | lang/ratfor/distinfo | 2 | ||||
-rw-r--r-- | lang/ratfor/files/patch-rat4.c | 21 | ||||
-rw-r--r-- | lang/ratfor/pkg-comment | 1 | ||||
-rw-r--r-- | lang/ratfor/pkg-descr | 4 | ||||
-rw-r--r-- | lang/ratfor/pkg-plist | 3 |
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 |