From 89840814b3dd12ab96313f5e2c2bca608e9a077e Mon Sep 17 00:00:00 2001 From: Automaton Date: Tue, 11 Dec 2012 13:56:05 +0100 Subject: [PATCH] Import devel/fortran-utils version 1.1 --- devel/fortran-utils/Makefile | 23 ++++++++ devel/fortran-utils/distinfo | 2 + devel/fortran-utils/files/patch-fpr.c | 83 +++++++++++++++++++++++++++ devel/fortran-utils/pkg-descr | 10 ++++ devel/fortran-utils/pkg-plist | 2 + 5 files changed, 120 insertions(+) create mode 100644 devel/fortran-utils/Makefile create mode 100644 devel/fortran-utils/distinfo create mode 100644 devel/fortran-utils/files/patch-fpr.c create mode 100644 devel/fortran-utils/pkg-descr create mode 100644 devel/fortran-utils/pkg-plist diff --git a/devel/fortran-utils/Makefile b/devel/fortran-utils/Makefile new file mode 100644 index 00000000000..810f51063bc --- /dev/null +++ b/devel/fortran-utils/Makefile @@ -0,0 +1,23 @@ +# Created by: kris@FreeBSD.org +# $FreeBSD: ports/devel/fortran-utils/Makefile,v 1.9 2012/12/03 09:55:25 svnexp Exp $ + +PORTNAME= fortran-utils +PORTVERSION= 1.1 +CATEGORIES= devel +MASTER_SITES= ${MASTER_SITE_LOCAL} +MASTER_SITE_SUBDIR= kris + +MAINTAINER= ports@FreeBSD.org +COMMENT= Tools for use with Fortran code, from 4.4BSD + +WRKSRC= ${WRKDIR}/fortran-utils + +MAN1= fpr.1 fsplit.1 + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/fpr/fpr ${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKSRC}/fsplit/fsplit ${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/fpr/fpr.1 ${PREFIX}/man/man1 + ${INSTALL_MAN} ${WRKSRC}/fsplit/fsplit.1 ${PREFIX}/man/man1 + +.include diff --git a/devel/fortran-utils/distinfo b/devel/fortran-utils/distinfo new file mode 100644 index 00000000000..bec47e3201e --- /dev/null +++ b/devel/fortran-utils/distinfo @@ -0,0 +1,2 @@ +SHA256 (fortran-utils-1.1.tar.gz) = 0b42a5d46f0af9e2cdd122193e7a35eef1e1adf09bd298613e0c3d6532bc4cfa +SIZE (fortran-utils-1.1.tar.gz) = 7566 diff --git a/devel/fortran-utils/files/patch-fpr.c b/devel/fortran-utils/files/patch-fpr.c new file mode 100644 index 00000000000..7b6cb76e7a0 --- /dev/null +++ b/devel/fortran-utils/files/patch-fpr.c @@ -0,0 +1,83 @@ +--- fpr/fpr.c.orig 1994-05-27 14:31:21.000000000 +0200 ++++ fpr/fpr.c 2012-12-03 10:50:48.000000000 +0100 +@@ -45,6 +45,7 @@ + #endif /* not lint */ + + #include ++#include + + #define BLANK ' ' + #define TAB '\t' +@@ -80,12 +81,13 @@ + int maxpos; + int maxcol; + +-extern char *malloc(); +-extern char *calloc(); +-extern char *realloc(); +- +- ++void init(); ++void mygettext(); ++void flush(); ++void savech(int); ++void nospace(); + ++int + main() + { + register int ch; +@@ -124,7 +126,7 @@ + + while ( ! ateof) + { +- gettext(); ++ mygettext(); + ch = getchar(); + if (ch == EOF) + { +@@ -176,6 +178,7 @@ + + + ++void + init() + { + register COLUMN *cp; +@@ -210,7 +213,8 @@ + + + +-gettext() ++void ++mygettext() + { + register int i; + register char ateol; +@@ -283,8 +287,8 @@ + + + +-savech(col) +-int col; ++void ++savech(int col) + { + register char ch; + register int oldmax; +@@ -340,6 +344,7 @@ + + + ++void + flush() + { + register int i; +@@ -403,6 +408,7 @@ + + + ++void + nospace() + { + fputs("Storage limit exceeded.\n", stderr); diff --git a/devel/fortran-utils/pkg-descr b/devel/fortran-utils/pkg-descr new file mode 100644 index 00000000000..77ee9badc64 --- /dev/null +++ b/devel/fortran-utils/pkg-descr @@ -0,0 +1,10 @@ +Tools for use with Fortran programs, formerly part of FreeBSD (inherited +from 4.4BSD). + +Contains: + +fpr(1) -- a filter that transforms files formatted according to Fortran's +carriage control conventions into files formatted according to UNIX line +printer conventions + +fsplit(1) -- split a multi-routine Fortran file into individual files diff --git a/devel/fortran-utils/pkg-plist b/devel/fortran-utils/pkg-plist new file mode 100644 index 00000000000..4b63255d18c --- /dev/null +++ b/devel/fortran-utils/pkg-plist @@ -0,0 +1,2 @@ +bin/fpr +bin/fsplit -- 2.41.0