Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

6
lang/gforth/DESCR Normal file
View File

@@ -0,0 +1,6 @@
Gforth is a fast and portable implementation of the ANS Forth
language. It works nicely with the Emacs editor, offers some nice
features such as input completion and history and a powerful locals
facility, and it even has (the beginnings of) a manual. Gforth employs
traditional implementation techniques: its inner interpreter is
indirect or direct threaded.

58
lang/gforth/Makefile Normal file
View File

@@ -0,0 +1,58 @@
# $NetBSD: Makefile,v 1.35 2013/05/31 12:41:11 wiz Exp $
DISTNAME= gforth-0.7.0
PKGREVISION= 6
CATEGORIES= lang
MASTER_SITES= ${MASTER_SITE_GNU:=gforth/}
MASTER_SITES+= http://www.complang.tuwien.ac.at/forth/gforth/
MAINTAINER= simonb@NetBSD.org
HOMEPAGE= http://www.complang.tuwien.ac.at/forth/gforth/
COMMENT= Fast interpreter for the Forth language
LICENSE= gnu-gpl-v3
ONLY_FOR_PLATFORM= *-*-alpha *-*-i386 *-*-m68k *-*-powerpc *-*-sparc
ONLY_FOR_PLATFORM+= *-*-x86_64
INFO_FILES= yes
GNU_CONFIGURE= YES
USE_LIBTOOL= yes
USE_TOOLS+= autoconf automake aclocal m4
USE_TOOLS+= makeinfo gzip
USE_TOOLS+= perl:build
MAKE_JOBS_SAFE= no # fresh Gforth is required to build doc
BUILD_TARGET= all info # doc
TEST_TARGET= check
# Make sure elisp will be installed even if no emacs installed.
CONFIGURE_ENV+= EMACS=${PREFIX}/bin/emacs
CFLAGS+= -Dunix
BUILDLINK_TRANSFORM+= rm:-m486 # let it build with contemporary GCC
INSTALL_MAKE_FLAGS= ${MAKE_FLAGS} \
infodir=${PREFIX:Q}/${PKGINFODIR:Q} \
mandir=${PREFIX:Q}/${PKGMANDIR:Q}
INSTALLATION_DIRS= share/emacs/site-lisp
# Kernel image filename is arch dependent
KERNEL_FI_cmd= \
if ${TEST} ! -f ${WRKSRC}/Makefile; then \
${ECHO} "__nonexistent__"; \
exit 0; \
fi; \
cd ${WRKSRC} && \
{ ${ECHO} 'prkern:'; \
${ECHO} ' @${ECHO} $$(kernel_fi)'; \
${ECHO} ; \
${CAT} Makefile; } | ${MAKE_PROGRAM} -f - prkern
PLIST_SUBST+= KERNEL_FI=${KERNEL_FI_cmd:sh:Q}
# XXX Need test.
#.include "../../mk/dlopen.buildlink3.mk"
.include "../../devel/libltdl/buildlink3.mk"
.include "../../devel/libffi/buildlink3.mk"
.include "../../devel/ffcall/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

229
lang/gforth/PLIST Normal file
View File

