Update to pForth version 27. Assume maintainership. Changes since version 21: V27 - Fixed REPOSITION-FILE FILE-SIZE and FILE-POSITION. They used to use single precision offset. Now use double as specified. - Delete object directories in Makefile clean. - Fixed "Issue 4: Filehandle remains locked upon INCLUDE error". http://code.google.com/p/pforth/issues/detail?id=4&can=1 - Fixed scrambled HISTORY on 64-bit systems. Was using CELL+ but really needed 4 +. - Fixed floating point input. Now accepts "1E" as 1.0. Was Issue #2. - Fixed lots of warning and made code compatible with C89 and ANSI. Uses -pedantic. - Use fseek and ftell on WIN32 instead of fseeko and ftello. - Makefile is now more standard. Builds in same dir as Makefile. Uses CFLAGS etc. - Add support for console IO with _WATCOMC_ - Internal CStringToForth and ForthStringToC now take a destination size for safety. - Run units tests for CStringToForth and ForthStringToC if PF_UNIT_TESTS is defined. V26 5/20/2010 - 64-bit support for M* UM/MOD etc by Aleksej Saushev. Thanks Aleksej! V25 5/19/2010 - Added 64-bit CELL support contributed by Aleksej Saushev. Thanks Aleksej! - Added "-x c" to Makefile CCOPTS to prevent confusion with C++ - Allow space after -d command line option. - Restore normal tty mode if pForth dictionary loading fails. V24 2/20/09 - Fixed Posix IO on Mac. ?TERMINAL was always returning true. - ACCCEPT now emits a space at end of line before output. - Fixed RESIZE because it was returning the wrong address. V23 8/4/2008 - Removed -v option from mkdir in build/unix/Makefile. It was not supported on FreeBSD. Thank you Alexsej Saushev for reporting this. V23 7/20/2008 - Reorganized for Google Code project. V22 (unreleased) - Added command line history and cursor control words. - Sped up UM* and M* by a factor of 3. Thanks to Steve Green for suggested algorithm. - Modified ACCEPT so that a line at the end of a file that does NOT have a line terminator will now be processed. - Use _getch(), _putch(), and _kbhit() so that KEY, EMIT and ?TERMINAL will work on PC. - Fixed : foo { -- } 55 ; - Was entering local frame but not exiting. Now prints error. - Redefined MAKE_ID to protect it from 16 bit ints - John Providenza says "If you split local variables onto 2 lines, PForth crashes." Fixed. Also allow \ - Fixed float evaluation in EVALUATE in "quit.fth". - Flush register cache for ffColon and ffSemiColon to prevent stack warnings from ;diff -r1.1 -r1.2 pkgsrc/lang/pforth/DESCR
(asau)
@@ -1,18 +1,13 @@ | @@ -1,18 +1,13 @@ | |||
1 | PForth is an ANSI style Forth designed to be portable across many | 1 | PForth is an ANSI style Forth designed to be portable across many | |
2 | platforms. The 'P' in pForth stands for "Portable". PForth is based | 2 | platforms. The 'P' in pForth stands for "Portable". PForth is based | |
3 | on a Forth kernel written in ANSI standard 'C'. | 3 | on a Forth kernel written in ANSI standard 'C'. | |
4 | 4 | |||
5 | PForth has been designed with portability as the primary design | 5 | PForth has been designed with portability as the primary design goal. | |
6 | goal. As a result, pForth avoids any fancy UNIX calls. pForth also | 6 | As a result, pForth avoids any fancy Unix calls. pForth also avoids | |
7 | avoids using any clever and original ways of constructing the Forth | 7 | using any clever and original ways of constructing the Forth | |
8 | dictionary. It just compiles its kernel from ANSI compatible 'C' code | 8 | dictionary. It just compiles its kernel from ANSI compatible 'C' code | |
9 | then loads ANS compatible Forth code to build the dictionary. Very | 9 | then loads ANS compatible Forth code to build the dictionary. | |
10 | boring but very likely to work on almost any platform. | 10 | Very boring but very likely to work on almost any platform. | |
11 | 11 | |||
12 | The pForth software code is dedicated to the public domain, and any | 12 | The pForth software code is distributed under MIT licence with parts | |
13 | third party may reproduce, distribute and modify the pForth software | 13 | dedicated to the public domain. | |
14 | code or any derivative works thereof without any compensation or | |||
15 | license. The pForth software code is provided on an "as is" basis | |||
16 | without any warranty of any kind, including, without limitation, the | |||
17 | implied warranties of merchantability and fitness for a particular | |||
18 | purpose and their equivalents under the laws of any jurisdiction. |
@@ -1,45 +1,31 @@ | @@ -1,45 +1,31 @@ | |||
1 | # $NetBSD: Makefile,v 1.23 2010/02/15 16:41:46 joerg Exp $ | 1 | # $NetBSD: Makefile,v 1.24 2010/11/22 01:25:48 asau Exp $ | |
2 | 2 | |||
3 | DISTNAME= pfthpc21 | 3 | DISTNAME= pforth_v27_20101121 | |
4 | PKGNAME= pforth-21 | 4 | PKGNAME= pforth-27 | |
5 | PKGREVISION= 2 | |||
6 | CATEGORIES= lang | 5 | CATEGORIES= lang | |
7 | MASTER_SITES= http://www.softsynth.com/pforth/ | 6 | MASTER_SITES= http://pforth.googlecode.com/files/ | |
8 | EXTRACT_SUFX= .zip | 7 | EXTRACT_SUFX= .zip | |
9 | 8 | |||
10 | MAINTAINER= pkgsrc-users@NetBSD.org | 9 | MAINTAINER= asau@NetBSD.org | |
11 | HOMEPAGE= http://www.softsynth.com/pforth/ | 10 | HOMEPAGE= http://www.softsynth.com/pforth/ | |
12 | COMMENT= Portable ANS-like Forth | 11 | COMMENT= Portable ANS-like Forth | |
12 | LICENSE= mit | |||
13 | 13 | |||
14 | PKG_DESTDIR_SUPPORT= user-destdir | 14 | PKG_DESTDIR_SUPPORT= user-destdir | |
15 | 15 | |||
16 | WRKSRC= ${WRKDIR} | 16 | WRKSRC= $(WRKDIR)/pforth_v27 | |
17 | USE_LANGUAGES= c++ | 17 | MAKE_FILE= build/unix/Makefile | |
18 | USE_TOOLS+= gmake | 18 | MAKE_FLAGS= SRCDIR=. | |
19 | CPPFLAGS= -DPF_DEFAULT_DICTIONARY='"$(PREFIX)/lib/pforth/pforth.dic"' | |||
19 | 20 | |||
20 | NOT_FOR_PLATFORM= ${LP64PLATFORMS} | 21 | INSTALLATION_DIRS= bin lib/pforth share/doc/pforth share/pforth share/pforth/utils | |
21 | ||||
22 | INSTALLATION_DIRS= bin | |||
23 | ||||
24 | post-extract: | |||
25 | ${MKDIR} ${WRKSRC}/objects | |||
26 | ||||
27 | post-patch: | |||
28 | ${MV} ${WRKSRC}/csrc/pf_main.c ${WRKSRC}/csrc/pf_main.c.dist | |||
29 | ${SED} -e 's:@PREFIX@:${PREFIX}:g' ${WRKSRC}/csrc/pf_main.c.dist \ | |||
30 | > ${WRKSRC}/csrc/pf_main.c | |||
31 | 22 | |||
32 | do-install: | 23 | do-install: | |
33 | ${INSTALL_PROGRAM} ${WRKSRC}/pforth ${DESTDIR}${PREFIX}/bin | 24 | ${INSTALL_PROGRAM} ${WRKSRC}/pforth ${DESTDIR}${PREFIX}/bin | |
34 | ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/lib/pforth | |||
35 | ${INSTALL_DATA} ${WRKSRC}/pforth.dic ${DESTDIR}${PREFIX}/lib/pforth | 25 | ${INSTALL_DATA} ${WRKSRC}/pforth.dic ${DESTDIR}${PREFIX}/lib/pforth | |
36 | ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/pforth | 26 | ${INSTALL_DATA} ${WRKSRC}/readme.txt ${DESTDIR}${PREFIX}/share/doc/pforth/ | |
37 | ${INSTALL_DATA} ${WRKSRC}/README.txt ${WRKSRC}/docs/* \ | 27 | ${INSTALL_DATA} ${WRKSRC}/fth/*.fth ${DESTDIR}${PREFIX}/share/pforth/ | |
38 | ${DESTDIR}${PREFIX}/share/doc/pforth/ | 28 | ${INSTALL_DATA} ${WRKSRC}/fth/utils/*.fth \ | |
39 | ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/pforth | |||
40 | ${INSTALL_DATA} ${WRKSRC}/*.fth ${DESTDIR}${PREFIX}/share/pforth/ | |||
41 | ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/pforth/utils | |||
42 | ${INSTALL_DATA} ${WRKSRC}/utils/*.fth \ | |||
43 | ${DESTDIR}${PREFIX}/share/pforth/utils/ | 29 | ${DESTDIR}${PREFIX}/share/pforth/utils/ | |
44 | 30 | |||
45 | .include "../../mk/bsd.pkg.mk" | 31 | .include "../../mk/bsd.pkg.mk" |
@@ -1,50 +1,53 @@ | @@ -1,50 +1,53 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.3 2009/08/29 18:53:57 wiz Exp $ | 1 | @comment $NetBSD: PLIST,v 1.4 2010/11/22 01:25:48 asau Exp $ | |
2 | bin/pforth | 2 | bin/pforth | |
3 | lib/pforth/pforth.dic | 3 | lib/pforth/pforth.dic | |
4 | share/doc/pforth/README.txt | 4 | share/doc/pforth/readme.txt | |
5 | share/doc/pforth/pf_ref.htm | |||
6 | share/doc/pforth/pf_todo.txt | |||
7 | share/doc/pforth/pf_tut.htm | |||
8 | share/doc/pforth/pfmanual.txt | |||
9 | share/pforth/ansilocs.fth | 5 | share/pforth/ansilocs.fth | |
10 | share/pforth/bench.fth | 6 | share/pforth/bench.fth | |
11 | share/pforth/bloop.fth | |||
12 | share/pforth/c_struct.fth | 7 | share/pforth/c_struct.fth | |
13 | share/pforth/case.fth | 8 | share/pforth/case.fth | |
14 | share/pforth/catch.fth | |||
15 | share/pforth/checkit.fth | |||
16 | share/pforth/condcomp.fth | 9 | share/pforth/condcomp.fth | |
17 | share/pforth/coretest.fth | 10 | share/pforth/coretest.fth | |
18 | share/pforth/filefind.fth | 11 | share/pforth/filefind.fth | |
19 | share/pforth/floats.fth | 12 | share/pforth/floats.fth | |
20 | share/pforth/forget.fth | 13 | share/pforth/forget.fth | |
14 | share/pforth/history.fth | |||
15 | share/pforth/loadhist.fth | |||
21 | share/pforth/loadp4th.fth | 16 | share/pforth/loadp4th.fth | |
22 | share/pforth/locals.fth | 17 | share/pforth/locals.fth | |
23 | share/pforth/math.fth | 18 | share/pforth/math.fth | |
24 | share/pforth/member.fth | 19 | share/pforth/member.fth | |
25 | share/pforth/misc1.fth | 20 | share/pforth/misc1.fth | |
26 | share/pforth/misc2.fth | 21 | share/pforth/misc2.fth | |
27 | share/pforth/numberio.fth | 22 | share/pforth/numberio.fth | |
28 | share/pforth/private.fth | 23 | share/pforth/private.fth | |
29 | share/pforth/quit.fth | 24 | share/pforth/savedicd.fth | |
30 | share/pforth/see.fth | 25 | share/pforth/see.fth | |
31 | share/pforth/siev.fth | 26 | share/pforth/siev.fth | |
32 | share/pforth/smart_if.fth | 27 | share/pforth/smart_if.fth | |
33 | share/pforth/strings.fth | 28 | share/pforth/strings.fth | |
34 | share/pforth/system.fth | 29 | share/pforth/system.fth | |
35 | share/pforth/t_alloc.fth | 30 | share/pforth/t_alloc.fth | |
31 | share/pforth/t_case.fth | |||
36 | share/pforth/t_corex.fth | 32 | share/pforth/t_corex.fth | |
37 | share/pforth/t_floats.fth | 33 | share/pforth/t_floats.fth | |
34 | share/pforth/t_include.fth | |||
35 | share/pforth/t_load.fth | |||
36 | share/pforth/t_load_defer.fth | |||
37 | share/pforth/t_load_pairs.fth | |||
38 | share/pforth/t_load_semi.fth | |||
39 | share/pforth/t_load_undef.fth | |||
38 | share/pforth/t_locals.fth | 40 | share/pforth/t_locals.fth | |
41 | share/pforth/t_nolf.fth | |||
39 | share/pforth/t_strings.fth | 42 | share/pforth/t_strings.fth | |
40 | share/pforth/t_tools.fth | 43 | share/pforth/t_tools.fth | |
44 | share/pforth/termio.fth | |||
41 | share/pforth/tester.fth | 45 | share/pforth/tester.fth | |
42 | share/pforth/trace.fth | 46 | share/pforth/trace.fth | |
43 | share/pforth/tut.fth | 47 | share/pforth/tut.fth | |
44 | share/pforth/utils/clone.fth | 48 | share/pforth/utils/clone.fth | |
45 | share/pforth/utils/dump_struct.fth | 49 | share/pforth/utils/dump_struct.fth | |
46 | share/pforth/utils/load_file.fth | 50 | share/pforth/utils/load_file.fth | |
47 | share/pforth/utils/make_all256.fth | 51 | share/pforth/utils/make_all256.fth | |
48 | share/pforth/utils/savedicd.fth | |||
49 | share/pforth/utils/trace.fth | 52 | share/pforth/utils/trace.fth | |
50 | share/pforth/wordslik.fth | 53 | share/pforth/wordslik.fth |
@@ -1,7 +1,7 @@ | @@ -1,7 +1,7 @@ | |||
1 | $NetBSD: distinfo,v 1.6 2009/08/25 11:56:35 wiz Exp $ | 1 | $NetBSD: distinfo,v 1.7 2010/11/22 01:25:48 asau Exp $ | |
2 | 2 | |||
3 | SHA1 (pfthpc21.zip) = 550de4405f593004ff6e957a1c294bd801167e5b | 3 | SHA1 (pforth_v27_20101121.zip) = 66b9f3927a877afecca2c303157b7127291802f6 | |
4 | RMD160 (pfthpc21.zip) = cd5ab920efad2098351be98f86955d0e10ea61b2 | 4 | RMD160 (pforth_v27_20101121.zip) = e39965a79d4845763b6b767f5f7781f0d3758208 | |
5 | Size (pfthpc21.zip) = 295565 bytes | 5 | Size (pforth_v27_20101121.zip) = 209538 bytes | |
6 | SHA1 (patch-aa) = 7e875a466fb4577457120bf4165adb9339a20193 | 6 | SHA1 (patch-aa) = da39a3ee5e6b4b0d3255bfef95601890afd80709 | |
7 | SHA1 (patch-ab) = bce3729fabfd196b11562ccdc2e559455e29176e | 7 | SHA1 (patch-ab) = da39a3ee5e6b4b0d3255bfef95601890afd80709 |