diff options
author | agc <agc@pkgsrc.org> | 2002-09-02 16:43:03 +0000 |
---|---|---|
committer | agc <agc@pkgsrc.org> | 2002-09-02 16:43:03 +0000 |
commit | 5cff88a67539324863393f903f26c63a6a4c50ad (patch) | |
tree | 2503bcddf0e599e29e2a0feba3ce450fce63707e | |
parent | aefd80f32a1505fdb66344bc9f501585d8aade89 (diff) | |
download | pkgsrc-5cff88a67539324863393f903f26c63a6a4c50ad.tar.gz |
Initial import of rexx-imc 1.76 into the NetBSD Packages Collection.
REXX/imc is a Rexx interpreter for Unix. It supports all the standard
instructions and built-in functions, plus a small number of
extensions, and has a partial implementation of the SAA API allowing
applications to call Rexx programs and to register addressing
environments, Rexx functions, and exit handlers.
This package was created by myself, including bypassing the standard
configuration method, and the provision of a Makefile with libtool
support.
-rw-r--r-- | lang/rexx-imc/DESCR | 5 | ||||
-rw-r--r-- | lang/rexx-imc/Makefile | 16 | ||||
-rw-r--r-- | lang/rexx-imc/PLIST | 25 | ||||
-rw-r--r-- | lang/rexx-imc/distinfo | 6 | ||||
-rw-r--r-- | lang/rexx-imc/patches/patch-aa | 74 | ||||
-rw-r--r-- | lang/rexx-imc/patches/patch-ab | 15 |
6 files changed, 141 insertions, 0 deletions
diff --git a/lang/rexx-imc/DESCR b/lang/rexx-imc/DESCR new file mode 100644 index 00000000000..a6e2d1dca0b --- /dev/null +++ b/lang/rexx-imc/DESCR @@ -0,0 +1,5 @@ +REXX/imc is a Rexx interpreter for Unix. It supports all the standard +instructions and built-in functions, plus a small number of +extensions, and has a partial implementation of the SAA API allowing +applications to call Rexx programs and to register addressing +environments, Rexx functions, and exit handlers. diff --git a/lang/rexx-imc/Makefile b/lang/rexx-imc/Makefile new file mode 100644 index 00000000000..4a445345fe5 --- /dev/null +++ b/lang/rexx-imc/Makefile @@ -0,0 +1,16 @@ +# $NetBSD: Makefile,v 1.1.1.1 2002/09/02 16:43:03 agc Exp $ +# + +DISTNAME= rexx-imc-1.76 +CATEGORIES= lang +MASTER_SITES= http://users.comlab.ox.ac.uk/ian.collier/distribution/ \ + ftp://ftp.sai.msu.su/pub/unix/rexx/ \ + ftp://crydee.sai.msu.ru/zeus/unix/rexx/ + +MAINTAINER= packages@netbsd.org +HOMEPAGE= http://users.comlab.ox.ac.uk/ian.collier/Rexx/ +COMMENT= implementation of IBM's REXX scripting langauge + +USE_LIBTOOL= yes + +.include "../../mk/bsd.pkg.mk" diff --git a/lang/rexx-imc/PLIST b/lang/rexx-imc/PLIST new file mode 100644 index 00000000000..96b3c995e98 --- /dev/null +++ b/lang/rexx-imc/PLIST @@ -0,0 +1,25 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2002/09/02 16:43:03 agc Exp $ +bin/rexx +bin/rxque +bin/rxstack +include/rexxsaa.h +lib/librexx.a +lib/librexx.la +lib/librexx.so +lib/librexx.so.1 +lib/librexx.so.1.7 +lib/rxmathfn.rxfn +man/man1/rexx.1 +man/man1/rxque.1 +man/man1/rxstack.1 +share/doc/rexx-imc/rexx.info +share/doc/rexx-imc/rexx.ref +share/doc/rexx-imc/rexx.summary +share/doc/rexx-imc/rexx.tech +share/examples/rexx-imc/box +share/examples/rexx-imc/rexxcps.rexx +share/examples/rexx-imc/rexxtest.rexx +share/examples/rexx-imc/rxmathfn.rexx +share/examples/rexx-imc/shell.rexx +@dirrm share/examples/rexx-imc +@dirrm share/doc/rexx-imc diff --git a/lang/rexx-imc/distinfo b/lang/rexx-imc/distinfo new file mode 100644 index 00000000000..2ebafaf41cc --- /dev/null +++ b/lang/rexx-imc/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1.1.1 2002/09/02 16:43:03 agc Exp $ + +SHA1 (rexx-imc-1.76.tar.gz) = 3b567bf3e77e42f33eb0ad771ea17ed759c8b361 +Size (rexx-imc-1.76.tar.gz) = 251581 bytes +SHA1 (patch-aa) = 86b156b82ac8f41f769357bc1b30e3dcf55e9cf1 +SHA1 (patch-ab) = 2580390c041437448a2829faf97eb463a50e60a3 diff --git a/lang/rexx-imc/patches/patch-aa b/lang/rexx-imc/patches/patch-aa new file mode 100644 index 00000000000..e1e5f3b409b --- /dev/null +++ b/lang/rexx-imc/patches/patch-aa @@ -0,0 +1,74 @@ +$NetBSD: patch-aa,v 1.1.1.1 2002/09/02 16:43:03 agc Exp $ + +BSD-style Makefile (with libtool support) + +--- /dev/null Mon Sep 2 13:50:52 2002 ++++ Makefile Mon Sep 2 14:01:02 2002 +@@ -0,0 +1,67 @@ ++LIBTOOL= libtool ++ ++LIBDIR= ${PREFIX}/lib ++ ++REXXLIBDIR= ${PREFIX}/lib ++REXXIMC= ${PREFIX}/lib ++ ++RXDAY= 25 ++RXMONTH= 2 ++RXYEAR= 102 ++ ++DATE = -DDAY=$(RXDAY) -DMONTH=$(RXMONTH) -DYEAR=$(RXYEAR) ++ ++CCFLAGS= -DHAS_TTYCOM -D_REQUIRED -DRENAME_UNDELETE -DHAS_GMTOFF ++ ++FILEDEFS = -DREXXIMC=\"$(REXXIMC)\" -DREXXLIB=\"$(REXXLIBDIR)\" ++ ++LIBFILES = rexx.o rxfn.o calc.o util.o shell.o interface.o globals.o ++ ++LIBNAME= librexx.a ++ ++ ++all: ${LIBNAME} rexx rxque rxstack rxmathfn.rxfn ++ ++${LIBNAME}: ${LIBFILES} ++ ${LIBTOOL} --mode=link cc -o ${.TARGET:.a=.la} ${LIBFILES:.o=.lo} -rpath ${PREFIX}/lib -version-info 1:7 ++ ++rexx: ${LIBNAME} main.o ++ ${LIBTOOL} --mode=link ${CC} main.o ${LIBNAME:.a=.la} -L${LIBDIR} -o rexx ++ ++rxque: ${LIBNAME} rxque.o ++ ${LIBTOOL} --mode=link ${CC} rxque.o ${LIBNAME:.a=.la} -L${LIBDIR} -o rxque ++ ++rxstack: ${LIBNAME} rxstack.o ++ ${LIBTOOL} --mode=link ${CC} rxstack.o ${LIBNAME:.a=.la} -L${LIBDIR} -o rxstack ++ ++rxmathfn.rxfn: rxmathfn.c const.h functions.h ++ ${LIBTOOL} --mode=compile $(CC) $(OPTFLAG) $(CCFLAGS) ${DATE} ${FILEDEFS} -I. -c rxmathfn.c ++ $(LD) -Bshareable -o rxmathfn.rxfn .libs/rxmathfn.o -lm ++ ++.c.o: ++ ${LIBTOOL} --mode=compile $(CC) $(OPTFLAG) $(CCFLAGS) ${DATE} ${FILEDEFS} -c $*.c ++ ++INSTALL_DATA= install -c -o root -g wheel -m 444 ++INSTALL_SCRIPT= install -c -o root -g wheel -m 755 ++INSTALL_PROGRAM= ${INSTALL_SCRIPT} ++INSTALL_MAN= ${INSTALL_DATA} ++INSTALL_DATA_DIR= mkdir -p ++ ++install: ${LIBNAME} rexx rxque rxstack ++ ${LIBTOOL} --mode=install ${INSTALL_PROGRAM} rexx ${PREFIX}/bin ++ ${LIBTOOL} --mode=install ${INSTALL_PROGRAM} rxque ${PREFIX}/bin ++ ${LIBTOOL} --mode=install ${INSTALL_PROGRAM} rxstack ${PREFIX}/bin ++ ${LIBTOOL} --mode=install ${INSTALL_PROGRAM} ${LIBNAME:.a=.la} ${PREFIX}/lib ++ sed -e 's|@REXXLIBDIR@|${REXXLIBDIR}|g' rexx.1.in > ${PREFIX}/man/man1/rexx.1 ++ ${INSTALL_MAN} rxque.1 ${PREFIX}/man/man1 ++ ${INSTALL_MAN} rxstack.1 ${PREFIX}/man/man1 ++ ${INSTALL_PROGRAM} rxmathfn.rxfn ${PREFIX}/lib ++ ${INSTALL_MAN} rexxsaa.h ${PREFIX}/include ++ ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/rexx-imc ++ for f in rexx.info rexx.ref rexx.summary rexx.tech; do \ ++ ${INSTALL_MAN} $$f ${PREFIX}/share/doc/rexx-imc; \ ++ done ++ ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/rexx-imc ++ for f in box rexxcps.rexx rexxtest.rexx rxmathfn.rexx shell.rexx; do \ ++ ${INSTALL_SCRIPT} $$f ${PREFIX}/share/examples/rexx-imc;\ ++ done diff --git a/lang/rexx-imc/patches/patch-ab b/lang/rexx-imc/patches/patch-ab new file mode 100644 index 00000000000..e284b076f25 --- /dev/null +++ b/lang/rexx-imc/patches/patch-ab @@ -0,0 +1,15 @@ +$NetBSD: patch-ab,v 1.1.1.1 2002/09/02 16:43:03 agc Exp $ + +Generalise for all *BSD (well, anything with Torek stdio, really) + +--- rxfn.c 2002/09/02 08:50:31 1.1 ++++ rxfn.c 2002/09/02 08:51:26 +@@ -41,7 +41,7 @@ + # ifdef linux + # define _CNT(fp) ((fp)->_IO_read_end - (fp)->_IO_read_ptr) + # else +-# ifdef __FreeBSD__ ++# if (defined(BSD) && BSD >= 199306) + # define _CNT(fp) ((fp)->_r) + # else + # define _CNT(fp) ((fp)->_cnt) |