@@ -0,0 +1,229 @@
@comment $NetBSD: PLIST,v 1.12 2009/08/14 22:52:20 asau Exp $
bin/gforth
bin/${PKGNAME}
bin/gforth-fast
bin/gforth-fast-${PKGVERSION}
bin/gforth-itc
bin/gforth-itc-${PKGVERSION}
bin/gforthmi
bin/gforthmi-${PKGVERSION}
bin/vmgen
bin/vmgen-${PKGVERSION}
include/gforth/${PKGVERSION}/config.h
include/gforth/${PKGVERSION}/libcc.h
info/gforth.info
info/vmgen.info
lib/gforth/${PKGVERSION}/gforth-ditc
lib/gforth/${PKGVERSION}/gforth.fi
lib/gforth/${PKGVERSION}/libcc-named/cstr.la
lib/gforth/${PKGVERSION}/libcc-named/fflib.la
lib/gforth/${PKGVERSION}/libcc-named/libffi.la
lib/gforth/${PKGVERSION}/libcc-named/socket.la
man/man1/gforth.1
share/emacs/site-lisp/gforth.el
share/gforth/${PKGVERSION}/TAGS
share/gforth/${PKGVERSION}/add.fs
share/gforth/${PKGVERSION}/ans-report.fs
share/gforth/${PKGVERSION}/ansi.fs
share/gforth/${PKGVERSION}/answords.fs
share/gforth/${PKGVERSION}/arch/386/asm.fs
share/gforth/${PKGVERSION}/arch/386/disasm.fs
share/gforth/${PKGVERSION}/arch/alpha/asm.fs
share/gforth/${PKGVERSION}/arch/alpha/disasm.fs
share/gforth/${PKGVERSION}/arch/alpha/testasm.fs
share/gforth/${PKGVERSION}/arch/amd64/asm.fs
share/gforth/${PKGVERSION}/arch/amd64/disasm.fs
share/gforth/${PKGVERSION}/arch/mips/asm.fs
share/gforth/${PKGVERSION}/arch/mips/disasm.fs
share/gforth/${PKGVERSION}/arch/mips/insts.fs
share/gforth/${PKGVERSION}/arch/mips/testasm.fs
share/gforth/${PKGVERSION}/arch/mips/testdisasm.fs
share/gforth/${PKGVERSION}/arch/power/asm.fs
share/gforth/${PKGVERSION}/arch/power/disasm.fs
share/gforth/${PKGVERSION}/arch/power/inst.fs
share/gforth/${PKGVERSION}/asm/README
share/gforth/${PKGVERSION}/asm/basic.fs
share/gforth/${PKGVERSION}/asm/bitmask.fs
share/gforth/${PKGVERSION}/asm/generic.fs
share/gforth/${PKGVERSION}/asm/numref.fs
share/gforth/${PKGVERSION}/asm/target.fs
share/gforth/${PKGVERSION}/assert.fs
share/gforth/${PKGVERSION}/backtrac.fs
share/gforth/${PKGVERSION}/blocked.fb
share/gforth/${PKGVERSION}/blocks.fs
share/gforth/${PKGVERSION}/bubble.fs
share/gforth/${PKGVERSION}/bufio.fs
share/gforth/${PKGVERSION}/build-ec.in
share/gforth/${PKGVERSION}/chains.fs
share/gforth/${PKGVERSION}/code.fs
share/gforth/${PKGVERSION}/colorize.fs
share/gforth/${PKGVERSION}/comp-i.fs
share/gforth/${PKGVERSION}/compat/README
share/gforth/${PKGVERSION}/compat/anslocal.fs
share/gforth/${PKGVERSION}/compat/assert.fs
share/gforth/${PKGVERSION}/compat/control.fs
share/gforth/${PKGVERSION}/compat/defer.fs
share/gforth/${PKGVERSION}/compat/exception.fs
share/gforth/${PKGVERSION}/compat/execute-parsing.fs
share/gforth/${PKGVERSION}/compat/loops.fs
share/gforth/${PKGVERSION}/compat/required.fs
share/gforth/${PKGVERSION}/compat/strcomp.fs
share/gforth/${PKGVERSION}/compat/struct.fs
share/gforth/${PKGVERSION}/compat/vocabulary.fs
share/gforth/${PKGVERSION}/complex.fs
share/gforth/${PKGVERSION}/cross.fs
share/gforth/${PKGVERSION}/cstr.fs
share/gforth/${PKGVERSION}/debug.fs
share/gforth/${PKGVERSION}/debugs.fs
share/gforth/${PKGVERSION}/depth-changes.fs
share/gforth/${PKGVERSION}/dis-gdb.fs
share/gforth/${PKGVERSION}/doc/makedoc.fs
share/gforth/${PKGVERSION}/dosekey.fs
share/gforth/${PKGVERSION}/doskey.fs
share/gforth/${PKGVERSION}/ds2texi.fs
share/gforth/${PKGVERSION}/ec/README
share/gforth/${PKGVERSION}/ec/builttag.fs
share/gforth/${PKGVERSION}/ec/dotx.fs
share/gforth/${PKGVERSION}/ec/mirror.fs
share/gforth/${PKGVERSION}/ec/nesting.fs
share/gforth/${PKGVERSION}/ec/shex.fs
share/gforth/${PKGVERSION}/ekey.fs
share/gforth/${PKGVERSION}/endtry-iferror.fs
share/gforth/${PKGVERSION}/environ.fs
share/gforth/${PKGVERSION}/envos.dos
share/gforth/${PKGVERSION}/envos.fs
share/gforth/${PKGVERSION}/envos.os2
share/gforth/${PKGVERSION}/errors.fs
share/gforth/${PKGVERSION}/etags.fs
share/gforth/${PKGVERSION}/exboot.fs
share/gforth/${PKGVERSION}/except.fs
share/gforth/${PKGVERSION}/extend.fs
share/gforth/${PKGVERSION}/fflib.fs
share/gforth/${PKGVERSION}/fft.fs
share/gforth/${PKGVERSION}/fi2c.fs
share/gforth/${PKGVERSION}/fib.fs
share/gforth/${PKGVERSION}/filedump.fs
share/gforth/${PKGVERSION}/fixpath.fs
share/gforth/${PKGVERSION}/float.fs
share/gforth/${PKGVERSION}/fsl-util.4th
share/gforth/${PKGVERSION}/glocals.fs
share/gforth/${PKGVERSION}/glosgen.fs
share/gforth/${PKGVERSION}/gray.fs
share/gforth/${PKGVERSION}/hash.fs
share/gforth/${PKGVERSION}/history.fs
share/gforth/${PKGVERSION}/httpd.fs
share/gforth/${PKGVERSION}/install-tags.fs
share/gforth/${PKGVERSION}/intcomp.fs
share/gforth/${PKGVERSION}/kernel/accept.fs
share/gforth/${PKGVERSION}/kernel/aliases.fs
share/gforth/${PKGVERSION}/kernel/aliases0.fs
share/gforth/${PKGVERSION}/kernel/args.fs
share/gforth/${PKGVERSION}/kernel/basics.fs
share/gforth/${PKGVERSION}/kernel/cbr.fs
share/gforth/${PKGVERSION}/kernel/cloop.fs
share/gforth/${PKGVERSION}/kernel/comp.fs
share/gforth/${PKGVERSION}/kernel/cond-old.fs
share/gforth/${PKGVERSION}/kernel/cond.fs
share/gforth/${PKGVERSION}/kernel/doers.fs
share/gforth/${PKGVERSION}/kernel/errore.fs
share/gforth/${PKGVERSION}/kernel/files.fs
share/gforth/${PKGVERSION}/kernel/getdoers.fs
share/gforth/${PKGVERSION}/kernel/input.fs
share/gforth/${PKGVERSION}/kernel/int.fs
share/gforth/${PKGVERSION}/kernel/io.fs
share/gforth/${PKGVERSION}/kernel/kernel.fs
share/gforth/${PKGVERSION}/kernel/license.fs
share/gforth/${PKGVERSION}/kernel/main.fs
share/gforth/${PKGVERSION}/kernel/nio.fs
share/gforth/${PKGVERSION}/kernel/pass.fs
share/gforth/${PKGVERSION}/kernel/paths.fs
share/gforth/${PKGVERSION}/kernel/prim0.fs
share/gforth/${PKGVERSION}/kernel/quotes.fs
share/gforth/${PKGVERSION}/kernel/require.fs
share/gforth/${PKGVERSION}/kernel/saccept.fs
share/gforth/${PKGVERSION}/kernel/tools.fs
share/gforth/${PKGVERSION}/kernel/toolsext.fs
share/gforth/${PKGVERSION}/kernel/vars.fs
share/gforth/${PKGVERSION}/kernel/xchars.fs
share/gforth/${PKGVERSION}/${KERNEL_FI}
share/gforth/${PKGVERSION}/lib.fs
share/gforth/${PKGVERSION}/libcc.fs
share/gforth/${PKGVERSION}/libffi.fs
share/gforth/${PKGVERSION}/locals.fs
share/gforth/${PKGVERSION}/locate.fs
share/gforth/${PKGVERSION}/look.fs
share/gforth/${PKGVERSION}/mach16b.fs
share/gforth/${PKGVERSION}/mach16l.fs
share/gforth/${PKGVERSION}/mach32b.fs
share/gforth/${PKGVERSION}/mach32l.fs
share/gforth/${PKGVERSION}/mach64b.fs
share/gforth/${PKGVERSION}/mach64l.fs
share/gforth/${PKGVERSION}/machpc.fs.in
share/gforth/${PKGVERSION}/make-app.fs
share/gforth/${PKGVERSION}/matrix.fs
share/gforth/${PKGVERSION}/mini-oof.fs
share/gforth/${PKGVERSION}/mkdir.fs
share/gforth/${PKGVERSION}/moof-exm.fs
share/gforth/${PKGVERSION}/moofglos.fs
share/gforth/${PKGVERSION}/more.fs
share/gforth/${PKGVERSION}/objects.fs
share/gforth/${PKGVERSION}/objexamp.fs
share/gforth/${PKGVERSION}/oldlib.fs
share/gforth/${PKGVERSION}/onebench.fs
share/gforth/${PKGVERSION}/oof.fs
share/gforth/${PKGVERSION}/oofsampl.fs
share/gforth/${PKGVERSION}/other.fs
share/gforth/${PKGVERSION}/prim
share/gforth/${PKGVERSION}/prims2x.fs
share/gforth/${PKGVERSION}/prims2x0.6.2.fs
share/gforth/${PKGVERSION}/proxy.fs
share/gforth/${PKGVERSION}/quotes.fs
share/gforth/${PKGVERSION}/random.fs
share/gforth/${PKGVERSION}/recover-endtry.fs
share/gforth/${PKGVERSION}/regexp.fs
share/gforth/${PKGVERSION}/savesys.fs
share/gforth/${PKGVERSION}/search.fs
share/gforth/${PKGVERSION}/see-ext.fs
share/gforth/${PKGVERSION}/see.fs
share/gforth/${PKGVERSION}/siev.fs
share/gforth/${PKGVERSION}/sieve.fs
share/gforth/${PKGVERSION}/simp-see.fs
share/gforth/${PKGVERSION}/sokoban.fs
share/gforth/${PKGVERSION}/source.fs
share/gforth/${PKGVERSION}/startup.fs
share/gforth/${PKGVERSION}/string.fs
share/gforth/${PKGVERSION}/struct.fs
share/gforth/${PKGVERSION}/struct0x.fs
share/gforth/${PKGVERSION}/stuff.fs
share/gforth/${PKGVERSION}/table.fs
share/gforth/${PKGVERSION}/tags.fs
share/gforth/${PKGVERSION}/tasker.fs
share/gforth/${PKGVERSION}/termsize.fs
share/gforth/${PKGVERSION}/test/checkans.fs
share/gforth/${PKGVERSION}/test/coreext.fs
share/gforth/${PKGVERSION}/test/coremore.fs
share/gforth/${PKGVERSION}/test/coretest.fs
share/gforth/${PKGVERSION}/test/dbltest.fs
share/gforth/${PKGVERSION}/test/deferred.fs
share/gforth/${PKGVERSION}/test/float.fs
share/gforth/${PKGVERSION}/test/gforth-nofast.fs
share/gforth/${PKGVERSION}/test/gforth.fs
share/gforth/${PKGVERSION}/test/libcc.fs
share/gforth/${PKGVERSION}/test/other.fs
share/gforth/${PKGVERSION}/test/postpone.fs
share/gforth/${PKGVERSION}/test/primtest.fs
share/gforth/${PKGVERSION}/test/search.fs
share/gforth/${PKGVERSION}/test/signals.fs
share/gforth/${PKGVERSION}/test/string.fs
share/gforth/${PKGVERSION}/test/tester.fs
share/gforth/${PKGVERSION}/test/ttester.fs
share/gforth/${PKGVERSION}/tt.fs
share/gforth/${PKGVERSION}/unbuffer.fs
share/gforth/${PKGVERSION}/unix/socket.fs
share/gforth/${PKGVERSION}/utf-8.fs
share/gforth/${PKGVERSION}/vt100.fs
share/gforth/${PKGVERSION}/vt100key.fs
share/gforth/${PKGVERSION}/wordinfo.fs
share/gforth/${PKGVERSION}/wordsets.fs
share/gforth/${PKGVERSION}/xwords.fs
share/gforth/site-forth/siteinit.fs

