diff options
Diffstat (limited to 'devel/cbind')
-rw-r--r-- | devel/cbind/Makefile | 33 | ||||
-rw-r--r-- | devel/cbind/distinfo | 2 | ||||
-rw-r--r-- | devel/cbind/files/patch-Makefile | 22 | ||||
-rw-r--r-- | devel/cbind/files/patch-allocate.c | 11 | ||||
-rw-r--r-- | devel/cbind/files/patch-buffer.c | 11 | ||||
-rw-r--r-- | devel/cbind/files/patch-cbind.c | 11 | ||||
-rw-r--r-- | devel/cbind/files/patch-cdep.c | 10 | ||||
-rw-r--r-- | devel/cbind/files/patch-errors.c | 115 | ||||
-rw-r--r-- | devel/cbind/files/patch-files.c | 18 | ||||
-rw-r--r-- | devel/cbind/files/patch-hostinfo | 11 | ||||
-rw-r--r-- | devel/cbind/files/patch-htype.c | 17 | ||||
-rw-r--r-- | devel/cbind/files/patch-nodeop.c | 87 | ||||
-rw-r--r-- | devel/cbind/files/patch-units.c | 10 | ||||
-rw-r--r-- | devel/cbind/pkg-descr | 12 | ||||
-rw-r--r-- | devel/cbind/pkg-plist | 6 |
15 files changed, 0 insertions, 376 deletions
diff --git a/devel/cbind/Makefile b/devel/cbind/Makefile deleted file mode 100644 index de5a359d07c9..000000000000 --- a/devel/cbind/Makefile +++ /dev/null @@ -1,33 +0,0 @@ -# Created by: David Holm <david@realityrift.com> -# $FreeBSD$ - -PORTNAME= cbind -PORTVERSION= 6 -CATEGORIES= devel -MASTER_SITES= ftp://ftp.cs.kuleuven.ac.be/pub/Ada-Belgium/cdrom/ase02_02/tools/cbind/ \ - ftp://ftp.cnam.fr/pub2/Ada/PAL/swtools/cbind/ -DISTNAME= ${PORTNAME}${PORTVERSION} - -MAINTAINER= ports@FreeBSD.org -COMMENT= Translator for "thin" Ada bindings to C - -OPTIONS_DEFINE= DOCS - -BROKEN= Does not fetch -DEPRECATED= Broken for more than 6 months -EXPIRATION_DATE= 2016-07-04 -USES= zip -MAKE_JOBS_UNSAFE= yes - -${WRKSRC}= ${WRKDIR}/${PORTNAME} - -do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/cbind ${STAGEDIR}${PREFIX}/bin - ${INSTALL_PROGRAM} ${WRKSRC}/cbfe ${STAGEDIR}${PREFIX}/bin - ${INSTALL_PROGRAM} ${WRKSRC}/cbpp ${STAGEDIR}${PREFIX}/bin - ${INSTALL_DATA} ${WRKSRC}/cbind.1 ${STAGEDIR}${PREFIX}/man/man1 - @${MKDIR} ${STAGEDIR}${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/DOCS ${STAGEDIR}${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} - -.include <bsd.port.mk> diff --git a/devel/cbind/distinfo b/devel/cbind/distinfo deleted file mode 100644 index 4e229fa36870..000000000000 --- a/devel/cbind/distinfo +++ /dev/null @@ -1,2 +0,0 @@ -SHA256 (cbind6.zip) = 206566d6981a100b7a9b0b7006eb87e6f11f5665a2ff97c6a917250b42d0b3ff -SIZE (cbind6.zip) = 101939 diff --git a/devel/cbind/files/patch-Makefile b/devel/cbind/files/patch-Makefile deleted file mode 100644 index fd9fc1f13a8d..000000000000 --- a/devel/cbind/files/patch-Makefile +++ /dev/null @@ -1,22 +0,0 @@ ---- Makefile.orig Fri Sep 22 12:21:32 1995 -+++ Makefile Sun Nov 5 13:48:50 2006 -@@ -1,8 +1,8 @@ - VERSION = 6 - --CFLAGS= -g -DPUBLIC -+CFLAGS+= -DPUBLIC - LIBS = --LINKER = cc -+LINKER = $(CC) - - MAKEFILE= Makefile - -@@ -139,7 +139,7 @@ - touch:; touch $(GENED_SRC) - - hostinfo.h: htype hostinfo -- hostinfo $@ -+ ./hostinfo $@ - - c_perf.c: c.prf - gperf -N c_rsvd -t -p c.prf > $@ diff --git a/devel/cbind/files/patch-allocate.c b/devel/cbind/files/patch-allocate.c deleted file mode 100644 index 8491e56be3b7..000000000000 --- a/devel/cbind/files/patch-allocate.c +++ /dev/null @@ -1,11 +0,0 @@ ---- allocate.c.orig Fri May 19 16:53:10 1995 -+++ allocate.c Mon Dec 23 08:38:17 2002 -@@ -4,7 +4,7 @@ - #include <sys/types.h> - #include <unistd.h> - #include <string.h> --#include <malloc.h> -+#include <stdlib.h> - #include "ansi.h" - #include "config.h" - #include "allocate.h" diff --git a/devel/cbind/files/patch-buffer.c b/devel/cbind/files/patch-buffer.c deleted file mode 100644 index 50d4cdcef34b..000000000000 --- a/devel/cbind/files/patch-buffer.c +++ /dev/null @@ -1,11 +0,0 @@ ---- buffer.c.orig Fri May 19 16:53:44 1995 -+++ buffer.c Mon Dec 23 08:38:17 2002 -@@ -5,7 +5,7 @@ - */ - - #include <sys/types.h> --#include <malloc.h> -+#include <stdlib.h> - #include "ansi.h" - #include "buffer.h" - #include "allocate.h" diff --git a/devel/cbind/files/patch-cbind.c b/devel/cbind/files/patch-cbind.c deleted file mode 100644 index 849a6650356a..000000000000 --- a/devel/cbind/files/patch-cbind.c +++ /dev/null @@ -1,11 +0,0 @@ ---- cbind.c.orig Fri May 19 17:17:06 1995 -+++ cbind.c Mon Dec 23 08:38:17 2002 -@@ -6,7 +6,7 @@ - #include <sys/types.h> - #include <string.h> - #include <unistd.h> --#include <malloc.h> -+#include <stdlib.h> - - #undef NULL - #define NULL 0 diff --git a/devel/cbind/files/patch-cdep.c b/devel/cbind/files/patch-cdep.c deleted file mode 100644 index 9b07e9d61eab..000000000000 --- a/devel/cbind/files/patch-cdep.c +++ /dev/null @@ -1,10 +0,0 @@ ---- cdep.c.orig Fri May 19 19:19:36 1995 -+++ cdep.c Mon Dec 23 08:38:17 2002 -@@ -12,6 +12,7 @@ - #include "cpp.h" - #include "cpp_hide.h" - #include "allocate.h" -+#include "host.h" - - #undef NULL - #define NULL 0 diff --git a/devel/cbind/files/patch-errors.c b/devel/cbind/files/patch-errors.c deleted file mode 100644 index dd7b990f1f61..000000000000 --- a/devel/cbind/files/patch-errors.c +++ /dev/null @@ -1,115 +0,0 @@ ---- errors.c.orig Fri Oct 28 19:44:44 1994 -+++ errors.c Sat Nov 4 22:03:45 2006 -@@ -1,5 +1,5 @@ - #include <stdio.h> --#include <varargs.h> -+#include <stdarg.h> - #include <errno.h> - - int Num_Errors; -@@ -33,75 +33,63 @@ - } - - void --fatal(f, l, fmt, va_alist) -- char *f, *fmt; -- int l; -- va_dcl -+fatal(char *f, int l, char *fmt, ...) - { -- va_list args; -+ va_list ap; - -- va_start(args); -+ va_start(ap, fmt); - - prefix(f,l,"Internal error"); -- vfprintf(stderr, fmt, args); -+ vfprintf(stderr, fmt, ap); - endmsg(); - -- va_end(args); -+ va_end(ap); - - exit(1); - } - - void --error(f, l, fmt, va_alist) -- char *f, *fmt; -- int l; -- va_dcl -+error(char *f, int l, char *fmt, ...) - { -- va_list args; -+ va_list ap; - -- va_start(args); -+ va_start(ap, fmt); - - Num_Errors++; - prefix(f,l,"Error"); -- vfprintf(stderr, fmt, args); -+ vfprintf(stderr, fmt, ap); - endmsg(); - -- va_end(args); -+ va_end(ap); - } - - void --warning(f, l, fmt, va_alist) -- char *f, *fmt; -- int l; -- va_dcl -+warning(char *f, int l, char *fmt, ...) - { -- va_list args; -+ va_list ap; - -- va_start(args); -+ va_start(ap, fmt); - - Num_Warnings++; - prefix(f,l,"Warning"); -- vfprintf(stderr, fmt, args); -+ vfprintf(stderr, fmt, ap); - endmsg(); - -- va_end(args); -+ va_end(ap); - } - - void --inform(f, l, fmt, va_alist) -- char *f, *fmt; -- int l; -- va_dcl -+inform(char *f, int l, char *fmt, ...) - { -- va_list args; -+ va_list ap; - -- va_start(args); -+ va_start(ap, fmt); - - prefix(f,l,"Info"); -- vfprintf(stderr, fmt, args); -+ vfprintf(stderr, fmt, ap); - endmsg(); - -- va_end(args); -+ va_end(ap); - } - - void -@@ -118,9 +106,6 @@ - static void - unix_error() - { -- extern char *sys_errlist[]; -- extern int sys_nerr; -- - if (errno != 0) { - if (errno > 0 && errno < sys_nerr) { - fputs(sys_errlist[errno], stderr); diff --git a/devel/cbind/files/patch-files.c b/devel/cbind/files/patch-files.c deleted file mode 100644 index 9b368b2ac2a8..000000000000 --- a/devel/cbind/files/patch-files.c +++ /dev/null @@ -1,18 +0,0 @@ ---- files.c.orig Fri May 19 16:45:30 1995 -+++ files.c Mon Dec 23 08:38:17 2002 -@@ -1,5 +1,6 @@ - #include "ansi.h" - #include "hostinfo.h" -+#include "host.h" - #include "config.h" - - #include <sys/types.h> -@@ -11,7 +12,7 @@ - #include <sys/mman.h> - #else - #include <unistd.h> --#include <malloc.h> -+#include <stdlib.h> - #endif - - #undef NULL diff --git a/devel/cbind/files/patch-hostinfo b/devel/cbind/files/patch-hostinfo deleted file mode 100644 index a48d1c7e5dc5..000000000000 --- a/devel/cbind/files/patch-hostinfo +++ /dev/null @@ -1,11 +0,0 @@ ---- hostinfo.orig Thu Apr 7 15:03:16 1994 -+++ hostinfo Mon Dec 23 08:38:17 2002 -@@ -4,7 +4,7 @@ - - echo '/* This file is automatically generated */' > $1 - echo '#define _H_HOSTINFO_' >> $1 --htype >> $1 -+./htype >> $1 - - cat > llchk.c << _STOP - main() diff --git a/devel/cbind/files/patch-htype.c b/devel/cbind/files/patch-htype.c deleted file mode 100644 index 2399a7478644..000000000000 --- a/devel/cbind/files/patch-htype.c +++ /dev/null @@ -1,17 +0,0 @@ ---- htype.c.orig Fri May 19 16:52:08 1995 -+++ htype.c Mon Dec 23 08:38:17 2002 -@@ -132,10 +132,14 @@ - printf("\n#define CHARS_ARE_%sSIGNED\n", (((char)-1) < 0) ? "" : "UN"); - - if (*p == 1) { -+ puts("#ifndef BIG_ENDIAN"); - puts("#define BIG_ENDIAN"); -+ puts("#endif"); - } - else { -+ puts("#ifndef LITTLE_ENDIAN"); - puts("#define LITTLE_ENDIAN"); -+ puts("#endif"); - } - - return 0; diff --git a/devel/cbind/files/patch-nodeop.c b/devel/cbind/files/patch-nodeop.c deleted file mode 100644 index 6c23eb48b11b..000000000000 --- a/devel/cbind/files/patch-nodeop.c +++ /dev/null @@ -1,87 +0,0 @@ ---- nodeop.c.orig Fri May 19 16:50:54 1995 -+++ nodeop.c Sun Nov 5 13:39:44 2006 -@@ -1,5 +1,5 @@ - #include <sys/types.h> --#include <varargs.h> -+#include <stdarg.h> - #include <stdio.h> - #include "ansi.h" - #include "host.h" -@@ -85,52 +85,50 @@ - } - - node_t* --new_node(kind, va_alist) -- node_kind_t kind; -- va_dcl -+new_node(node_kind_t kind, ...) - { -- va_list args; -+ va_list ap; - node_t *n; - -- va_start(args); -+ va_start(ap, kind); - - n = alloc_node(kind); - - switch (node_classof(kind)) { - case _Binary: -- n->node.binary.l = va_arg(args, node_t*); -- n->node.binary.r = va_arg(args, node_t*); -+ n->node.binary.l = va_arg(ap, node_t*); -+ n->node.binary.r = va_arg(ap, node_t*); - break; - case _Unary: -- n->node.unary = va_arg(args, node_t*); -+ n->node.unary = va_arg(ap, node_t*); - break; - case _Pointer: -- n->node.id.name = va_arg(args, char*); -+ n->node.id.name = va_arg(ap, char*); - break; - case _Other: - switch (kind) { - case _Elipsis: - break; - case _String: -- n->node.str.form = va_arg(args, char*); -- n->node.str.len = va_arg(args, int); -+ n->node.str.form = va_arg(ap, char*); -+ n->node.str.len = va_arg(ap, int); - break; - case _Sym: -- n->node.sym = va_arg(args, symbol_t*); -+ n->node.sym = va_arg(ap, symbol_t*); - break; - case _Type: -- n->node.typ = va_arg(args, typeinfo_t*); -+ n->node.typ = va_arg(ap, typeinfo_t*); - break; - case _Cond: -- n->node.cond.bool = va_arg(args, node_t*); -- n->node.cond.tru = va_arg(args, node_t*); -- n->node.cond.fals = va_arg(args, node_t*); -+ n->node.cond.bool = va_arg(ap, node_t*); -+ n->node.cond.tru = va_arg(ap, node_t*); -+ n->node.cond.fals = va_arg(ap, node_t*); - break; - case _FP_Number: -- n->node.fval = va_arg(args, host_float_t); -+ n->node.fval = va_arg(ap, host_float_t); - break; - case _Int_Number: -- n->node.ival = va_arg(args, host_int_t); -+ n->node.ival = va_arg(ap, host_int_t); - break; - default: - fatal(__FILE__,__LINE__,"Unandled noded - (%d)", kind); -@@ -142,7 +140,7 @@ - break; - } - -- va_end(args); -+ va_end(ap); - - return n; - } diff --git a/devel/cbind/files/patch-units.c b/devel/cbind/files/patch-units.c deleted file mode 100644 index efafae2ab62c..000000000000 --- a/devel/cbind/files/patch-units.c +++ /dev/null @@ -1,10 +0,0 @@ ---- units.c.orig Fri Sep 22 12:06:46 1995 -+++ units.c Mon Dec 23 08:38:17 2002 -@@ -2,6 +2,7 @@ - #include <sys/types.h> - #include <sys/stat.h> - #include <stdio.h> -+#include "host.h" - #include "ansi.h" - #include "files.h" - #include "units.h" diff --git a/devel/cbind/pkg-descr b/devel/cbind/pkg-descr deleted file mode 100644 index 54b3c6560dda..000000000000 --- a/devel/cbind/pkg-descr +++ /dev/null @@ -1,12 +0,0 @@ -This tool is designed to AID in the creation of Ada bindings to C. -The code is provided "as is" without any warranty whatsoever. The -code is NOT copyrighted but is instead published to the public domain -as free software. Any attempt to copyright the tool will be refutable -in a court of law. - -I am NOT intending to imply that the bindings generated by this -translator will be complete. This tool MAY/MAY NOT be useful as an -AID to generating bindings. Hopefully it can do a lot of the grunt -work for you. - -WWW: ftp://ftp.cs.kuleuven.ac.be/pub/Ada-Belgium/cdrom/ase02_02/tools/cbind/ diff --git a/devel/cbind/pkg-plist b/devel/cbind/pkg-plist deleted file mode 100644 index a0d9033d2d1c..000000000000 --- a/devel/cbind/pkg-plist +++ /dev/null @@ -1,6 +0,0 @@ -bin/cbfe -bin/cbind -bin/cbpp -man/man1/cbind.1.gz -%%PORTDOCS%%%%DOCSDIR%%/DOCS -%%PORTDOCS%%%%DOCSDIR%%/README |