From owner-svn-ports-all@freebsd.org Mon Jan 29 19:12:31 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2856CED8A6C; Mon, 29 Jan 2018 19:12:31 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C0CBF81757; Mon, 29 Jan 2018 19:12:30 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id A213047ED; Mon, 29 Jan 2018 19:12:30 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w0TJCU8O027614; Mon, 29 Jan 2018 19:12:30 GMT (envelope-from yuri@FreeBSD.org) Received: (from yuri@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w0TJCUcE027609; Mon, 29 Jan 2018 19:12:30 GMT (envelope-from yuri@FreeBSD.org) Message-Id: <201801291912.w0TJCUcE027609@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: yuri set sender to yuri@FreeBSD.org using -f From: Yuri Victorovich Date: Mon, 29 Jan 2018 19:12:30 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r460323 - in head/lang: . retro12 retro12/files X-SVN-Group: ports-head X-SVN-Commit-Author: yuri X-SVN-Commit-Paths: in head/lang: . retro12 retro12/files X-SVN-Commit-Revision: 460323 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Jan 2018 19:12:31 -0000 Author: yuri Date: Mon Jan 29 19:12:29 2018 New Revision: 460323 URL: https://svnweb.freebsd.org/changeset/ports/460323 Log: New port: lang/retro12: Clean, elegant, and pragmatic dialect of Forth See details in https://forthworks.com/retro PR: 225320 Submitted by: Mateusz Piotrowski Approved by: tcberner (mentor) Differential Revision: https://reviews.freebsd.org/D14102 Added: head/lang/retro12/ head/lang/retro12/Makefile (contents, props changed) head/lang/retro12/distinfo (contents, props changed) head/lang/retro12/files/ head/lang/retro12/files/patch-build.sh (contents, props changed) head/lang/retro12/pkg-descr (contents, props changed) Modified: head/lang/Makefile Modified: head/lang/Makefile ============================================================================== --- head/lang/Makefile Mon Jan 29 18:44:38 2018 (r460322) +++ head/lang/Makefile Mon Jan 29 19:12:29 2018 (r460323) @@ -293,6 +293,7 @@ SUBDIR += racket-minimal SUBDIR += ratfor SUBDIR += referenceassemblies-pcl + SUBDIR += retro12 SUBDIR += rexx-imc SUBDIR += rexx-regina SUBDIR += rexx-regutil Added: head/lang/retro12/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/lang/retro12/Makefile Mon Jan 29 19:12:29 2018 (r460323) @@ -0,0 +1,52 @@ +# $FreeBSD$ + +PORTNAME= retro12 +DISTVERSION= 2018.1 +CATEGORIES= lang +MASTER_SITES= https://forthworks.com/retro/r/ +DISTNAME= ${PORTNAME:tu}-${DISTVERSION} + +MAINTAINER= 0mp@FreeBSD.org +COMMENT= Clean, elegant, and pragmatic dialect of Forth + +LICENSE= ISCL +LICENSE_FILE= ${WRKSRC}/LICENSE.md + +PLIST_FILES= bin/embedimage \ + bin/extend \ + bin/listener \ + bin/muri \ + bin/repl \ + bin/rre \ + bin/unu +PORTDATA= glossary.forth \ + ngaImage \ + words.tsv + +OPTIONS_DEFINE= DOCS EXAMPLES + +PORTDOCS= doc \ + literate \ + README.md \ + RELEASE_NOTES.md + +PORTEXAMPLES= example + +do-build: + @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ./build.sh + +do-install: +.for f in embedimage extend muri repl rre unu + ${INSTALL_PROGRAM} ${WRKSRC}/bin/${f} ${STAGEDIR}${PREFIX}/bin/${f} +.endfor + ${INSTALL_SCRIPT} ${WRKSRC}/bin/listener ${STAGEDIR}${PREFIX}/bin/listener + cd ${WRKSRC} && \ + ${COPYTREE_SHARE} "${PORTDATA}" ${STAGEDIR}${DATADIR} + +do-install-DOCS-on: + cd ${WRKSRC} && ${COPYTREE_SHARE} "${PORTDOCS}" ${STAGEDIR}${DOCSDIR} + +do-install-EXAMPLES-on: + cd ${WRKSRC} && ${COPYTREE_SHARE} "${PORTEXAMPLES}" ${STAGEDIR}${EXAMPLESDIR} + +.include Added: head/lang/retro12/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/lang/retro12/distinfo Mon Jan 29 19:12:29 2018 (r460323) @@ -0,0 +1,3 @@ +TIMESTAMP = 1517182308 +SHA256 (RETRO12-2018.1.tar.gz) = 00d2ecdf586ea183ff58a7586f66fa9b1906c25fff0d70fa8591ac7c50508937 +SIZE (RETRO12-2018.1.tar.gz) = 177247 Added: head/lang/retro12/files/patch-build.sh ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/lang/retro12/files/patch-build.sh Mon Jan 29 19:12:29 2018 (r460323) @@ -0,0 +1,48 @@ +--- build.sh.orig 2018-01-17 13:10:18 UTC ++++ build.sh +@@ -7,14 +7,14 @@ rm -f bin/extend + rm -f bin/muri + + cd tools +-cc -O3 -c embedimage.c -o embedimage.o +-cc -O3 -c extend.c -o extend.o +-cc -O3 -c unu.c -o unu.o +-cc -O3 -c muri.c -o muri.o +-cc unu.o -lm -o unu +-cc muri.o -lm -o muri +-cc embedimage.o -lm -o embedimage +-cc extend.o -lm -o extend ++$CC $CFLAGS -c embedimage.c -o embedimage.o ++$CC $CFLAGS -c extend.c -o extend.o ++$CC $CFLAGS -c unu.c -o unu.o ++$CC $CFLAGS -c muri.c -o muri.o ++$CC $LDFLAGS unu.o -lm -o unu ++$CC $LDFLAGS muri.o -lm -o muri ++$CC $LDFLAGS embedimage.o -lm -o embedimage ++$CC $LDFLAGS extend.o -lm -o extend + mv embedimage ../bin + mv extend ../bin + mv unu ../bin +@@ -45,16 +45,16 @@ cd interfaces + ../bin/extend rre.forth + ../bin/embedimage >image.c + rm ngaImage +-cc -O3 -c rre.c -o rre.o +-cc -O3 -c repl.c -o repl.o +-cc rre.o -lm -o rre +-cc repl.o -o repl ++$CC $CFLAGS -c rre.c -o rre.o ++$CC $CFLAGS -c repl.c -o repl.o ++$CC $LDFLAGS rre.o -lm -o rre ++$CC $LDFLAGS repl.o -o repl + mv rre ../bin + mv repl ../bin + rm *.o + cd .. + + echo "Update Glossary" +-cat words.tsv | sort >/tmp/words +-mv /tmp/words words.tsv ++cat words.tsv | sort >words.tmp ++mv words.tmp words.tsv + ./bin/rre glossary.forth export glossary >doc/Glossary.txt Added: head/lang/retro12/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/lang/retro12/pkg-descr Mon Jan 29 19:12:29 2018 (r460323) @@ -0,0 +1,16 @@ +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 (tested at various points +on Linux, NetBSD, macOS, and Windows, on x86, x86-64, PPC [emulated], +and various ARM processors). + +WWW: https://forthworks.com/retro