summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorOliver Braun <obraun@FreeBSD.org>2003-03-05 16:06:49 +0000
committerOliver Braun <obraun@FreeBSD.org>2003-03-05 16:06:49 +0000
commit326579a25fee45ed91b801485928be93317c284c (patch)
tree5ddc0a93dff820cca630146d3bd70ee86ee83020 /lang
parentUpdate to snap-16.1g. This fixes occasional core dumps with large (diff)
Add ohugs 0.5, interpreter for Haskell with object-oriented features.
PR: ports/48946 Submitted by: Steffen Mazanek <steffen.mazanek@unibw-muenchen.de>
Notes
Notes: svn path=/head/; revision=76948
Diffstat (limited to 'lang')
-rw-r--r--lang/Makefile1
-rw-r--r--lang/ohugs/Makefile30
-rw-r--r--lang/ohugs/distinfo1
-rw-r--r--lang/ohugs/files/extra-patch-graphics53
-rw-r--r--lang/ohugs/files/extra-patch-text64
-rw-r--r--lang/ohugs/pkg-descr7
-rw-r--r--lang/ohugs/pkg-plist33
7 files changed, 189 insertions, 0 deletions
diff --git a/lang/Makefile b/lang/Makefile
index 7d7cc301668b..99e807f185f2 100644
--- a/lang/Makefile
+++ b/lang/Makefile
@@ -121,6 +121,7 @@
SUBDIR += objc
SUBDIR += ocaml
SUBDIR += ocaml-mode.el
+ SUBDIR += ohugs
SUBDIR += onyx
SUBDIR += oo2c
SUBDIR += open-cobol
diff --git a/lang/ohugs/Makefile b/lang/ohugs/Makefile
new file mode 100644
index 000000000000..d389ca120897
--- /dev/null
+++ b/lang/ohugs/Makefile
@@ -0,0 +1,30 @@
+# New ports collection makefile for: ohugs
+# Date created: 03.03.03
+# Whom: Steffen Mazanek <steffen.mazanek@unibw-muenchen.de>
+# $FreeBSD$
+#
+
+PORTNAME= ohugs
+PORTVERSION= 0.5
+CATEGORIES= lang haskell
+MASTER_SITES= http://www.math.chalmers.se/~nordland/ohugs/
+DISTNAME= ${PORTNAME}-${PORTVERSION}.src
+
+MAINTAINER= steffen.mazanek@unibw-muenchen.de
+COMMENT= Interpreter for Haskell with object-oriented features
+
+.if !defined(WITHOUT_X11)
+LIB_DEPENDS= tix4182:${PORTSDIR}/x11-toolkits/tix
+.endif
+
+WRKSRC= ${WRKDIR}/${DISTNAME:S/.src//}
+USE_BISON= yes
+
+post-patch:
+.if !defined(WITHOUT_X11)
+ cd ${WRKDIR} && ${PATCH} < ${FILESDIR}/extra-patch-graphics
+.else
+ cd ${WRKDIR} && ${PATCH} < ${FILESDIR}/extra-patch-text
+.endif
+
+.include <bsd.port.mk>
diff --git a/lang/ohugs/distinfo b/lang/ohugs/distinfo
new file mode 100644
index 000000000000..16c9e30e795c
--- /dev/null
+++ b/lang/ohugs/distinfo
@@ -0,0 +1 @@
+MD5 (ohugs-0.5.src.tar.gz) = 9bdf37d0fc944dd64ed877a493d33b31
diff --git a/lang/ohugs/files/extra-patch-graphics b/lang/ohugs/files/extra-patch-graphics
new file mode 100644
index 000000000000..c3ac5fbbb2b2
--- /dev/null
+++ b/lang/ohugs/files/extra-patch-graphics
@@ -0,0 +1,53 @@
+diff -ruN ohugs-0.5/src/Makefile ohugs-0.5-graphics/src/Makefile
+--- ohugs-0.5/src/Makefile Fri Jan 26 19:37:15 2001
++++ ohugs-0.5-graphics/src/Makefile Wed Mar 5 13:39:23 2003
+@@ -41,12 +41,12 @@
+ # and set O_TK to 0 in prelude.h.
+
+ # Solaris
+-CFLAGS = -g -I/usr/X11/include -I/usr/pd/tcl/8.0/include
+-LDFLAGS = -lm -lX11 -lsocket -lreadline -ltermcap -lnsl -R/usr/X11/lib -R/usr/pd/tcl/8.0/lib -L/usr/pd/tcl/8.0/lib -ltk8.0 -ltcl8.0 -ltix4.1.8.0
++#CFLAGS = -g -I/usr/X11/include -I/usr/pd/tcl/8.0/include
++#LDFLAGS = -lm -lX11 -lsocket -lreadline -ltermcap -lnsl -R/usr/X11/lib -R/usr/pd/tcl/8.0/lib -L/usr/pd/tcl/8.0/lib -ltk8.0 -ltcl8.0 -ltix4.1.8.0
+
+ # NetBSD
+-#CFLAGS = -g -I/usr/X11/include -I/usr/pkg/include/tk8.0 -I/usr/pkg/include -I/usr/pkg/include/tcl8.0
+-#LDFLAGS = -lm -lreadline -ltermcap -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/X11/lib -Wl,-R/usr/X11/lib -lX11 -ltk80 -ltcl80 -ltix4180
++CFLAGS = -g -I/usr/local/include/tcl8.2 -I/usr/local/include/tk8.2 -I/usr/local/include -I/usr/X11R6/include
++LDFLAGS = -lm -lreadline -ltermcap -L/usr/local/lib -ltk82 -ltcl82 -L/usr/local/lib -ltix4182
+
+ # Linux
+ #CFLAGS = -g -I/usr/X11R6/include
+diff -ruN ohugs-0.5/src/parser.y ohugs-0.5-graphics/src/parser.y
+--- ohugs-0.5/src/parser.y Wed Nov 29 23:13:01 2000
++++ ohugs-0.5-graphics/src/parser.y Wed Mar 5 13:38:25 2003
+@@ -564,7 +564,7 @@
+ handle : HANDLE beg malts end {$$ = gc4(rev($3));}
+ ;
+ ohandle : handle {$$ = $1;}
+- | /*empty*/ {$$ = gc0(NIL);}
++ | /*empty*/ {$$ = gc0(NIL);};
+ mexp : mopExp COCO sigType {$$ = gc3(ap(ESIGN,pair($1,$3)));}
+ | mopExp {$$ = $1;}
+ ;
+diff -ruN ohugs-0.5/src/prelude.h ohugs-0.5-graphics/src/prelude.h
+--- ohugs-0.5/src/prelude.h Wed Jan 31 00:18:40 2001
++++ ohugs-0.5-graphics/src/prelude.h Wed Mar 5 13:37:59 2003
+@@ -22,7 +22,7 @@
+ * update the source.
+ *-------------------------------------------------------------------------*/
+
+-#define SOLARIS 1 /* For Solaris 2.4 */
++#define SOLARIS 0 /* For Solaris 2.4 */
+ #define SUNOS 0 /* For Sun 3/Sun 4 running SunOs 4.x */
+ #define BCWIN16 0 /* For Windows 3.1, Borland C++ 4.52 */
+ #define BCWIN32 0 /* For Windows 32, Borland C++ 4.52 */
+@@ -44,7 +44,7 @@
+ #define AIX 0 /* For IBM AIX on RS/6000 using GCC UN */
+ #define ATARI 0 /* For Atari ST/STE/TT/Falcon w/ Lattice C 5.52 UN */
+ #define SGI4 0 /* For SiliconGraphics Indigo, IRIX v*4*.0.5 UN */
+-#define NETBSD 0 /* For NetBSD-current UN */
++#define NETBSD 1 /* For NetBSD-current UN */
+ #define MACWP 0 /* For Macintosh PPC/68K using CodeWarrior Pro */
+
+ /*---------------------------------------------------------------------------
diff --git a/lang/ohugs/files/extra-patch-text b/lang/ohugs/files/extra-patch-text
new file mode 100644
index 000000000000..1d4d6619f63b
--- /dev/null
+++ b/lang/ohugs/files/extra-patch-text
@@ -0,0 +1,64 @@
+diff -ruN ohugs-0.5/src/Makefile ohugs-0.5-text/src/Makefile
+--- ohugs-0.5/src/Makefile Fri Jan 26 19:37:15 2001
++++ ohugs-0.5-text/src/Makefile Wed Mar 5 13:42:16 2003
+@@ -41,12 +41,12 @@
+ # and set O_TK to 0 in prelude.h.
+
+ # Solaris
+-CFLAGS = -g -I/usr/X11/include -I/usr/pd/tcl/8.0/include
+-LDFLAGS = -lm -lX11 -lsocket -lreadline -ltermcap -lnsl -R/usr/X11/lib -R/usr/pd/tcl/8.0/lib -L/usr/pd/tcl/8.0/lib -ltk8.0 -ltcl8.0 -ltix4.1.8.0
++#CFLAGS = -g -I/usr/X11/include -I/usr/pd/tcl/8.0/include
++#LDFLAGS = -lm -lX11 -lsocket -lreadline -ltermcap -lnsl -R/usr/X11/lib -R/usr/pd/tcl/8.0/lib -L/usr/pd/tcl/8.0/lib -ltk8.0 -ltcl8.0 -ltix4.1.8.0
+
+ # NetBSD
+-#CFLAGS = -g -I/usr/X11/include -I/usr/pkg/include/tk8.0 -I/usr/pkg/include -I/usr/pkg/include/tcl8.0
+-#LDFLAGS = -lm -lreadline -ltermcap -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/X11/lib -Wl,-R/usr/X11/lib -lX11 -ltk80 -ltcl80 -ltix4180
++CFLAGS = -g
++LDFLAGS = -lm -lreadline -ltermcap
+
+ # Linux
+ #CFLAGS = -g -I/usr/X11R6/include
+diff -ruN ohugs-0.5/src/parser.y ohugs-0.5-text/src/parser.y
+--- ohugs-0.5/src/parser.y Wed Nov 29 23:13:01 2000
++++ ohugs-0.5-text/src/parser.y Wed Mar 5 13:42:25 2003
+@@ -564,7 +564,7 @@
+ handle : HANDLE beg malts end {$$ = gc4(rev($3));}
+ ;
+ ohandle : handle {$$ = $1;}
+- | /*empty*/ {$$ = gc0(NIL);}
++ | /*empty*/ {$$ = gc0(NIL);};
+ mexp : mopExp COCO sigType {$$ = gc3(ap(ESIGN,pair($1,$3)));}
+ | mopExp {$$ = $1;}
+ ;
+diff -ruN ohugs-0.5/src/prelude.h ohugs-0.5-text/src/prelude.h
+--- ohugs-0.5/src/prelude.h Wed Jan 31 00:18:40 2001
++++ ohugs-0.5-text/src/prelude.h Wed Mar 5 13:40:56 2003
+@@ -22,7 +22,7 @@
+ * update the source.
+ *-------------------------------------------------------------------------*/
+
+-#define SOLARIS 1 /* For Solaris 2.4 */
++#define SOLARIS 0 /* For Solaris 2.4 */
+ #define SUNOS 0 /* For Sun 3/Sun 4 running SunOs 4.x */
+ #define BCWIN16 0 /* For Windows 3.1, Borland C++ 4.52 */
+ #define BCWIN32 0 /* For Windows 32, Borland C++ 4.52 */
+@@ -44,7 +44,7 @@
+ #define AIX 0 /* For IBM AIX on RS/6000 using GCC UN */
+ #define ATARI 0 /* For Atari ST/STE/TT/Falcon w/ Lattice C 5.52 UN */
+ #define SGI4 0 /* For SiliconGraphics Indigo, IRIX v*4*.0.5 UN */
+-#define NETBSD 0 /* For NetBSD-current UN */
++#define NETBSD 1 /* For NetBSD-current UN */
+ #define MACWP 0 /* For Macintosh PPC/68K using CodeWarrior Pro */
+
+ /*---------------------------------------------------------------------------
+@@ -103,8 +103,8 @@
+ #define HAS_FLOATS (REGULAR_HUGS | LARGE_HUGS | BREAK_FLOATS)
+
+ #define OBJ 1 /* Object-oriented extensions */
+-#define O_TK 1 /* Tcl/Tk extension (needs OBJ) */
+-#define O_TIX 1 /* Tix extension (needs O_TK) */
++#define O_TK 0 /* Tcl/Tk extension (needs OBJ) */
++#define O_TIX 0 /* Tix extension (needs O_TK) */
+ #define O_IP 1 /* TCP/UDP/IP support (needs OBJ) */
+ #define HASKELL_ARRAYS 1
+ #define FLAT_ARRAYS 0 /* Warning: Setting 1 is not currently supported */
diff --git a/lang/ohugs/pkg-descr b/lang/ohugs/pkg-descr
new file mode 100644
index 000000000000..fa36e3797332
--- /dev/null
+++ b/lang/ohugs/pkg-descr
@@ -0,0 +1,7 @@
+OHugs is an approach to combine the features of functional programming
+languages (Haskell) with object-oriented languages.
+
+WWW: http://www.math.chalmers.se/~nordland/ohugs/
+
+Steffen Mazanek
+<steffen.mazanek@unibw-muenchen.de>
diff --git a/lang/ohugs/pkg-plist b/lang/ohugs/pkg-plist
new file mode 100644
index 000000000000..800390147822
--- /dev/null
+++ b/lang/ohugs/pkg-plist
@@ -0,0 +1,33 @@
+bin/ohugs
+bin/rohugs
+lib/ohugs/lib/Array.hs
+lib/ohugs/lib/Char.hs
+lib/ohugs/lib/Complex.hs
+lib/ohugs/lib/IO.hs
+lib/ohugs/lib/Ix.hs
+lib/ohugs/lib/List.hs
+lib/ohugs/lib/Maybe.hs
+lib/ohugs/lib/Monad.hs
+lib/ohugs/lib/Prelude.hs
+lib/ohugs/lib/Random.hs
+lib/ohugs/lib/Rational.hs
+lib/ohugs/lib/System.hs
+lib/ohugs/lib/Tix.hs
+lib/ohugs/lib/Tk.hs
+lib/ohugs/lib/TkUtil.hs
+lib/ohugs/libhugs/AnsiInteract.hs
+lib/ohugs/libhugs/AnsiScreen.hs
+lib/ohugs/libhugs/HugsLibs.hs
+lib/ohugs/libhugs/IORef.hs
+lib/ohugs/libhugs/Interact.hs
+lib/ohugs/libhugs/Number.hs
+lib/ohugs/libhugs/ParseLib.hs
+lib/ohugs/libhugs/ST.hs
+lib/ohugs/libhugs/STArray.hs
+lib/ohugs/libhugs/StdLibs.hs
+lib/ohugs/libhugs/Trace.hs
+lib/ohugs/rohugs
+lib/ohugs/ohugs
+@dirrm lib/ohugs/libhugs
+@dirrm lib/ohugs/lib
+@dirrm lib/ohugs