Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Dec 2002 09:06:36 +0100 (CET)
From:      David Holm <david@realityrift.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/46487: New port: cbind - Translator for "thin" Ada bindings to C
Message-ID:  <200212230806.gBN86a1N083981@rift.ath.cx>

next in thread | raw e-mail | index | archive | help

>Number:         46487
>Category:       ports
>Synopsis:       New port: cbind - Translator for "thin" Ada bindings to C
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec 23 00:10:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     David Holm
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD rift.ath.cx 5.0-CURRENT FreeBSD 5.0-CURRENT #3: Sun Dec 15 14:14:05 CET 2002 avatar@rift.ath.cx:/usr/src/sys/i386/compile/MYKERNEL i386


	
>Description:
	
>How-To-Repeat:
	
>Fix:

	

--- devel-cbind.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	devel/cbind
#	devel/cbind/Makefile
#	devel/cbind/distinfo
#	devel/cbind/files
#	devel/cbind/files/patch-Makefile
#	devel/cbind/files/patch-allocate.c
#	devel/cbind/files/patch-buffer.c
#	devel/cbind/files/patch-cbind.c
#	devel/cbind/files/patch-cdep.c
#	devel/cbind/files/patch-errors.c
#	devel/cbind/files/patch-files.c
#	devel/cbind/files/patch-hostinfo
#	devel/cbind/files/patch-htype.c
#	devel/cbind/files/patch-units.c
#	devel/cbind/pkg-plist
#	devel/cbind/pkg-comment
#	devel/cbind/pkg-descr
#
echo c - devel/cbind
mkdir -p devel/cbind > /dev/null 2>&1
echo x - devel/cbind/Makefile
sed 's/^X//' >devel/cbind/Makefile << 'END-of-devel/cbind/Makefile'
X# New ports collection makefile for:   cbind
X# Date created:        23 December 2002
X# Whom:                David Holm <david@realityrift.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME=      cbind
XPORTVERSION=   6
XCATEGORIES=    devel
XMASTER_SITES=  ftp://ftp.cs.kuleuven.ac.be/pub/Ada-Belgium/cdrom/ase02_02/tools/cbind/ \
X			   ftp://ftp.cnam.fr/pub2/Ada/PAL/swtools/cbind/
XDISTNAME=      ${PORTNAME}${PORTVERSION}
X
XMAINTAINER=    david@realityrift.com
X
XUSE_ZIP=       yes
X
X${WRKSRC}=     ${WRKDIR}/${PORTNAME}
X
X#do-extract:
X#	@${RM} -rf ${WRKDIR}
X#	@${MKDIR} ${WRKDIR}
X#	@(cd ${WRKDIR} && unzip ${PORTSDIR}/distfiles/${DISTNAME}${EXTRACT_SUFX})
X
Xdo-install:
X	@${INSTALL_PROGRAM} ${WRKSRC}/cbind ${PREFIX}/bin
X	@${INSTALL_PROGRAM} ${WRKSRC}/cbfe ${PREFIX}/bin
X	@${INSTALL_PROGRAM} ${WRKSRC}/cbpp ${PREFIX}/bin
X	@${MKDIR} ${PREFIX}/share/cbind
X	@${INSTALL_DATA} ${WRKSRC}/DOCS ${PREFIX}/share/cbind
X	@${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/cbind
X
X.include <bsd.port.mk>
END-of-devel/cbind/Makefile
echo x - devel/cbind/distinfo
sed 's/^X//' >devel/cbind/distinfo << 'END-of-devel/cbind/distinfo'
XMD5 (cbind6.zip) = 250a2db4799376d3586070c175d6c279
END-of-devel/cbind/distinfo
echo c - devel/cbind/files
mkdir -p devel/cbind/files > /dev/null 2>&1
echo x - devel/cbind/files/patch-Makefile
sed 's/^X//' >devel/cbind/files/patch-Makefile << 'END-of-devel/cbind/files/patch-Makefile'
X--- Makefile.orig	Fri Sep 22 12:21:32 1995
X+++ Makefile	Mon Dec 23 08:38:17 2002
X@@ -139,7 +139,7 @@
X touch:;	touch $(GENED_SRC)
X 
X hostinfo.h: htype hostinfo
X-		hostinfo $@
X+		./hostinfo $@
X 
X c_perf.c:	c.prf
X 		gperf -N c_rsvd -t -p c.prf > $@
END-of-devel/cbind/files/patch-Makefile
echo x - devel/cbind/files/patch-allocate.c
sed 's/^X//' >devel/cbind/files/patch-allocate.c << 'END-of-devel/cbind/files/patch-allocate.c'
X--- allocate.c.orig	Fri May 19 16:53:10 1995
X+++ allocate.c	Mon Dec 23 08:38:17 2002
X@@ -4,7 +4,7 @@
X #include <sys/types.h>
X #include <unistd.h>
X #include <string.h>
X-#include <malloc.h>
X+#include <stdlib.h>
X #include "ansi.h"
X #include "config.h"
X #include "allocate.h"
END-of-devel/cbind/files/patch-allocate.c
echo x - devel/cbind/files/patch-buffer.c
sed 's/^X//' >devel/cbind/files/patch-buffer.c << 'END-of-devel/cbind/files/patch-buffer.c'
X--- buffer.c.orig	Fri May 19 16:53:44 1995
X+++ buffer.c	Mon Dec 23 08:38:17 2002
X@@ -5,7 +5,7 @@
X  */
X 
X #include <sys/types.h>
X-#include <malloc.h>
X+#include <stdlib.h>
X #include "ansi.h"
X #include "buffer.h"
X #include "allocate.h"
END-of-devel/cbind/files/patch-buffer.c
echo x - devel/cbind/files/patch-cbind.c
sed 's/^X//' >devel/cbind/files/patch-cbind.c << 'END-of-devel/cbind/files/patch-cbind.c'
X--- cbind.c.orig	Fri May 19 17:17:06 1995
X+++ cbind.c	Mon Dec 23 08:38:17 2002
X@@ -6,7 +6,7 @@
X #include <sys/types.h>
X #include <string.h>
X #include <unistd.h>
X-#include <malloc.h>
X+#include <stdlib.h>
X 
X #undef NULL
X #define NULL			0
END-of-devel/cbind/files/patch-cbind.c
echo x - devel/cbind/files/patch-cdep.c
sed 's/^X//' >devel/cbind/files/patch-cdep.c << 'END-of-devel/cbind/files/patch-cdep.c'
X--- cdep.c.orig	Fri May 19 19:19:36 1995
X+++ cdep.c	Mon Dec 23 08:38:17 2002
X@@ -12,6 +12,7 @@
X #include "cpp.h"
X #include "cpp_hide.h"
X #include "allocate.h"
X+#include "host.h"
X 
X #undef NULL
X #define NULL			0
END-of-devel/cbind/files/patch-cdep.c
echo x - devel/cbind/files/patch-errors.c
sed 's/^X//' >devel/cbind/files/patch-errors.c << 'END-of-devel/cbind/files/patch-errors.c'
X--- errors.c.orig	Fri Oct 28 19:44:44 1994
X+++ errors.c	Mon Dec 23 08:38:17 2002
X@@ -118,9 +118,6 @@
X static void
X unix_error()
X {
X-	extern char *sys_errlist[];
X-	extern int sys_nerr;
X-
X 	if (errno != 0) {
X 		if (errno > 0 && errno < sys_nerr) {
X 			fputs(sys_errlist[errno], stderr);
END-of-devel/cbind/files/patch-errors.c
echo x - devel/cbind/files/patch-files.c
sed 's/^X//' >devel/cbind/files/patch-files.c << 'END-of-devel/cbind/files/patch-files.c'
X--- files.c.orig	Fri May 19 16:45:30 1995
X+++ files.c	Mon Dec 23 08:38:17 2002
X@@ -1,5 +1,6 @@
X #include "ansi.h"
X #include "hostinfo.h"
X+#include "host.h"
X #include "config.h"
X 
X #include <sys/types.h>
X@@ -11,7 +12,7 @@
X #include <sys/mman.h>
X #else
X #include <unistd.h>
X-#include <malloc.h>
X+#include <stdlib.h>
X #endif
X 
X #undef NULL
END-of-devel/cbind/files/patch-files.c
echo x - devel/cbind/files/patch-hostinfo
sed 's/^X//' >devel/cbind/files/patch-hostinfo << 'END-of-devel/cbind/files/patch-hostinfo'
X--- hostinfo.orig	Thu Apr  7 15:03:16 1994
X+++ hostinfo	Mon Dec 23 08:38:17 2002
X@@ -4,7 +4,7 @@
X 
X echo '/* This file is automatically generated */' > $1
X echo '#define _H_HOSTINFO_' >> $1
X-htype >> $1
X+./htype >> $1
X 
X cat > llchk.c << _STOP
X main()
END-of-devel/cbind/files/patch-hostinfo
echo x - devel/cbind/files/patch-htype.c
sed 's/^X//' >devel/cbind/files/patch-htype.c << 'END-of-devel/cbind/files/patch-htype.c'
X--- htype.c.orig	Fri May 19 16:52:08 1995
X+++ htype.c	Mon Dec 23 08:38:17 2002
X@@ -132,10 +132,14 @@
X 	printf("\n#define CHARS_ARE_%sSIGNED\n", (((char)-1) < 0) ? "" : "UN");
X 
X 	if (*p == 1) {
X+		puts("#ifndef BIG_ENDIAN");
X 		puts("#define BIG_ENDIAN");
X+		puts("#endif");
X 	}
X 	else {
X+		puts("#ifndef LITTLE_ENDIAN");
X 		puts("#define LITTLE_ENDIAN");
X+		puts("#endif");
X 	}
X 
X 	return 0;
END-of-devel/cbind/files/patch-htype.c
echo x - devel/cbind/files/patch-units.c
sed 's/^X//' >devel/cbind/files/patch-units.c << 'END-of-devel/cbind/files/patch-units.c'
X--- units.c.orig	Fri Sep 22 12:06:46 1995
X+++ units.c	Mon Dec 23 08:38:17 2002
X@@ -2,6 +2,7 @@
X #include <sys/types.h>
X #include <sys/stat.h>
X #include <stdio.h>
X+#include "host.h"
X #include "ansi.h"
X #include "files.h"
X #include "units.h"
END-of-devel/cbind/files/patch-units.c
echo x - devel/cbind/pkg-plist
sed 's/^X//' >devel/cbind/pkg-plist << 'END-of-devel/cbind/pkg-plist'
Xbin/cbfe
Xbin/cbind
Xbin/cbpp
Xshare/cbind/DOCS
Xshare/cbind/README
X@dirrm share/cbind
END-of-devel/cbind/pkg-plist
echo x - devel/cbind/pkg-comment
sed 's/^X//' >devel/cbind/pkg-comment << 'END-of-devel/cbind/pkg-comment'
XTranslator for "thin" Ada bindings to C
END-of-devel/cbind/pkg-comment
echo x - devel/cbind/pkg-descr
sed 's/^X//' >devel/cbind/pkg-descr << 'END-of-devel/cbind/pkg-descr'
XThis tool is designed to AID in the creation of Ada bindings to C.
XThe code is provided "as is" without any warranty whatsoever.  The
Xcode is NOT copyrighted but is instead published to the public domain
Xas free software.  Any attempt to copyright the tool will be refutable
Xin a court of law.
X
XI am NOT intending to imply that the bindings generated by this
Xtranslator will be complete.  This tool MAY/MAY NOT be useful as an
XAID to generating bindings.  Hopefully it can do a lot of the grunt
Xwork for you.
X
X- David Holm
Xdavid@realityrift.com
END-of-devel/cbind/pkg-descr
exit
--- devel-cbind.shar ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200212230806.gBN86a1N083981>