9
lang/gforth/distinfo Normal file
View File

@@ -0,0 +1,9 @@
$NetBSD: distinfo,v 1.8 2013/06/13 21:43:26 joerg Exp $
SHA1 (gforth-0.7.0.tar.gz) = 5bb357268cba683f2a8c63d2a4bcab8f41cb0086
RMD160 (gforth-0.7.0.tar.gz) = df0cef8cff25eddf670315c5497fc5634226968c
Size (gforth-0.7.0.tar.gz) = 2277918 bytes
SHA1 (patch-aa) = 88811b03619a597d202105c89b659576a9fd34b2
SHA1 (patch-ae) = 5ed4c1b54d6c2af55580183cdc9d66b70fffa955
SHA1 (patch-configure) = e6cf2ba54f5a6492943220a2a8b12e887dcfa527
SHA1 (patch-configure.in) = 4886054414beda7de68323143eecb03ef20c10f9

33
lang/gforth/hacks.mk Normal file
View File

@@ -0,0 +1,33 @@
# $NetBSD: hacks.mk,v 1.1 2012/06/28 07:44:39 dholland Exp $
.include "../../mk/bsd.prefs.mk"
#
# A bug in the offending versions (listed below) in main.c of NetBSD's
# m4 causes the build to loop forever allocating memory, and thus
# exhaust swap. Note that these versions were never in a release, but
# their existence did span most of the 5.99.x period and early
# netbsd-6 prereleases. Therefore, updating the broken system binary
# is the best course of action. Note that because TOOLS_PATH.m4 does
# not get defined early enough it does not seem to be possible to set
# PKG_FAIL_REASON.
#
.if ${OPSYS} == "NetBSD"
pre-configure:
@${ECHO} '=> Checking ${TOOLS_PATH.m4}'
@set -e; \
m4_main_ver=`ident ${TOOLS_PATH.m4} | \
grep 'NetBSD: main.c' | \
awk '{print $$3}'`; \
case "$$m4_main_ver" in \
1.38|1.39]|1.40|1.41) \
${ECHO} "${TOOLS_PATH.m4} contains main.c" \
"$$m4_main_ver."; \
${ECHO} "Building this package using" \
"${TOOLS_PATH.m4} will run out of swap.";\
${ECHO} "Please update ${TOOLS_PATH.m4} from CVS.";\
exit 1; \
;; \
esac
.endif

