pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/gforth Update to Gforth 0.7.0.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d0c10e4ce4da
branches:  trunk
changeset: 397508:d0c10e4ce4da
user:      asau <asau%pkgsrc.org@localhost>
date:      Fri Aug 14 22:52:20 2009 +0000

description:
Update to Gforth 0.7.0.


User-visible changes between 0.6.2 and 0.7.0:

Requirements:
  At run-time requires libtool and gcc (for the libcc C interface) and
                       gdb (for the disassembler (SEE)) on some platforms.
License:
  Changed to GPLv3
Bug fixes
  Now works with address-space randomization.
  The single-step debugger works again in some engines.
  Many others.
Ports:
  AMD64, ARM, IA-64 (Itanium): better performance
  PPC, PPC64: disassembler and assembler
  Gforth EC: R8C, 4stack, misc, 8086 work
  MacOS X: better support
Invocation:
  New flags --ignore-async-signals, --vm-commit (default overcommit)
            --print-sequences
Forth 200x:
  X:extension-query: produce true for all implemented extensions
  X:required REQUIRED etc. (not new)
  X:defined: [DEFINED] and [UNDEFINED]
  X:parse-name: PARSE-NAME (new name)
  X:deferred: deferred words (new: DEFER@ DEFER! ACTION-OF)
  X:structures: +FIELD FIELD: FFIELD: CFIELD: etc.
  X:ekeys: new: EKEY>FKEY K-SHIFT-MASK K-CTRL-MASK K-ALT-MASK K-F1...K-F12
  X:fp-stack (not new)
  X:number-prefixes (partially new, see below)
Number prefixes:
  0x is a hex prefix: 0xff and 0XfF now produces (decimal) 255
  # is a decimal prefix: #10 now produces (decimal) 10
  Signs after the number prefix are now accepted, e.g, #-50.
  ' now only handles a single (x)char: 'ab is no longer accepted,
                                       'a' now produces (decimal) 97
Unicode support (currently supports only uniform encoding):
  added xchars words for dealing with variable-width multi-byte characters
  provide 8bit (ISO Latin 1) and UTF-8 support for xchars
New words:
  \C C-FUNCTION C-LIBRARY END-C-LIBRARY C-LIBRARY-NAME (libcc C interface)
  LIB-ERROR (complements OPEN-LIB)
  OUTFILE-EXECUTE INFILE-EXECUTE BASE-EXECUTE (limited change of global state)
  16-bit and 32-bit memory acces: UW@ UL@ SW@ SL@ W! L! W@ L@ /W /L
  NEXT-ARG SHIFT-ARGS (OS command-line argument processing)
  NOTHROW (for backtrace control)
  FTRUNC FMOD (undocumented)
  SEE-CODE SEE-CODE-RANGE (show generated dynamic native code)
Improvements/changes of existing words:
  S\", .\" now support \l, \m, \z, and limits hex and octal character specs.
  OPEN-FILE with W/O no longer creates or truncates files (no compat. file)
  OPEN-LIB now understands ~ at the start, like OPEN-FILE.
  TRY...ENDTRY changed significantly, compatibility files available (see docs).
  The disassembler (DISCODE) can now use gdb to disassemble code
  Uninitialized defered words now give a warning when executed
  Division is floored (disable with "configure --enable-force-cdiv")
  Gforth (not gforth-fast) reports division by zero and overflow on division
    on all platforms.
Newly documented words:
  S>NUMBER? S>UNUMBER?
  EKEY keypress names: K-LEFT  K-RIGHT K-UP K-DOWN K-HOME K-END K-PRIOR
    K-NEXT K-INSERT K-DELETE
  CLEARSTACKS
  FORM
Environment variable GFORTHSYSTEMPREFIX (used by word SYSTEM and friends)
C interface:
  exported symbols now start with "gforth_" (for referencing them from C code)
  libcc C function call interface (requires libtool and gcc at run-time)
    alternative: undocumented libffi-based interface
