pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/forth-retro lang/forth-retro: import forth-retro-...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9c7225f022c5
branches:  trunk
changeset: 374672:9c7225f022c5
user:      kamil <kamil%pkgsrc.org@localhost>
date:      Sat Jan 27 10:59:05 2018 +0000

description:
lang/forth-retro: import forth-retro-12.0.2018.1

RETRO is a clean, elegant, and pragmatic dialect of Forth. It provides
a simple alternative for those willing to make a break from legacy
systems.

The language draws influences from many sources including traditional
Forth systems, cmForth, colorForth, Factor, and Parable. It was
designed to be easy to grasp and adapt to specific uses.

The basic language is very portable. It runs on a tiny virtual
machine (Nga), which is written in C. There are multiple interface
options, the main one (rre) is buildable with just the standard C
compiler and libraries on most systems.

diffstat:

 lang/forth-retro/DESCR    |   12 +++++
 lang/forth-retro/Makefile |  100 ++++++++++++++++++++++++++++++++++++++++++++++
 lang/forth-retro/PLIST    |   66 ++++++++++++++++++++++++++++++
 lang/forth-retro/distinfo |    6 ++
 4 files changed, 184 insertions(+), 0 deletions(-)

diffs (200 lines):

diff -r 3a71c3354ed2 -r 9c7225f022c5 lang/forth-retro/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/forth-retro/DESCR    Sat Jan 27 10:59:05 2018 +0000
@@ -0,0 +1,12 @@
+RETRO is a clean, elegant, and pragmatic dialect of Forth. It provides
+a simple alternative for those willing to make a break from legacy
+systems.
+
+The language draws influences from many sources including traditional
+Forth systems, cmForth, colorForth, Factor, and Parable. It was
+designed to be easy to grasp and adapt to specific uses.
+
+The basic language is very portable. It runs on a tiny virtual
+machine (Nga), which is written in C. There are multiple interface
+options, the main one (rre) is buildable with just the standard C
+compiler and libraries on most systems.
diff -r 3a71c3354ed2 -r 9c7225f022c5 lang/forth-retro/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/forth-retro/Makefile Sat Jan 27 10:59:05 2018 +0000
@@ -0,0 +1,100 @@
+# $NetBSD: Makefile,v 1.1 2018/01/27 10:59:05 kamil Exp $
+
+DISTNAME=      RETRO${RETRO_REL}-${RETRO_SNAPSHOT}
+PKGNAME=       forth-retro-${RETRO_REL}.0.${RETRO_SNAPSHOT}
+CATEGORIES=    lang
+MASTER_SITES=  https://forthworks.com/retro/r/
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://forthworks.com/retro/
+COMMENT=       Clean, elegant, and pragmatic dialect of Forth
+LICENSE=       isc
+
+RETRO_REL=     12
+RETRO_SNAPSHOT=        2018.1
+
+USE_TOOLS+=    pax
+
+REPLACE_INTERPRETER+=  rre
+REPLACE.rre.old=       .*rre
+REPLACE.rre.new=       ${PREFIX}/bin/rre
+REPLACE_FILES.rre=     bin/listener
+
+INSTALLATION_DIRS=     bin
+INSTALLATION_DIRS+=    share/doc/${PKGBASE}
+INSTALLATION_DIRS+=    share/doc/${PKGBASE}/literate
+INSTALLATION_DIRS+=    share/${PKGBASE}
+INSTALLATION_DIRS+=    share/examples/${PKGBASE}
+
+# Reimplement build.sh
+do-build:
+       ${RUN} cd ${WRKSRC}/tools && \
+       for file in unu muri embedimage extend; do \
+               ${CC} ${CFLAGS} ${LDFLAGS} -lm -o $$file $$file.c; \
+       done
+
+       ${RUN} cd ${WRKSRC} && \
+               ./tools/unu literate/Unu.md > tools/unu.c; \
+               ./tools/unu literate/Muri.md > tools/muri.c; \
+               ./tools/muri literate/Rx.md; \
+               ./tools/extend literate/RetroForth.md
+
+       ${RUN} ${LN} -sf ${WRKSRC}/ngaImage ${WRKSRC}/interfaces/ri/ngaImage
+       ${RUN} cd ${WRKSRC}/interfaces/ri/ && \
+               ../../tools/embedimage > image.c
+
+       ${RUN} ${LN} -sf ${WRKSRC}/ngaImage ${WRKSRC}/interfaces/ngaImage
+       ${RUN} cd ${WRKSRC}/interfaces/ && \
+               ../tools/extend rre_windows.forth; \
+               ../tools/embedimage > image_windows.c; \
+               ../tools/extend rre.forth; \
+               ../tools/embedimage > image.c
+
+       ${RUN} cd ${WRKSRC}/interfaces/ && \
+       for file in rre repl; do \
+               ${CC} ${CFLAGS} ${LDFLAGS} -lm -o $$file $$file.c; \
+       done
+
+       ${RUN} cd ${WRKSRC} && \
+               sort -o words.tsv words.tsv
+
+       ${RUN} cd ${WRKSRC} && \
+               ./interfaces/rre glossary.forth export glossary > doc/Glossary.txt
+
+do-install:
+.for f in embedimage extend muri unu
+       ${RUN} ${INSTALL_PROGRAM} \
+               ${WRKSRC}/tools/${f} \
+               ${DESTDIR}${PREFIX}/bin/${f}
+.endfor
+
+.for f in rre repl
+       ${RUN} ${INSTALL_PROGRAM} \
+               ${WRKSRC}/interfaces/${f} \
+               ${DESTDIR}${PREFIX}/bin/${f}
+.endfor
+
+       ${RUN} ${INSTALL_SCRIPT} \
+               ${WRKSRC}/bin/listener \
+               ${DESTDIR}${PREFIX}/bin/listener
+
+.for f in README.md RELEASE_NOTES.md
+       ${RUN} ${INSTALL_DATA} \
+               ${WRKSRC}/${f} \
+               ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+.endfor
+       ${RUN} cd ${WRKSRC}/doc && \
+               ${PAX} -rw . ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+       ${RUN} cd ${WRKSRC}/literate && \
+               ${PAX} -rw . ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}/literate
+
+.for f in glossary.forth ngaImage words.tsv
+       ${RUN} ${INSTALL_DATA} \
+               ${WRKSRC}/${f} \
+               ${DESTDIR}${PREFIX}/share/${PKGBASE}
+.endfor
+
+       ${RUN} cd ${WRKSRC}/example && \
+               ${PAX} -rw . ${DESTDIR}${PREFIX}/share/examples/${PKGBASE}
+
+.include "../../mk/bsd.pkg.mk"
diff -r 3a71c3354ed2 -r 9c7225f022c5 lang/forth-retro/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/forth-retro/PLIST    Sat Jan 27 10:59:05 2018 +0000
@@ -0,0 +1,66 @@
+@comment $NetBSD: PLIST,v 1.1 2018/01/27 10:59:05 kamil Exp $
+bin/embedimage
+bin/extend
+bin/listener
+bin/muri
+bin/repl
+bin/rre
+bin/unu
+share/doc/forth-retro/An_Introduction_To_Retro.md
+share/doc/forth-retro/Architecture.md
+share/doc/forth-retro/Building.md
+share/doc/forth-retro/Examples.md
+share/doc/forth-retro/Glossary.txt
+share/doc/forth-retro/Hyperstatic.md
+share/doc/forth-retro/Interpreter.md
+share/doc/forth-retro/Namespaces.md
+share/doc/forth-retro/NamingConventions.md
+share/doc/forth-retro/QuickRef.md
+share/doc/forth-retro/QuotesAndCombinators.md
+share/doc/forth-retro/README.md
+share/doc/forth-retro/RELEASE_NOTES.md
+share/doc/forth-retro/REPORT-BUGS.md
+share/doc/forth-retro/RETRO_Cross_Reference.md
+share/doc/forth-retro/StackComments.md
+share/doc/forth-retro/Syntax.md
+share/doc/forth-retro/literate/Muri.md
+share/doc/forth-retro/literate/Nga.md
+share/doc/forth-retro/literate/RetroForth.md
+share/doc/forth-retro/literate/Rx.md
+share/doc/forth-retro/literate/Unu.md
+share/examples/forth-retro/1D-Cellular-Automota.forth
+share/examples/forth-retro/99Bottles.forth
+share/examples/forth-retro/AddingVectors.forth
+share/examples/forth-retro/Atua-WWW.forth
+share/examples/forth-retro/Atua.forth
+share/examples/forth-retro/Autopsy.forth
+share/examples/forth-retro/Cat.forth
+share/examples/forth-retro/Chess.forth
+share/examples/forth-retro/DictionaryStats.forth
+share/examples/forth-retro/Disassembler.forth
+share/examples/forth-retro/Echo.forth
+share/examples/forth-retro/GCD.forth
+share/examples/forth-retro/IterativeFibonacci.forth
+share/examples/forth-retro/LeastCommonMultiple.forth
+share/examples/forth-retro/Parse-UPS.forth
+share/examples/forth-retro/Primes.forth
+share/examples/forth-retro/RecursiveFactorial.forth
+share/examples/forth-retro/RecursiveFibonacci.forth
+share/examples/forth-retro/Roo.forth
+share/examples/forth-retro/StringToNumberWithBase.forth
+share/examples/forth-retro/TokenizeString.forth
+share/examples/forth-retro/Tuporo.forth
+share/examples/forth-retro/VT100.forth
+share/examples/forth-retro/accumulator.forth
+share/examples/forth-retro/edit.forth
+share/examples/forth-retro/hanoi.forth
+share/examples/forth-retro/iOS/GopherClient.forth
+share/examples/forth-retro/iOS/README.md
+share/examples/forth-retro/is-palindrome.forth
+share/examples/forth-retro/is-pangram.forth
+share/examples/forth-retro/rot13.forth
+share/examples/forth-retro/sort-on-stack.forth
+share/examples/forth-retro/unicode.forth
+share/forth-retro/glossary.forth
+share/forth-retro/ngaImage
+share/forth-retro/words.tsv
diff -r 3a71c3354ed2 -r 9c7225f022c5 lang/forth-retro/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/forth-retro/distinfo Sat Jan 27 10:59:05 2018 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2018/01/27 10:59:05 kamil Exp $
+
+SHA1 (RETRO12-2018.1.tar.gz) = 2b148ef0f0a0f0a9986f81ed3a7654c8f32a505c
+RMD160 (RETRO12-2018.1.tar.gz) = a53309b8d83a63c8c8cc6625f2b79973d186c832
+SHA512 (RETRO12-2018.1.tar.gz) = 550c648125c4f487cd1357c2e868db0b47093ebf4b43e2f98deeacd4b10ed521f255eb0bbfc9403357ea021aafdf399021a1163bf8f29109c2dee91bc9e0b03f
+Size (RETRO12-2018.1.tar.gz) = 177247 bytes



Home | Main Index | Thread Index | Old Index