View File

@@ -0,0 +1,23 @@
$NetBSD: patch-aa,v 1.4 2009/08/14 22:52:21 asau Exp $
Don't generate and install Emacs byte code file.
--- Makefile.in.orig 2008-11-01 20:22:27.000000000 +0300
+++ Makefile.in 2009-08-15 02:04:09.000000000 +0400
@@ -430,7 +430,7 @@
ENGINES_FAST = gforth-fast$(OPT)$(EC)$(EXE) #gforth-native$(OPT)$(EC)$(EXE)
-GEN = $(ENGINES) $(ENGINES_FAST) gforth.elc
+GEN = $(ENGINES) $(ENGINES_FAST)
# things that need a working forth system to be generated
FORTH_GEN_ENGINE=engine/prim.i engine/prim_lab.i engine/prim_names.i \
@@ -615,7 +615,6 @@
$(INSTALL_DATA) $(kernel_fi) $(DESTDIR)$(datadir)/gforth/$(VERSION)
@if test -d "$(DESTDIR)$(emacssitelispdir)"; then \
$(INSTALL_DATA) gforth.el $(DESTDIR)$(emacssitelispdir); \
- $(INSTALL_DATA) gforth.elc $(DESTDIR)$(emacssitelispdir); \
else \
echo '>>>>>Please install gforth.{el,elc} in your .../emacs/site-lisp directory'; \
fi

