summaryrefslogtreecommitdiff
path: root/lang/p2c
diff options
context:
space:
mode:
Diffstat (limited to 'lang/p2c')
-rw-r--r--lang/p2c/Makefile54
-rw-r--r--lang/p2c/distinfo2
-rw-r--r--lang/p2c/files/patch-Makefile68
-rw-r--r--lang/p2c/files/patch-loc.p2clib.c45
-rw-r--r--lang/p2c/files/patch-makeproto.c19
-rw-r--r--lang/p2c/files/patch-p2clib.c29
-rw-r--r--lang/p2c/files/patch-trans.c29
-rw-r--r--lang/p2c/files/patch-trans.h13
-rw-r--r--lang/p2c/pkg-descr21
-rw-r--r--lang/p2c/pkg-plist11
10 files changed, 0 insertions, 291 deletions
diff --git a/lang/p2c/Makefile b/lang/p2c/Makefile
deleted file mode 100644
index c12684e0121d..000000000000
--- a/lang/p2c/Makefile
+++ /dev/null
@@ -1,54 +0,0 @@
-# Created by: jmz
-# $FreeBSD$
-
-PORTNAME= p2c
-PORTVERSION= 2.01
-CATEGORIES= lang
-MASTER_SITES= https://schneider.ncifcrf.gov/p2c/
-
-MAINTAINER= ports@FreeBSD.org
-COMMENT= Pascal to C translator
-
-LICENSE= GPLv2
-
-BROKEN= unfetchable
-DEPRECATED= Unfetchable, unmaintained
-EXPIRATION_DATE= 2019-10-16
-
-WRKSRC_SUBDIR= src
-
-BROKEN_aarch64= Fails to link: missing sbrk
-
-USES= perl5 ncurses shebangfix
-SHEBANG_FILES= p2cc.perl
-perl_OLD_CMD= /bin/perl
-USE_PERL5= run
-ALL_TARGET= all p2cc
-
-pre-build:
- @${RM} ${WRKSRC}/p2c.man.inst
-
-post-build:
- @${LN} -sf p2c.man.inst ${WRKSRC}/p2c.1
-
-do-install:
- (cd ${WRKSRC} && ${INSTALL_PROGRAM} p2c \
- ${STAGEDIR}${PREFIX}/bin)
- (cd ${WRKSRC} && ${INSTALL_SCRIPT} p2cc \
- ${STAGEDIR}${PREFIX}/bin)
- (cd ${WRKSRC} && ${INSTALL_DATA} libp2c.a \
- ${STAGEDIR}${PREFIX}/lib)
- @${MKDIR} ${STAGEDIR}${PREFIX}/include/p2c
- (cd ${WRKSRC} && ${INSTALL_DATA} p2c.h \
- ${STAGEDIR}${PREFIX}/include/p2c)
- @${MKDIR} ${STAGEDIR}${PREFIX}/lib/p2c
- (cd ${WRKSRC} && ${INSTALL_DATA} sys.p2crc \
- ${STAGEDIR}${PREFIX}/lib/p2c/p2crc)
-.for i in loc.p2crc system.imp system.m2 turbo.imp string.pas
- (cd ${WRKSRC} && ${INSTALL_DATA} ${i} \
- ${STAGEDIR}${PREFIX}/lib/p2c)
-.endfor
- (cd ${WRKSRC} && ${INSTALL_MAN} p2c.1 \
- ${STAGEDIR}${MANPREFIX}/man/man1)
-
-.include <bsd.port.mk>
diff --git a/lang/p2c/distinfo b/lang/p2c/distinfo
deleted file mode 100644
index 712bdc84560c..000000000000
--- a/lang/p2c/distinfo
+++ /dev/null
@@ -1,2 +0,0 @@
-SHA256 (p2c-2.01.tar.gz) = a05635e6b0b40bee9617771ba628deefae13369cd7d49bb880cc8590495fcf60
-SIZE (p2c-2.01.tar.gz) = 586605
diff --git a/lang/p2c/files/patch-Makefile b/lang/p2c/files/patch-Makefile
deleted file mode 100644
index 562622e162a5..000000000000
--- a/lang/p2c/files/patch-Makefile
+++ /dev/null
@@ -1,68 +0,0 @@
---- Makefile.orig 2015-11-18 20:12:06 UTC
-+++ Makefile
-@@ -19,29 +19,30 @@
- SHELL = /bin/sh
-
- # Directories (private version)
--HOMEDIR = ../home
--INCDIR = ../home/p2c
--BINDIR = ..
--LIBDIR = ../home
--MANDIR = ../home
--MANFILE = p2c.cat # human-readable manual (for cat.1)
-+#HOMEDIR = ../home
-+#INCDIR = ../home/p2c
-+#BINDIR = ..
-+#LIBDIR = ../home
-+#MANDIR = ../home
-+#MANFILE = p2c.cat # human-readable manual (for cat.1)
- #MANFILE = p2c.man.inst # uncompressed nroff source (for man.1)
- #MANFILE = p2c.man.Z # compressed nroff source (for man.1.Z)
-
- # Directories (public version)
--#HOMEDIR = /usr/lib/p2c
--#INCDIR = /usr/include/p2c
--#BINDIR = /usr/bin
--#LIBDIR = /usr/lib
--#MANDIR = /usr/man/man1
--#MANFILE = p2c.man.inst
-+PREFIX ?= /usr/local
-+HOMEDIR = $(PREFIX)/lib/p2c
-+INCDIR = $(PREFIX)/include/p2c
-+BINDIR = $(PREFIX)/bin
-+LIBDIR = $(PREFIX)/lib
-+MANDIR = $(PREFIX)/man/man1
-+MANFILE = p2c.man.inst
-
- # Compiler options
--CC = cc # you may wish to use gcc here instead
-+CC ?= cc # you may wish to use gcc here instead
- OPT = # -O # uncomment this for optimization
- DEB = # -g # uncomment this for debugging
- DEFS = -DTEST_MALLOC # place other -D types of things here # TDS 2015nov18
--CFLAGS = $(OPT) $(DEB) $(DEFS)
-+CFLAGS += $(OPT) $(DEB) $(DEFS)
- LFLAGS =
-
-
-@@ -64,9 +65,9 @@ LIBSRCS = p2clib.c loc.p2clib.c
- LIBOBJS = p2clib.o loc.p2clib.o
- OTHERLIBOBJS =
-
--ABSHOMEDIR = `cd $(HOMEDIR); pwd`
--ABSINCDIR = `cd $(INCDIR); pwd`
--ABSLIBDIR = `cd $(LIBDIR); pwd`
-+ABSHOMEDIR = $(HOMEDIR)
-+ABSINCDIR = $(INCDIR)
-+ABSLIBDIR = $(LIBDIR)
-
- MISCSRCS = makeproto.c
- PROTOS = p2c.proto p2c.hdrs
-@@ -128,7 +129,6 @@ p2cc: p2cc.perl
- sed -e "s;--HOMEDIR--;$(ABSHOMEDIR);" \
- -e "s;--INCDIR--;$(ABSINCDIR);" \
- -e "s;--LIBDIR--;$(ABSLIBDIR);" \
-- -e "s;/bin/perl;`which perl`;" \
- p2cc.perl >p2cc
- chmod a+x p2cc
-
diff --git a/lang/p2c/files/patch-loc.p2clib.c b/lang/p2c/files/patch-loc.p2clib.c
deleted file mode 100644
index 459f39be668c..000000000000
--- a/lang/p2c/files/patch-loc.p2clib.c
+++ /dev/null
@@ -1,45 +0,0 @@
---- loc.p2clib.c.orig 1993-12-08 05:36:53 UTC
-+++ loc.p2clib.c
-@@ -4,3 +4,42 @@
- * the symbol LOCAL_INIT when you compile p2clib.c.
- */
-
-+/* Some Turbo "unit crt" functions. */
-+
-+#include <curses.h>
-+#include <term.h>
-+
-+static int terminfo_initialized;
-+static char *cl, *ce;
-+
-+static void initcurs()
-+{
-+ if (terminfo_initialized)
-+ return;
-+ setupterm(0, fileno(stdout), 0);
-+ ce = tgetstr("ce", 0);
-+ cl = tgetstr("cl", 0);
-+ terminfo_initialized = 1;
-+}
-+
-+void clreol()
-+{
-+ initcurs();
-+ if (ce)
-+ tputs(ce, 1, putchar);
-+}
-+
-+void clrscr()
-+{
-+ initcurs();
-+ if (cl)
-+ tputs(cl, 1, putchar);
-+}
-+
-+void delay(ms)
-+int ms;
-+{
-+ usleep(1000 * ms);
-+}
-+
-+
diff --git a/lang/p2c/files/patch-makeproto.c b/lang/p2c/files/patch-makeproto.c
deleted file mode 100644
index 83553724a374..000000000000
--- a/lang/p2c/files/patch-makeproto.c
+++ /dev/null
@@ -1,19 +0,0 @@
---- makeproto.c.orig 1993-12-08 05:36:53 UTC
-+++ makeproto.c
-@@ -7,6 +7,7 @@
-
-
- #include <stdio.h>
-+#include <stdlib.h>
- #include <ctype.h>
- #include <time.h>
-
-@@ -157,7 +158,7 @@ char **argv;
- char argdecls[MAXARGS][256], argnames[MAXARGS][80];
- char *cp, *cp2, *cp3;
- int i, j, pos, len, thistab, numstars, whichf, nargs, incomment, errors = 0;
-- long li;
-+ time_t li;
- int typetab = 15, argtab = 30, width = 80, usenames = 0, usemacros = 0;
- int useextern = 0, staticness = -1, hasheader = 0, useifdefs = 0;
- int stupid = 1, firstdecl;
diff --git a/lang/p2c/files/patch-p2clib.c b/lang/p2c/files/patch-p2clib.c
deleted file mode 100644
index 6dc610d40bd3..000000000000
--- a/lang/p2c/files/patch-p2clib.c
+++ /dev/null
@@ -1,29 +0,0 @@
---- p2clib.c.orig 1993-12-08 05:36:53 UTC
-+++ p2clib.c
-@@ -890,7 +890,7 @@ int *Day, *Month, *Year, *Hour, *Min, *S
- {
- #ifndef NO_TIME
- struct tm *tm;
-- long clock;
-+ time_t clock;
-
- time(&clock);
- tm = localtime(&clock);
-@@ -908,7 +908,7 @@ int *Day, *Month, *Year, *Hour, *Min, *S
- Void VAXdate(s)
- char *s;
- {
-- long clock;
-+ time_t clock;
- char *c;
- int i;
- static int where[] = {8, 9, 0, 4, 5, 6, 0, 20, 21, 22, 23};
-@@ -924,7 +924,7 @@ char *s;
- Void VAXtime(s)
- char *s;
- {
-- long clock;
-+ time_t clock;
- char *c;
- int i;
-
diff --git a/lang/p2c/files/patch-trans.c b/lang/p2c/files/patch-trans.c
deleted file mode 100644
index 797361ba68bf..000000000000
--- a/lang/p2c/files/patch-trans.c
+++ /dev/null
@@ -1,29 +0,0 @@
---- trans.c.orig 2015-10-02 17:52:53 UTC
-+++ trans.c
-@@ -23,6 +23,8 @@ the Free Software Foundation, Inc., 675
- #include "trans.h"
-
- #include <time.h>
-+#include <sys/types.h>
-+#include <unistd.h>
-
-
-
-@@ -575,7 +577,7 @@ extern char *getenv PP((char *));
- # endif
- #endif
-
--Static long starting_time;
-+Static time_t starting_time;
-
- Static void openlogfile()
- {
-@@ -608,7 +610,7 @@ Static void openlogfile()
-
- void closelogfile()
- {
-- long ending_time;
-+ time_t ending_time;
-
- if (logfile) {
- fprintf(logfile, "\n\n");
diff --git a/lang/p2c/files/patch-trans.h b/lang/p2c/files/patch-trans.h
deleted file mode 100644
index f5dab9734783..000000000000
--- a/lang/p2c/files/patch-trans.h
+++ /dev/null
@@ -1,13 +0,0 @@
---- trans.h.orig 2015-10-05 23:04:46 UTC
-+++ trans.h
-@@ -1863,8 +1863,10 @@ extern Expr *new_array_size;
-
- /* Our library omits declarations for these functions! */
-
-+#if !defined(__FreeBSD__) && !defined(__DragonFly__)
- int link PP( (char *, char *) );
- int unlink PP( (char *) );
-+#endif
-
-
-
diff --git a/lang/p2c/pkg-descr b/lang/p2c/pkg-descr
deleted file mode 100644
index 80eb1e0e0bca..000000000000
--- a/lang/p2c/pkg-descr
+++ /dev/null
@@ -1,21 +0,0 @@
-P2c is a tool for translating Pascal programs into C. The input consists
-of a set of source files in any of the following Pascal dialects: HP
-Pascal, Turbo/UCSD Pascal, DEC VAX Pascal, Oregon Software Pascal/2,
-Macintosh Programmer's Workshop Pascal, Sun/Berkeley Pascal, Texas
-Instruments Pascal, Apollo Domain Pascal. Modula-2 syntax is also
-supported. Output is a set of .c and .h files that comprise an
-equivalent program in any of several dialects of C. Output code may be
-kept machine- and dialect independent, or it may be targeted to a
-specific machine and compiler. Most reasonable Pascal programs are
-converted into fully functional C which will compile and run with no
-further modifications, although p2c sometimes chooses to generate
-readable code at the expense of absolute generality. P2c endeavors to
-insert notes and warning messages into the output code to point out
-areas which may require human intervention. Output code is arranged to
-be readable and efficient, and to make use of C idioms wherever
-possible. The main goal of the translation is to produce C files which
-are pleasant and "natural" enough to be acceptable as the new source
-files for a program. In a pinch, p2c will also serve as an ad hoc Pascal
-compiler. The p2cc script makes it easy to use p2c as a compiler.
-
-WWW: https://schneider.ncifcrf.gov/p2c/
diff --git a/lang/p2c/pkg-plist b/lang/p2c/pkg-plist
deleted file mode 100644
index 39bbd4b1ed96..000000000000
--- a/lang/p2c/pkg-plist
+++ /dev/null
@@ -1,11 +0,0 @@
-bin/p2c
-bin/p2cc
-include/p2c/p2c.h
-lib/libp2c.a
-lib/p2c/loc.p2crc
-lib/p2c/p2crc
-lib/p2c/string.pas
-lib/p2c/system.imp
-lib/p2c/system.m2
-lib/p2c/turbo.imp
-man/man1/p2c.1.gz