diff options
Diffstat (limited to 'lang')
-rw-r--r-- | lang/gwydion-dylan/DESCR | 21 | ||||
-rw-r--r-- | lang/gwydion-dylan/Makefile | 44 | ||||
-rw-r--r-- | lang/gwydion-dylan/PLIST | 79 | ||||
-rw-r--r-- | lang/gwydion-dylan/distinfo | 8 | ||||
-rw-r--r-- | lang/gwydion-dylan/patches/patch-aa | 23 | ||||
-rw-r--r-- | lang/gwydion-dylan/patches/patch-ab | 26 | ||||
-rw-r--r-- | lang/gwydion-dylan/patches/patch-ac | 44 |
7 files changed, 245 insertions, 0 deletions
diff --git a/lang/gwydion-dylan/DESCR b/lang/gwydion-dylan/DESCR new file mode 100644 index 00000000000..31447a63eb3 --- /dev/null +++ b/lang/gwydion-dylan/DESCR @@ -0,0 +1,21 @@ +Dylan is an object-oriented, dynamic, infix, garbage-collected +programming language with support for multiple inheritence, multiple +dispatch (an advanced form of polymorphism), typed and untyped +variables, closures and exceptions. Dylan also supports pattern-based +hygenic macros. These allow you to define new control constructs and +fully integrate them with the language. + +Dylan (theoretically) combines the performance of C or C++ with the +rapid development of Perl and the expressiveness of LISP. It looks +similar to C or Pascal, so experienced programmers can learn to write +simple programs quickly. + +Gwydion Dylan provides two implementations of the Dylan programming +language: Mindy and d2c. Mindy is bytecode compiler and interpreter, +and d2c is a Dylan-to-C compiler. Mindy compiles programs quickly, +but the resulting executables run slowly. On the other hand, d2c +compiles programs slowly, but they run quickly. + +Gwydion Dylan was originally written by the Gwydion Group at CMU as +part of a research project studying advanced hypercode development +environments. It is now maintained by a group of volunteers. diff --git a/lang/gwydion-dylan/Makefile b/lang/gwydion-dylan/Makefile new file mode 100644 index 00000000000..15078e9b13b --- /dev/null +++ b/lang/gwydion-dylan/Makefile @@ -0,0 +1,44 @@ +# $NetBSD: Makefile,v 1.1.1.1 2005/12/31 22:42:31 markd Exp $ +# + +DISTNAME= gwydion-dylan-${DYLAN_VERSION} +CATEGORIES= lang +MASTER_SITES= ftp://ftp.gwydiondylan.org/pub/gd/src/tar/ \ + ftp://ftp.fu-berlin.de/pub/unix/languages/dylan/src/tar/ \ + ftp://ftp.ntua.gr/pub/lang/gwydion/src/tar/ \ + ftp://gd.tuwien.ac.at/languages/gwydiondylan/src/tar/ + +MAINTAINER= tech-pkg@NetBSD.org +HOMEPAGE= http://www.gwydiondylan.org/ +COMMENT= Functional language + +USE_TOOLS+= gmake perl +USE_LIBTOOL= yes +MAKEFILE= GNUmakefile +BUILD_TARGET= default + +GNU_CONFIGURE= yes +CONFIGURE_ARGS+= --enable-mindy-bootstrap + +DYLAN_VERSION= 2.4.0 + +# other architecture changes will be gratefully received +ONLY_FOR_PLATFORM= NetBSD-*-i386 NetBSD-*-sparc NetBSD-*-powerpc + +.include "../../mk/bsd.prefs.mk" + +.if ${MACHINE_ARCH} == "i386" +ALT_ARCH= x86 +.elif ${MACHINE_ARCH} == "powerpc" +ALT_ARCH= ppc +.else +ALT_ARCH= ${MACHINE_ARCH} +.endif + +PLIST_SUBST+= ALT_ARCH=${ALT_ARCH:Q} +PLIST_SUBST+= DYLAN_VERSION=${DYLAN_VERSION:Q} + +.include "../../devel/boehm-gc/buildlink3.mk" + +.include "../../mk/pthread.buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/lang/gwydion-dylan/PLIST b/lang/gwydion-dylan/PLIST new file mode 100644 index 00000000000..e56b46f7cd5 --- /dev/null +++ b/lang/gwydion-dylan/PLIST @@ -0,0 +1,79 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2005/12/31 22:42:31 markd Exp $ +bin/d2c +bin/dybug +bin/mindy +bin/mindycomp +bin/mindyexec +include/runtime.h +lib/dylan/${PKGVERSION}/${ALT_ARCH}-${LOWER_OPSYS}-gcc/base-file-system-lib.dbc +lib/dylan/${PKGVERSION}/${ALT_ARCH}-${LOWER_OPSYS}-gcc/base-file-system.lib.du +lib/dylan/${PKGVERSION}/${ALT_ARCH}-${LOWER_OPSYS}-gcc/collection-extensions-lib.dbc +lib/dylan/${PKGVERSION}/${ALT_ARCH}-${LOWER_OPSYS}-gcc/collection-extensions.lib.du +lib/dylan/${PKGVERSION}/${ALT_ARCH}-${LOWER_OPSYS}-gcc/dylan-lib.dbc +lib/dylan/${PKGVERSION}/${ALT_ARCH}-${LOWER_OPSYS}-gcc/dylan.lib.du +lib/dylan/${PKGVERSION}/${ALT_ARCH}-${LOWER_OPSYS}-gcc/format-lib.dbc +lib/dylan/${PKGVERSION}/${ALT_ARCH}-${LOWER_OPSYS}-gcc/format.lib.du +lib/dylan/${PKGVERSION}/${ALT_ARCH}-${LOWER_OPSYS}-gcc/garbage-collection.lib.du +lib/dylan/${PKGVERSION}/${ALT_ARCH}-${LOWER_OPSYS}-gcc/inspector-base-lib.dbc +lib/dylan/${PKGVERSION}/${ALT_ARCH}-${LOWER_OPSYS}-gcc/libbase-file-system-dylan.la +lib/dylan/${PKGVERSION}/${ALT_ARCH}-${LOWER_OPSYS}-gcc/libcollection-extensions-dylan.la +lib/dylan/${PKGVERSION}/${ALT_ARCH}-${LOWER_OPSYS}-gcc/libdylan-dylan.la +lib/dylan/${PKGVERSION}/${ALT_ARCH}-${LOWER_OPSYS}-gcc/libformat-dylan.la +lib/dylan/${PKGVERSION}/${ALT_ARCH}-${LOWER_OPSYS}-gcc/libgarbage-collection-dylan.la +lib/dylan/${PKGVERSION}/${ALT_ARCH}-${LOWER_OPSYS}-gcc/libmelange-support-dylan.la +lib/dylan/${PKGVERSION}/${ALT_ARCH}-${LOWER_OPSYS}-gcc/libparse-arguments-dylan.la +lib/dylan/${PKGVERSION}/${ALT_ARCH}-${LOWER_OPSYS}-gcc/libprint-dylan.la +lib/dylan/${PKGVERSION}/${ALT_ARCH}-${LOWER_OPSYS}-gcc/librandom-dylan.la +lib/dylan/${PKGVERSION}/${ALT_ARCH}-${LOWER_OPSYS}-gcc/libregular-expressions-dylan.la +lib/dylan/${PKGVERSION}/${ALT_ARCH}-${LOWER_OPSYS}-gcc/libruntime.la +lib/dylan/${PKGVERSION}/${ALT_ARCH}-${LOWER_OPSYS}-gcc/libstandard-io-dylan.la +lib/dylan/${PKGVERSION}/${ALT_ARCH}-${LOWER_OPSYS}-gcc/libstream-extensions-dylan.la +lib/dylan/${PKGVERSION}/${ALT_ARCH}-${LOWER_OPSYS}-gcc/libstreams-dylan.la +lib/dylan/${PKGVERSION}/${ALT_ARCH}-${LOWER_OPSYS}-gcc/libstring-extensions-dylan.la +lib/dylan/${PKGVERSION}/${ALT_ARCH}-${LOWER_OPSYS}-gcc/libtable-extensions-dylan.la +lib/dylan/${PKGVERSION}/${ALT_ARCH}-${LOWER_OPSYS}-gcc/libtranscendental-dylan.la +lib/dylan/${PKGVERSION}/${ALT_ARCH}-${LOWER_OPSYS}-gcc/melange-support.lib.du +lib/dylan/${PKGVERSION}/${ALT_ARCH}-${LOWER_OPSYS}-gcc/parse-arguments-lib.dbc +lib/dylan/${PKGVERSION}/${ALT_ARCH}-${LOWER_OPSYS}-gcc/parse-arguments.lib.du +lib/dylan/${PKGVERSION}/${ALT_ARCH}-${LOWER_OPSYS}-gcc/print-lib.dbc +lib/dylan/${PKGVERSION}/${ALT_ARCH}-${LOWER_OPSYS}-gcc/print.lib.du +lib/dylan/${PKGVERSION}/${ALT_ARCH}-${LOWER_OPSYS}-gcc/random-lib.dbc +lib/dylan/${PKGVERSION}/${ALT_ARCH}-${LOWER_OPSYS}-gcc/random.lib.du +lib/dylan/${PKGVERSION}/${ALT_ARCH}-${LOWER_OPSYS}-gcc/regular-expressions-lib.dbc +lib/dylan/${PKGVERSION}/${ALT_ARCH}-${LOWER_OPSYS}-gcc/regular-expressions.lib.du +lib/dylan/${PKGVERSION}/${ALT_ARCH}-${LOWER_OPSYS}-gcc/standard-io-lib.dbc +lib/dylan/${PKGVERSION}/${ALT_ARCH}-${LOWER_OPSYS}-gcc/standard-io.lib.du +lib/dylan/${PKGVERSION}/${ALT_ARCH}-${LOWER_OPSYS}-gcc/stream-extensions-lib.dbc +lib/dylan/${PKGVERSION}/${ALT_ARCH}-${LOWER_OPSYS}-gcc/stream-extensions.lib.du +lib/dylan/${PKGVERSION}/${ALT_ARCH}-${LOWER_OPSYS}-gcc/streams-lib.dbc +lib/dylan/${PKGVERSION}/${ALT_ARCH}-${LOWER_OPSYS}-gcc/streams.lib.du +lib/dylan/${PKGVERSION}/${ALT_ARCH}-${LOWER_OPSYS}-gcc/string-extensions-lib.dbc +lib/dylan/${PKGVERSION}/${ALT_ARCH}-${LOWER_OPSYS}-gcc/string-extensions.lib.du +lib/dylan/${PKGVERSION}/${ALT_ARCH}-${LOWER_OPSYS}-gcc/table-extensions-lib.dbc +lib/dylan/${PKGVERSION}/${ALT_ARCH}-${LOWER_OPSYS}-gcc/table-extensions.lib.du +lib/dylan/${PKGVERSION}/${ALT_ARCH}-${LOWER_OPSYS}-gcc/text-inspector-lib.dbc +lib/dylan/${PKGVERSION}/${ALT_ARCH}-${LOWER_OPSYS}-gcc/tk-lib.dbc +lib/dylan/${PKGVERSION}/${ALT_ARCH}-${LOWER_OPSYS}-gcc/transcendental-lib.dbc +lib/dylan/${PKGVERSION}/${ALT_ARCH}-${LOWER_OPSYS}-gcc/transcendental.lib.du +lib/dylan/${PKGVERSION}/${ALT_ARCH}-${LOWER_OPSYS}-gcc/x-inspector-lib.dbc +man/man1/d2c.1 +man/man1/dybug.1 +man/man1/gobject-tool.1 +man/man1/make-dylan-app.1 +man/man1/melange.1 +man/man1/mindy.1 +man/man1/mindycomp.1 +man/man1/mindyexec.1 +man/man1/parsergen.1 +man/man4/platforms.descr.4 +man/man7/dylan.7 +man/man7/gwydion.7 +share/dylan/platforms.descr +@dirrm share/dylan +@exec ${MKDIR} %D/lib/dylan/${PKGVERSION}/${ALT_ARCH}-${LOWER_OPSYS}-gcc/elisp +@dirrm lib/dylan/${PKGVERSION}/${ALT_ARCH}-${LOWER_OPSYS}-gcc/elisp +@exec ${MKDIR} %D/lib/dylan/${PKGVERSION}/${ALT_ARCH}-${LOWER_OPSYS}-gcc/dylan-user +@dirrm lib/dylan/${PKGVERSION}/${ALT_ARCH}-${LOWER_OPSYS}-gcc/dylan-user +@dirrm lib/dylan/${PKGVERSION}/${ALT_ARCH}-${LOWER_OPSYS}-gcc +@dirrm lib/dylan/${PKGVERSION} +@dirrm lib/dylan diff --git a/lang/gwydion-dylan/distinfo b/lang/gwydion-dylan/distinfo new file mode 100644 index 00000000000..1236c4b9b64 --- /dev/null +++ b/lang/gwydion-dylan/distinfo @@ -0,0 +1,8 @@ +$NetBSD: distinfo,v 1.1.1.1 2005/12/31 22:42:31 markd Exp $ + +SHA1 (gwydion-dylan-2.4.0.tar.gz) = 6fea71a876013fff94a37f8a84fdc5d8245e8c9f +RMD160 (gwydion-dylan-2.4.0.tar.gz) = 2bd5218e1dd36182489e1854c92ae6baf5690974 +Size (gwydion-dylan-2.4.0.tar.gz) = 3623651 bytes +SHA1 (patch-aa) = 9cc842772e56f389572031e0550606c00fc740f5 +SHA1 (patch-ab) = 155336fc1d07f10d675b95d4c2b524b8bfbbaa4e +SHA1 (patch-ac) = 436d1e853e724c5d4ea4d9c83a6f267124f9402b diff --git a/lang/gwydion-dylan/patches/patch-aa b/lang/gwydion-dylan/patches/patch-aa new file mode 100644 index 00000000000..11232c6c481 --- /dev/null +++ b/lang/gwydion-dylan/patches/patch-aa @@ -0,0 +1,23 @@ +$NetBSD: patch-aa,v 1.1.1.1 2005/12/31 22:42:31 markd Exp $ + +--- d2c/compiler/platforms.descr.orig 2004-10-18 08:17:02.000000000 +1300 ++++ d2c/compiler/platforms.descr +@@ -590,6 +590,18 @@ inherit-from: gcc netbsd x86 + default-c-compiler-flags: -I. -I%s -I/usr/X11R6/include -fomit-frame-pointer -fno-strict-aliasing + link-shared-library-command: $(LIBTOOL) --mode=link gcc -o %s %s -rpath %s + ++platform-name: ppc-netbsd-gcc ++inherit-from: gcc netbsd ppc ++link-shared-library-command: $(LIBTOOL) --mode=link gcc -o %s %s -rpath %s ++long-long-size: 8 ++long-long-alignment: 4 ++ ++platform-name: sparc-netbsd-gcc ++inherit-from: gcc netbsd sparc ++link-shared-library-command: $(LIBTOOL) --mode=link gcc -o %s %s -rpath %s ++long-long-size: 8 ++long-long-alignment: 4 ++ + platform-name: x86-beos-gcc + // Note: These rules depend on the presence of the MingW utilities in your + // system PATH. You may elect to build using Microsoft's compiler, but diff --git a/lang/gwydion-dylan/patches/patch-ab b/lang/gwydion-dylan/patches/patch-ab new file mode 100644 index 00000000000..b8f925f403b --- /dev/null +++ b/lang/gwydion-dylan/patches/patch-ab @@ -0,0 +1,26 @@ +$NetBSD: patch-ab,v 1.1.1.1 2005/12/31 22:42:31 markd Exp $ + +--- configure.in.orig 2004-10-18 12:14:45.000000000 +1300 ++++ configure.in +@@ -128,6 +128,8 @@ case $1 in + powerpc-apple-darwin*) $2=ppc-darwin-gcc ;; + mips-sgi-irix*) $2=mips-irix-gcc ;; + i*86-*-netbsd*) $2=x86-netbsd-gcc ;; ++ powerpc-*-netbsd*) $2=ppc-netbsd-gcc ;; ++ sparc-*-netbsd*) $2=sparc-netbsd-gcc ;; + *) $2=unknown-unix ;; + esac]) + +@@ -1103,8 +1105,10 @@ $srcdir/mkinstalldirs mindy tools + # in and of itself) and configure tries to create the *.dylan files before + # we build our buildroot tree causing things to flame out horribly. + AC_OUTPUT(Defaults gwydion-dylan.spec mindy/comp/Makefile mindy/interp/Makefile mindy/compat/Makefile mindy/etc/Makefile mindy/etc/generate-depends mindy/interp/make-init.pl tools/shared-misc/gen-makefile tools/shared-misc/mk-build-tree tools/shared-misc/line-count tools/shared-misc/make-dylan-app tools/shared-misc/make-dylan-lib tools/shared-misc/update-libdirs tools/unix-misc/mk-rcs-links doc/Makefile doc/dylan.7 doc/gwydion.7 doc/d2c.1 doc/dybug.1 doc/mindy.1 doc/mindycomp.1 doc/mindyexec.1 doc/melange.1 doc/parsergen.1 doc/make-dylan-app.1 doc/gobject-tool.1 doc/platforms.descr.4, +- [${INSTALL} -m uog+rx $buildroot/tools/shared-misc/mk-build-tree ./ +- ${INSTALL} -m uog+rx $buildroot/tools/shared-misc/gen-makefile ./ ++ [cp $buildroot/tools/shared-misc/mk-build-tree ./ ++ cp $buildroot/tools/shared-misc/gen-makefile ./ ++ chmod uog+rx ./mk-build-tree ++ chmod uog+rx ./gen-makefile + (PATH=$buildroot:$PATH; export PATH; perl mk-build-tree -p$srcdir/d2c/compiler/platforms.descr) + touch $buildroot/force.timestamp + ], [ diff --git a/lang/gwydion-dylan/patches/patch-ac b/lang/gwydion-dylan/patches/patch-ac new file mode 100644 index 00000000000..49aa1510b1d --- /dev/null +++ b/lang/gwydion-dylan/patches/patch-ac @@ -0,0 +1,44 @@ +$NetBSD: patch-ac,v 1.1.1.1 2005/12/31 22:42:31 markd Exp $ + +--- configure.orig 2005-12-31 09:43:48.000000000 +1300 ++++ configure +@@ -1783,6 +1783,8 @@ case $build in + powerpc-apple-darwin*) d2c_build=ppc-darwin-gcc ;; + mips-sgi-irix*) d2c_build=mips-irix-gcc ;; + i*86-*-netbsd*) d2c_build=x86-netbsd-gcc ;; ++ powerpc-*-netbsd*) d2c_build=ppc-netbsd-gcc ;; ++ sparc-*-netbsd*) d2c_build=sparc-netbsd-gcc ;; + *) d2c_build=unknown-unix ;; + esac + echo "$as_me:$LINENO: result: $d2c_build" >&5 +@@ -1830,6 +1832,8 @@ case $host in + powerpc-apple-darwin*) d2c_host=ppc-darwin-gcc ;; + mips-sgi-irix*) d2c_host=mips-irix-gcc ;; + i*86-*-netbsd*) d2c_host=x86-netbsd-gcc ;; ++ powerpc-*-netbsd*) d2c_host=ppc-netbsd-gcc ;; ++ sparc-*-netbsd*) d2c_host=sparc-netbsd-gcc ;; + *) d2c_host=unknown-unix ;; + esac + echo "$as_me:$LINENO: result: $d2c_host" >&5 +@@ -1897,6 +1901,8 @@ case $target in + powerpc-apple-darwin*) d2c_target=ppc-darwin-gcc ;; + mips-sgi-irix*) d2c_target=mips-irix-gcc ;; + i*86-*-netbsd*) d2c_target=x86-netbsd-gcc ;; ++ powerpc-*-netbsd*) d2c_target=ppc-netbsd-gcc ;; ++ sparc-*-netbsd*) d2c_target=sparc-netbsd-gcc ;; + *) d2c_target=unknown-unix ;; + esac + echo "$as_me:$LINENO: result: $d2c_target" >&5 +@@ -28800,8 +28806,10 @@ esac + { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 + echo "$as_me: executing $ac_dest commands" >&6;} + case $ac_dest in +- default ) ${INSTALL} -m uog+rx $buildroot/tools/shared-misc/mk-build-tree ./ +- ${INSTALL} -m uog+rx $buildroot/tools/shared-misc/gen-makefile ./ ++ default ) cp $buildroot/tools/shared-misc/mk-build-tree ./ ++ cp $buildroot/tools/shared-misc/gen-makefile ./ ++ chmod uog+rx ./mk-build-tree ++ chmod uog+rx ./gen-makefile + (PATH=$buildroot:$PATH; export PATH; perl mk-build-tree -p$srcdir/d2c/compiler/platforms.descr) + touch $buildroot/force.timestamp + ;; |