Libraries:
  depth-changes.fs: report stack depth changes during interpretation
  ans-report.fs now reports CfV extensions
  fsl-util.4th: FSL support files (undocumented)
  regexp.fs for regular expressions (undocumented)
  complex.fs for complex numbers (undocumented)
  fft.fs for Fast Fourier Transform (undocumented)
  wf.fs, a Wiki implementation (undocumented)
  httpd.fs, a web server (undocumented)
  status.fs, show interpreter status in separate xterm (undocumented)
  profile.fs for profiling (undocumented, incomplete)
  endtry-iferror.fs, recover-endtry.fs to ease the TRY change transition
  test/tester.fs: Now works with FP numbers (undocumented)
  test/ttester.fs: Version of tester.fs with improved interface (T{...}T).
 compat library:
  compat/execute-parsing.fs
Speed improvements:
  automatic performance tuning on building
  static stack caching (good speedup on PPC)
  mixed-precision division is now faster
  support for int128 types on AMD64
  workarounds for gcc performance bugs (in particular, PR 15242)
  branch target alignment (good speedup on Alpha).

diffstat:

 lang/gforth/Makefile         |  27 ++++++++++++------
 lang/gforth/PLIST            |  61 ++++++++++++++++++++++++++++++++-----------
 lang/gforth/distinfo         |  13 +++-----
 lang/gforth/patches/patch-aa |  51 +++++++++++++++---------------------
 lang/gforth/patches/patch-ab |  22 ---------------
 lang/gforth/patches/patch-ac |  13 ---------
 lang/gforth/patches/patch-ad |  23 ----------------
 7 files changed, 89 insertions(+), 121 deletions(-)

diffs (truncated from 399 to 300 lines):

diff -r 45382350b9c2 -r d0c10e4ce4da lang/gforth/Makefile
--- a/lang/gforth/Makefile      Fri Aug 14 19:41:45 2009 +0000
+++ b/lang/gforth/Makefile      Fri Aug 14 22:52:20 2009 +0000
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.24 2007/02/20 19:04:12 wiz Exp $
+# $NetBSD: Makefile,v 1.25 2009/08/14 22:52:20 asau Exp $
 
-DISTNAME=              gforth-0.6.2
-PKGREVISION=           2
+DISTNAME=              gforth-0.7.0
 CATEGORIES=            lang
 MASTER_SITES=          ${MASTER_SITE_GNU:=gforth/}
 MASTER_SITES+=         http://www.complang.tuwien.ac.at/forth/gforth/
@@ -9,20 +8,32 @@
 MAINTAINER=            simonb%NetBSD.org@localhost
 HOMEPAGE=              http://www.complang.tuwien.ac.at/forth/gforth/
 COMMENT=               Fast interpreter for the Forth language
+LICENSE=               
 
 ONLY_FOR_PLATFORM=     *-*-alpha *-*-i386 *-*-m68k *-*-powerpc *-*-sparc
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+INFO_FILES=            yes
+
 GNU_CONFIGURE=         YES
 
+USE_LIBTOOL=           yes
+USE_TOOLS+=            autoconf automake aclocal
+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
-INFO_FILES=            # PLIST
 INSTALL_MAKE_FLAGS=    ${MAKE_FLAGS}                                   \
                        infodir=${PREFIX:Q}/${PKGINFODIR:Q}             \
                        mandir=${PREFIX:Q}/${PKGMANDIR:Q}
 
-TEST_TARGET=   test
+INSTALLATION_DIRS=     share/emacs/site-lisp
 
 # Kernel image filename is arch dependent
 KERNEL_FI_cmd=                                                         \
@@ -39,9 +50,7 @@
 
 # XXX Need test.
 #.include "../../mk/dlopen.buildlink3.mk"
+.include "../../devel/libltdl/buildlink3.mk"
+.include "../../devel/libffi/buildlink3.mk"
 .include "../../devel/ffcall/buildlink3.mk"
-
-pre-install:
-       ${INSTALL_DATA_DIR} ${PREFIX}/share/emacs/site-lisp
-
 .include "../../mk/bsd.pkg.mk"
diff -r 45382350b9c2 -r d0c10e4ce4da lang/gforth/PLIST
--- a/lang/gforth/PLIST Fri Aug 14 19:41:45 2009 +0000
+++ b/lang/gforth/PLIST Fri Aug 14 22:52:20 2009 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.11 2009/06/14 20:34:13 joerg Exp $
+@comment $NetBSD: PLIST,v 1.12 2009/08/14 22:52:20 asau Exp $
 bin/gforth
 bin/${PKGNAME}
 bin/gforth-fast