View File

@@ -0,0 +1,33 @@
$NetBSD: patch-ae,v 1.1 2011/03/29 21:19:20 asau Exp $
Due to the bug there is a finite limit on marker invocations.
Fixed upstream after 0.7.0.
--- extend.fs.orig 2007-12-31 21:19:58.000000000 +0300
+++ extend.fs 2009-08-23 04:42:10.000000000 +0400
@@ -213,15 +213,7 @@
\ defined afterwards) when executing the mark.
: included-files-mark ( -- u )
- included-files 2@ nip
- blk @ 0=
- if \ not input from blocks
- source-id 1 -1 within
- if \ input from file
- 1- \ do not include the last file (hopefully this is the
- \ currently included file)
- then
- then ;
+ included-files 2@ nip ;
\ hmm, most of the saving appears to be pretty unnecessary: we could
\ derive the wordlists and the words that have to be kept from the
@@ -247,7 +239,7 @@
: marker! ( mark -- )
\ reset included files count; resize will happen on next add-included-file
- included-files 2@ drop over @ included-files 2! cell+
+ included-files 2@ 2 pick @ min included-files 2! cell+
\ rest of marker!
dup @ swap cell+ ( here rest-of-marker )
dup @ voclink ! cell+

View File

@@ -0,0 +1,18 @@
$NetBSD: patch-configure,v 1.1 2013/06/13 21:43:26 joerg Exp $
--- configure.orig 2013-06-13 17:12:24.000000000 +0000
+++ configure
@@ -3984,10 +3984,10 @@ test "$make_type" = "GNU Make" && GNUMAK
echo "${ECHO_T}$make_type" >&6; }
-{ echo "$as_me:$LINENO: checking whether the linker accepts -export-dynamic" >&5
-echo $ECHO_N "checking whether the linker accepts -export-dynamic... $ECHO_C" >&6; }
+{ echo "$as_me:$LINENO: checking whether the linker accepts -Wl,-export-dynamic" >&5
+echo $ECHO_N "checking whether the linker accepts -Wl,-export-dynamic... $ECHO_C" >&6; }
OLDLDFLAGS=$LDFLAGS
-LDFLAGS="$LDFLAGS -export-dynamic"
+LDFLAGS="$LDFLAGS -Wl,-export-dynamic"
if test "$cross_compiling" = yes; then
ac_export_dynamic=no
else

View File

@@ -0,0 +1,16 @@
$NetBSD: patch-configure.in,v 1.1 2013/06/13 21:43:26 joerg Exp $
--- configure.in.orig 2013-06-13 17:24:38.000000000 +0000
+++ configure.in
@@ -182,9 +182,9 @@ test "$make_type" = "GNU Make" && GNUMAK
AC_MSG_RESULT($make_type)
AC_SUBST(GNUMAKE)
-AC_MSG_CHECKING([whether the linker accepts -export-dynamic])
+AC_MSG_CHECKING([whether the linker accepts -Wl,-export-dynamic])
OLDLDFLAGS=$LDFLAGS
-LDFLAGS="$LDFLAGS -export-dynamic"
+LDFLAGS="$LDFLAGS -Wl,-export-dynamic"
dnl AC_TRY_LINK gives false positive on rs6000-ibm-aix4.2.1.0
dnl AC_TRY_LINK(,,ac_export_dynamic=yes,ac_export_dynamic=no)
AC_TRY_RUN(main(){exit(0);},ac_export_dynamic=yes,ac_export_dynamic=no,ac_export_dynamic=no)