Date: Sun, 6 Jan 2002 11:27:58 -0500 (EST) From: Alan Eldridge <ports@geeksrus.net> To: FreeBSD-gnats-submit@freebsd.org Cc: lioux@brturbo.com, petef@freebsd.com Subject: ports/33613: New port: ATT/Cornell Cyclone language compiler Message-ID: <200201061627.g06GRwj41922@wwweasel.geeksrus.net>
next in thread | raw e-mail | index | archive | help
>Number: 33613 >Category: ports >Synopsis: New port: ATT/Cornell Cyclone language compiler >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Jan 06 08:30:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Alan Eldridge >Release: FreeBSD 4.4-STABLE i386 >Organization: Geeksrus.NET >Environment: System: FreeBSD wwweasel.geeksrus.net 4.4-STABLE FreeBSD 4.4-STABLE #0: Sun Dec 2 19:14:12 EST 2001 root@wwweasel.geeksrus.net:/usr/obj/usr/src/sys/WWWEASEL i386 >Description: Cyclone is a new C-derived language jointly developed by ATT and Cornell. A cyclone-doc port will follow. >How-To-Repeat: >Fix: Pete & Mario, could you please look over the Makefile for style? It passes portlint with a warning that can be ignored. If it's OK, then I'd appreciate it if one of you guys could commit it for me. Thanks. # 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: # # cyclone # cyclone/Makefile # cyclone/files # cyclone/files/patch-cerrno.h # cyclone/pkg-comment # cyclone/pkg-descr # cyclone/pkg-plist # cyclone/distinfo # echo c - cyclone mkdir -p cyclone > /dev/null 2>&1 echo x - cyclone/Makefile sed 's/^X//' >cyclone/Makefile << 'END-of-cyclone/Makefile' X# ex:ts=8 X# X# New ports collection makefile for: cyclone X# Date created: 2002/01/06 X# Whom: AlanE <ports@geeksrus.net> X# X# $FreeBSD$ X# X XPORTNAME= cyclone XPORTVERSION= 0.2 X#PORTEPOCH= XCATEGORIES= lang XMASTER_SITES= http://www.cs.cornell.edu/projects/cyclone/ \ X http://www.research.att.com/projects/cyclone/ X#MASTER_SITE_SUBDIR= X#PKGNAMEPREFIX= X#PKGNAMESUFFIX= X#DISTNAME= X#EXTRACT_SUFX= X#DISTFILES= X#DIST_SUBDIR= ${PKGNAMEPREFIX}${PORTNAME}${PKGNAMESUFFIX} X#EXTRACT_ONLY= X XMAINTAINER= ports@geeksrus.net X XBUILD_DEPENDS= bash:${PORTSDIR}/shells/bash2 X XUSE_GMAKE= yes XWRKSRC= ${WRKDIR}/${PORTNAME} XCYCBINDIR= ${PREFIX}/bin XCYCINCDIR= ${PREFIX}/include/cyclone XCYCLIBDIR= ${PREFIX}/lib/cyclone XCONFIGURE_ARGS= -sh ${PREFIX}/bin/bash -prefix ${PREFIX} \ X -incdir ${CYCINCDIR} -bindir ${CYCBINDIR} -libdir ${CYCLIBDIR} XALL_TARGET= build X Xdo-configure: X @cd ${CONFIGURE_WRKSRC} && echo y | ./configure ${CONFIGURE_ARGS} X Xpost-build: X.for target in cyclone_src update build test X @cd ${WRKSRC} && ${MAKE_ENV} ${GMAKE} ${target} X.endfor X Xpost-install: X.for prog in cyclone cycbison cyclex cycflex X @${CHOWN} ${BINOWN}:${BINGRP} ${CYCBINDIR}/${prog} X @${CHMOD} ${BINMODE} ${CYCBINDIR}/${prog} X.endfor X @${RANLIB} ${CYCLIBDIR}/*.a X @${CHOWN} -R ${INCOWN}:${INCGRP} ${CYCINCDIR} X @${CHOWN} -R ${LIBOWN}:${LIBGRP} ${CYCLIBDIR} X @${CHMOD} -R ${INCMODE} ${CYCINCDIR} X @${CHMOD} -R ${LIBMODE} ${CYCLIBDIR} X @${FIND} ${CYCINCDIR} ${CYCLIBDIR} -type d | ${XARGS} ${CHMOD} +x X X.include <bsd.port.mk> X X# X#EOF END-of-cyclone/Makefile echo c - cyclone/files mkdir -p cyclone/files > /dev/null 2>&1 echo x - cyclone/files/patch-cerrno.h sed 's/^X//' >cyclone/files/patch-cerrno.h << 'END-of-cyclone/files/patch-cerrno.h' X--- lib/cerrno.h.or Fri Jan 4 00:15:32 2002 X+++ lib/cerrno.h Fri Jan 4 00:16:28 2002 X@@ -31,6 +31,9 @@ X /* x86 linux */ X int @ __errno_location(void); X #define errno (*Std::__errno_location()) X+#elif defined(__FreeBSD__) X+int @ __error(void); X+#define errno (*Std::__error()) X #else X /* cygwin, BSD */ X int @ __errno(void); X--- include/cerrno.h.or Fri Jan 4 00:15:32 2002 X+++ include/cerrno.h Fri Jan 4 00:16:28 2002 X@@ -31,6 +31,9 @@ X /* x86 linux */ X int @ __errno_location(void); X #define errno (*Std::__errno_location()) X+#elif defined(__FreeBSD__) X+int @ __error(void); X+#define errno (*Std::__error()) X #else X /* cygwin, BSD */ X int @ __errno(void); END-of-cyclone/files/patch-cerrno.h echo x - cyclone/pkg-comment sed 's/^X//' >cyclone/pkg-comment << 'END-of-cyclone/pkg-comment' XA safe dialect of C from Cornell and AT&T Research END-of-cyclone/pkg-comment echo x - cyclone/pkg-descr sed 's/^X//' >cyclone/pkg-descr << 'END-of-cyclone/pkg-descr' XCyclone is a programming language based on C that is safe, meaning Xthat it rules out programs that have buffer overflows, dangling Xpointers, format string attacks, and so on. High-level, type-safe Xlanguages, such as Java, Scheme, or ML also provide safety, but they Xdon't give the same control over data representations and memory Xmanagement that C does (witness the fact that the run-time systems for Xthese languages are usually written in C.) Furthermore, porting legacy XC code to these languages or interfacing with legacy C libraries is a Xdifficult and error-prone process. The goal of Cyclone is to give Xprogrammers the same low-level control and performance of C without Xsacrificing safety, and to make it easy to port or interface with Xlegacy C code. X XWWW: http://www.cs.cornell.edu/projects/cyclone/ X X-- AlanE <ports@geeksrus.net> END-of-cyclone/pkg-descr echo x - cyclone/pkg-plist sed 's/^X//' >cyclone/pkg-plist << 'END-of-cyclone/pkg-plist' X@comment AT&T/Cornell cyclone language compiler X@comment X@comment executables Xbin/cyclone Xbin/cycbison Xbin/cyclex Xbin/cycflex X@comment include files Xinclude/cyclone/arch/i386-unknown-bsdi3.1.h Xinclude/cyclone/arch/i386-unknown-freebsd4.4.h Xinclude/cyclone/arch/i386-unknown-openbsd2.8.h Xinclude/cyclone/arch/i686-unknown-cygwin1.3.3.h Xinclude/cyclone/arch/i686-unknown-linux.h Xinclude/cyclone/arch/powerpc-apple-rhapsody.h Xinclude/cyclone/arch/sparc-sun-solaris2.7.h Xinclude/cyclone/arg.h Xinclude/cyclone/arpa/cinet.h Xinclude/cyclone/arpa/inet.h Xinclude/cyclone/array.h Xinclude/cyclone/assert.h Xinclude/cyclone/bitvec.h Xinclude/cyclone/buffer.h Xinclude/cyclone/cassert.h Xinclude/cyclone/ccrypt.h Xinclude/cyclone/cctype.h Xinclude/cyclone/cdirent.h Xinclude/cyclone/cerrno.h Xinclude/cyclone/cerrno.h.orig Xinclude/cyclone/cfcntl.h Xinclude/cyclone/cgetopt.h Xinclude/cyclone/cgrp.h Xinclude/cyclone/cmath.h Xinclude/cyclone/cnetdb.h Xinclude/cyclone/core.h Xinclude/cyclone/cpwd.h Xinclude/cyclone/crypt.h Xinclude/cyclone/csignal.h Xinclude/cyclone/cstddef.h Xinclude/cyclone/cstdio.h Xinclude/cyclone/cstdlib.h Xinclude/cyclone/cstring.h Xinclude/cyclone/cstrings.h Xinclude/cyclone/ctime.h Xinclude/cyclone/ctype.h Xinclude/cyclone/cunistd.h Xinclude/cyclone/cutime.h Xinclude/cyclone/dict.h Xinclude/cyclone/dirent.h Xinclude/cyclone/errno.h Xinclude/cyclone/execinfo.h Xinclude/cyclone/fcntl.h Xinclude/cyclone/filename.h Xinclude/cyclone/fn.h Xinclude/cyclone/getopt.h Xinclude/cyclone/grp.h Xinclude/cyclone/hashtable.h Xinclude/cyclone/lexing.h Xinclude/cyclone/lineno.h Xinclude/cyclone/list.h Xinclude/cyclone/marshal.h Xinclude/cyclone/math.h Xinclude/cyclone/netdb.h Xinclude/cyclone/netinet/cin.h Xinclude/cyclone/netinet/ctcp.h Xinclude/cyclone/netinet/in.h Xinclude/cyclone/netinet/tcp.h Xinclude/cyclone/position.h Xinclude/cyclone/positionrep.h Xinclude/cyclone/pp.h Xinclude/cyclone/pwd.h Xinclude/cyclone/queue.h Xinclude/cyclone/rope.h Xinclude/cyclone/set.h Xinclude/cyclone/signal.h Xinclude/cyclone/slowdict.h Xinclude/cyclone/splay.h Xinclude/cyclone/stddef.h Xinclude/cyclone/stdio.h Xinclude/cyclone/stdlib.h Xinclude/cyclone/string.h Xinclude/cyclone/strings.h Xinclude/cyclone/sys/cioctl.h Xinclude/cyclone/sys/cmman.h Xinclude/cyclone/sys/cresource.h Xinclude/cyclone/sys/cselect.h Xinclude/cyclone/sys/csocket.h Xinclude/cyclone/sys/cstat.h Xinclude/cyclone/sys/ctime.h Xinclude/cyclone/sys/ctypes.h Xinclude/cyclone/sys/cwait.h Xinclude/cyclone/sys/ioctl.h Xinclude/cyclone/sys/mman.h Xinclude/cyclone/sys/resource.h Xinclude/cyclone/sys/select.h Xinclude/cyclone/sys/socket.h Xinclude/cyclone/sys/stat.h Xinclude/cyclone/sys/time.h Xinclude/cyclone/sys/types.h Xinclude/cyclone/sys/wait.h Xinclude/cyclone/time.h Xinclude/cyclone/typerep.h Xinclude/cyclone/unistd.h Xinclude/cyclone/utime.h Xinclude/cyclone/xarray.h Xinclude/cyclone/xml/xml.h Xinclude/cyclone/xml/xmldump.h Xinclude/cyclone/xml/xmlparse.h X@dirrm include/cyclone/xml X@dirrm include/cyclone/sys X@dirrm include/cyclone/netinet X@dirrm include/cyclone/arpa X@dirrm include/cyclone/arch X@dirrm include/cyclone X@comment runtime support libraries Xlib/cyclone/gc.a Xlib/cyclone/include/cyc_include.h Xlib/cyclone/libcyc.a Xlib/cyclone/libcyc_a.a Xlib/cyclone/libxml.a Xlib/cyclone/nogc.a Xlib/cyclone/nogc_a.a X@dirrm lib/cyclone/include X@dirrm lib/cyclone X@comment that's all, folks. END-of-cyclone/pkg-plist echo x - cyclone/distinfo sed 's/^X//' >cyclone/distinfo << 'END-of-cyclone/distinfo' XMD5 (cyclone-0.2.tar.gz) = f27081a442bff470f9e477e5d017d2d9 END-of-cyclone/distinfo exit >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?200201061627.g06GRwj41922>