@@ -9,10 +9,16 @@
 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
@@ -24,9 +30,17 @@
 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
@@ -39,6 +53,7 @@
 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
@@ -49,15 +64,21 @@
 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
@@ -67,6 +88,7 @@
 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
@@ -77,17 +99,20 @@
 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
@@ -119,8 +144,11 @@
 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
@@ -134,20 +162,25 @@
 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
@@ -160,41 +193,37 @@
 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
-@pkgdir share/gforth/${PKGVERSION}/arch/sparc
-@pkgdir share/gforth/${PKGVERSION}/arch/shboom
-@pkgdir share/gforth/${PKGVERSION}/arch/sharc
-@pkgdir share/gforth/${PKGVERSION}/arch/power
-@pkgdir share/gforth/${PKGVERSION}/arch/misc
-@pkgdir share/gforth/${PKGVERSION}/arch/m68k
-@pkgdir share/gforth/${PKGVERSION}/arch/ia64
-@pkgdir share/gforth/${PKGVERSION}/arch/hppa
-@pkgdir share/gforth/${PKGVERSION}/arch/h8
-@pkgdir share/gforth/${PKGVERSION}/arch/generic
-@pkgdir share/gforth/${PKGVERSION}/arch/c165
-@pkgdir share/gforth/${PKGVERSION}/arch/avr
-@pkgdir share/gforth/${PKGVERSION}/arch/8086
-@pkgdir share/gforth/${PKGVERSION}/arch/6502
-@pkgdir share/gforth/${PKGVERSION}/arch/4stack
diff -r 45382350b9c2 -r d0c10e4ce4da lang/gforth/distinfo
--- a/lang/gforth/distinfo      Fri Aug 14 19:41:45 2009 +0000
+++ b/lang/gforth/distinfo      Fri Aug 14 22:52:20 2009 +0000
@@ -1,9 +1,6 @@
-$NetBSD: distinfo,v 1.5 2006/01/02 02:21:30 ben Exp $
+$NetBSD: distinfo,v 1.6 2009/08/14 22:52:20 asau Exp $
 
-SHA1 (gforth-0.6.2.tar.gz) = 926faeac7ccc00e86a74954dc7c693b19f13e616
-RMD160 (gforth-0.6.2.tar.gz) = 692aa412e59954f87a7b44027901248f8939e9ee
-Size (gforth-0.6.2.tar.gz) = 1925536 bytes
-SHA1 (patch-aa) = 50bef56bbb5a6f2fe664d370d35d39d72d0982bf
-SHA1 (patch-ab) = a80fd7553acce1168931171b9c100eb25e2fa19a
-SHA1 (patch-ac) = d9155ee2d7f06b3aafeaa5fc2719948deb1c9c7e
-SHA1 (patch-ad) = 16f9d13fc9ddfda3d45df627f4b46942225a5c1d
+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
diff -r 45382350b9c2 -r d0c10e4ce4da lang/gforth/patches/patch-aa
--- a/lang/gforth/patches/patch-aa      Fri Aug 14 19:41:45 2009 +0000
+++ b/lang/gforth/patches/patch-aa      Fri Aug 14 22:52:20 2009 +0000
@@ -1,32 +1,23 @@
-$NetBSD: patch-aa,v 1.3 2003/12/05 00:26:38 uebayasi Exp $
+$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   Mon Aug 25 16:57:49 2003
-+++ Makefile.in
-@@ -51,7 +51,7 @@ osclass = @OSCLASS@
- # -------------       Utility programs
+--- 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) 
  
- SHELL = /bin/sh
--RM    = rm
-+RM    = rm -f
- RMTREE        = rm -rf
- CP    = cp -p
- MV    = mv
-@@ -60,6 +60,7 @@ INSTALL      = @INSTALL@
- INSTALL_PROGRAM = @INSTALL_PROGRAM@
- INSTALL_DATA = @INSTALL_DATA@



Home | Main Index | Thread Index | Old Index