summaryrefslogtreecommitdiff
path: root/lang/icon
diff options
context:
space:
mode:
authoragc <agc>1997-10-06 14:51:03 +0000
committeragc <agc>1997-10-06 14:51:03 +0000
commit6815989082a24637637017d0795a9c9735ddfd49 (patch)
treee09348c800e8880ab1546ac9a88260dac0f5ee84 /lang/icon
parent5a3fa2f836f07aeb7bf4e766fd504398453291e0 (diff)
downloadpkgsrc-6815989082a24637637017d0795a9c9735ddfd49.tar.gz
Initial import of FreeBSD lang ports into the NetBSD
packages system.
Diffstat (limited to 'lang/icon')
-rw-r--r--lang/icon/Makefile19
-rw-r--r--lang/icon/files/md51
-rw-r--r--lang/icon/patches/patch-aa17
-rw-r--r--lang/icon/patches/patch-ab18
-rw-r--r--lang/icon/patches/patch-ca58
-rw-r--r--lang/icon/patches/patch-cc45
-rw-r--r--lang/icon/patches/patch-cd76
-rw-r--r--lang/icon/pkg/COMMENT1
-rw-r--r--lang/icon/pkg/DESCR25
-rw-r--r--lang/icon/pkg/PLIST9
-rw-r--r--lang/icon/scripts/configure3
11 files changed, 272 insertions, 0 deletions
diff --git a/lang/icon/Makefile b/lang/icon/Makefile
new file mode 100644
index 00000000000..dc8c5595a50
--- /dev/null
+++ b/lang/icon/Makefile
@@ -0,0 +1,19 @@
+# New ports collection makefile for: icon
+# Version required: 9.3
+# Date created: 05 April 1995
+# Whom: thomas@ghpc8.ihf.rwth-aachen.de
+#
+# FreeBSD Id: Makefile,v 1.8 1997/02/12 08:39:15 tg Exp
+#
+
+DISTNAME= unix
+PKGNAME= icon-9.3
+CATEGORIES= lang
+MASTER_SITES= ftp://ftp.cs.arizona.edu/icon/packages/unix/
+
+MAINTAINER= ports@freebsd.org
+
+NO_WRKSUBDIR= true
+ALL_TARGET= Icon Icon-iconc
+
+.include <bsd.port.mk>
diff --git a/lang/icon/files/md5 b/lang/icon/files/md5
new file mode 100644
index 00000000000..1c19b603ccf
--- /dev/null
+++ b/lang/icon/files/md5
@@ -0,0 +1 @@
+MD5 (unix.tar.gz) = 6fa53241bb6eff844b155c22a98c2150
diff --git a/lang/icon/patches/patch-aa b/lang/icon/patches/patch-aa
new file mode 100644
index 00000000000..7795de34fde
--- /dev/null
+++ b/lang/icon/patches/patch-aa
@@ -0,0 +1,17 @@
+--- config/unix/i386_freebsd/define.h.orig Tue Mar 7 21:50:58 1995
++++ config/unix/i386_freebsd/define.h Sat Nov 2 17:24:10 1996
+@@ -21,6 +21,7 @@
+
+ #define Standard
+ #define Double
++#define IconEcvt
+ #define IconGcvt
+ #define GetHost
+ #define SysOpt
+@@ -41,5 +42,5 @@
+ #define LoadFunc
+ #define SystemFnc
+
+-
++#define LinkLibs " -lm"
+ #define COpts "-I/usr/X11R6/include"
diff --git a/lang/icon/patches/patch-ab b/lang/icon/patches/patch-ab
new file mode 100644
index 00000000000..d20f29f9044
--- /dev/null
+++ b/lang/icon/patches/patch-ab
@@ -0,0 +1,18 @@
+--- src/runtime/rmisc.r.orig Sat Nov 4 00:26:32 1995
++++ src/runtime/rmisc.r Sat Nov 2 16:48:35 1996
+@@ -125,15 +125,6 @@
+ return buf;
+ #endif /* OS2EMX */
+
+-#if FreeBSD
+-#define ecvt(w,x,y,z) 0
+-
+- sprintf(buf, "%f", number);
+- for(i=strlen(buf); i>1 && buf[i-1]=='0' && buf[i-2]!='.'; i--)
+- buf[i-1] = '\0';
+- return buf;
+-#endif /* FreeBSD */
+-
+ p1 = ecvt(number, ndigit, &decpt, &sign);
+ p2 = buf;
+ if (sign)
diff --git a/lang/icon/patches/patch-ca b/lang/icon/patches/patch-ca
new file mode 100644
index 00000000000..5dc9692650a
--- /dev/null
+++ b/lang/icon/patches/patch-ca
@@ -0,0 +1,58 @@
+*** Makefile.orig Fri Jul 29 21:41:19 1994
+--- Makefile Wed Mar 1 19:34:18 1995
+***************
+*** 241,243 ****
+--- 241,259 ----
+ -cd tests; $(MAKE) Clean
+
+ ##################################################################
++
++ install:
++ @bin/patchstr bin/iconc ${PREFIX}/share/icon/
++ @bin/patchstr bin/icont ${PREFIX}/bin/iconx
++ install -c -s -g bin -o bin -m 755 bin/iconc ${PREFIX}/bin/iconc
++ install -c -s -g bin -o bin -m 755 bin/icont ${PREFIX}/bin/icont
++ install -c -s -g bin -o bin -m 755 bin/iconx ${PREFIX}/bin/iconx
++ install -c -s -g bin -o bin -m 755 bin/patchstr ${PREFIX}/bin/patchstr
++ @mkdir -p ${PREFIX}/share/icon
++ install -c -g bin -o bin -m 644 bin/dlrgint.o ${PREFIX}/share/icon/dlrgint.o
++ install -c -g bin -o bin -m 644 bin/rt.a ${PREFIX}/share/icon/rt.a
++ install -c -g bin -o bin -m 644 bin/rt.db ${PREFIX}/share/icon/rt.db
++ install -c -g bin -o bin -m 644 bin/rt.h ${PREFIX}/share/icon/rt.h
++ @mkdir -p ${PREFIX}/man/man1
++ install -c -g bin -o bin -m 444 docs/icon.1 ${PREFIX}/man/man1/icon.1
++ @gzip -9fn ${PREFIX}/man/man1/icon.1
+*** config/unix/Config/Makefile.orig Fri Jul 29 21:40:55 1994
+--- config/unix/Config/Makefile Wed Mar 1 14:27:05 1995
+***************
+*** 1,7 ****
+- CC=cc
+- CFLAGS= -DVarTran
+- LDFLAGS=
+ SHELL=/bin/sh
+ MAKE=make
+
+ all:
+--- 1,5 ----
+ SHELL=/bin/sh
++ CFLAGS+= -DVarTran
+ MAKE=make
+
+ all:
+*** src/vtran/Vtmake2.orig Fri Jul 29 21:25:28 1994
+--- src/vtran/Vtmake2 Wed Mar 1 14:27:14 1995
+***************
+*** 1,7 ****
+- CC=cc
+- CFLAGS= -DVarTran
+- LDFLAGS=
+ SHELL=/bin/sh
+ MAKE=make
+
+ OBJS= cat.o tparse.o tlex.o tmem.o trans.o \
+--- 1,5 ----
+ SHELL=/bin/sh
++ CFLAGS+= -DVarTran
+ MAKE=make
+
+ OBJS= cat.o tparse.o tlex.o tmem.o trans.o \
diff --git a/lang/icon/patches/patch-cc b/lang/icon/patches/patch-cc
new file mode 100644
index 00000000000..86ff84ffe76
--- /dev/null
+++ b/lang/icon/patches/patch-cc
@@ -0,0 +1,45 @@
+*** src/h/sys.h.orig Fri Jul 29 21:24:57 1994
+--- src/h/sys.h Wed Mar 1 15:43:55 1995
+***************
+*** 181,192 ****
+--- 181,195 ----
+ #include <sys/ioctl.h>
+ #include <errno.h>
+ #include <sys/signal.h>
++ #ifdef __FreeBSD__
++ #include <sgtty.h>
++ #endif
+ #endif /* HaveTioc */
+
+ #endif /* KeyboardFncs */
+
+ #ifdef LoadFunc
+ #include <dlfcn.h>
+ #endif /* LoadFunc */
+
+ #endif /* UNIX */
+*** src/runtime/fload.r.orig Fri Jul 29 21:22:51 1994
+--- src/runtime/fload.r Sun Apr 16 14:02:26 1995
+***************
+*** 24,29 ****
+--- 24,33 ----
+
+ #ifdef FreeBSD
+
++ /* Look at the DL_GETERRNO constant, if it exists this is FreeBSD 1.1.5
++ or 2.0. If it doesn't exist this must be post 2.0 with an dlerror */
++
++ #passthru #ifdef DL_GETERRNO
+ /* Sorry, no dlerror() on FreeBSD. Fake it. */
+ char *dlerror(void)
+ {
+***************
+*** 34,39 ****
+--- 38,44 ----
+ else
+ return(NULL);
+ }
++ #passthru #endif
+
+ #endif /* __FreeBSD__ */
+
diff --git a/lang/icon/patches/patch-cd b/lang/icon/patches/patch-cd
new file mode 100644
index 00000000000..51b3432e112
--- /dev/null
+++ b/lang/icon/patches/patch-cd
@@ -0,0 +1,76 @@
+*** ipl/procs/evinit.icn.orig Fri Jul 29 21:32:02 1994
+--- ipl/procs/evinit.icn Wed Mar 1 20:50:24 1995
+***************
+*** 17,23 ****
+ #
+ ############################################################################
+
+! $include "evdefs.icn"
+
+ procedure EvInit(f,input,output,error)
+ if not MTEvInit(f,input,output,error) then fail
+--- 17,23 ----
+ #
+ ############################################################################
+
+! $include "../incl/evdefs.icn"
+
+ procedure EvInit(f,input,output,error)
+ if not MTEvInit(f,input,output,error) then fail
+*** ipl/procs/evnames.icn.orig Fri Jul 29 21:32:02 1994
+--- ipl/procs/evnames.icn Wed Mar 1 20:50:34 1995
+***************
+*** 29,35 ****
+
+ link twt
+
+! $include "evdefs.icn"
+
+ procedure evnames()
+ static namemap
+--- 29,35 ----
+
+ link twt
+
+! $include "../incl/evdefs.icn"
+
+ procedure evnames()
+ static namemap
+*** ipl/procs/evsyms.icn.orig Fri Jul 29 21:31:37 1994
+--- ipl/procs/evsyms.icn Wed Mar 1 20:50:48 1995
+***************
+*** 28,34 ****
+
+ link twt
+
+! $include "evdefs.icn"
+
+ procedure evsyms()
+ static symmap
+--- 28,34 ----
+
+ link twt
+
+! $include "../incl/evdefs.icn"
+
+ procedure evsyms()
+ static symmap
+*** ipl/procs/typesyms.icn.orig Fri Jul 29 21:32:08 1994
+--- ipl/procs/typesyms.icn Wed Mar 1 20:50:59 1995
+***************
+*** 27,33 ****
+ #
+ ############################################################################
+
+! $include "evdefs.icn"
+
+ procedure typesyms()
+ static typetable
+--- 27,33 ----
+ #
+ ############################################################################
+
+! $include "../incl/evdefs.icn"
+
+ procedure typesyms()
+ static typetable
diff --git a/lang/icon/pkg/COMMENT b/lang/icon/pkg/COMMENT
new file mode 100644
index 00000000000..30f915cb250
--- /dev/null
+++ b/lang/icon/pkg/COMMENT
@@ -0,0 +1 @@
+The Icon programming language.
diff --git a/lang/icon/pkg/DESCR b/lang/icon/pkg/DESCR
new file mode 100644
index 00000000000..a66e0a4df81
--- /dev/null
+++ b/lang/icon/pkg/DESCR
@@ -0,0 +1,25 @@
+ Icon is a high-level programming language with extensive
+facilities for processing strings and structures. Icon has
+several novel features, including expressions that may produce
+sequences of results, goal-directed evaluation that automatically
+searches for a successful result, and string scanning that allows
+operations on strings to be formulated at a high conceptual
+level.
+
+ Icon emphasizes high-level string processing and a design phi-
+losophy that allows ease of programming and short, concise pro-
+grams. Storage allocation and garbage collection are automatic in
+Icon, and there are few restrictions on the sizes of objects.
+Strings, lists, and other structures are created during program
+execution and their size does not need to be known when a program
+is written. Values are converted to expected types automati-
+cally; for example, numeral strings read in as input can be used
+in numerical computations without explicit conversion. Icon has
+an expression-based syntax with reserved words; in appearance,
+Icon programs resemble those of Pascal and C.
+
+The language is described in R. E. Griswold and M. T. Griswold, The
+Icon Programming Language, Prentice-Hall, Inc., Englewood Cliffs,
+NJ, second edition, 1990.
+
+
diff --git a/lang/icon/pkg/PLIST b/lang/icon/pkg/PLIST
new file mode 100644
index 00000000000..8f40f169858
--- /dev/null
+++ b/lang/icon/pkg/PLIST
@@ -0,0 +1,9 @@
+bin/iconc
+bin/icont
+bin/iconx
+bin/patchstr
+share/icon/dlrgint.o
+share/icon/rt.a
+share/icon/rt.db
+share/icon/rt.h
+man/man1/icon.1.gz
diff --git a/lang/icon/scripts/configure b/lang/icon/scripts/configure
new file mode 100644
index 00000000000..552ae9f30e2
--- /dev/null
+++ b/lang/icon/scripts/configure
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+cd ${WRKSRC}; make Configure name=i386_freebsd