From fd2f1e2433b0bda49c2aad1a0a7dc4f7bbc8816e Mon Sep 17 00:00:00 2001 From: drochner Date: Fri, 20 Nov 2009 12:06:48 +0000 Subject: add rcfunge-2.02, a (be)funge interpreter --- lang/rcfunge/DESCR | 6 ++++++ lang/rcfunge/Makefile | 30 ++++++++++++++++++++++++++++++ lang/rcfunge/PLIST | 2 ++ lang/rcfunge/distinfo | 9 +++++++++ lang/rcfunge/patches/patch-aa | 13 +++++++++++++ lang/rcfunge/patches/patch-ab | 20 ++++++++++++++++++++ lang/rcfunge/patches/patch-ac | 29 +++++++++++++++++++++++++++++ lang/rcfunge/patches/patch-ad | 13 +++++++++++++ 8 files changed, 122 insertions(+) create mode 100644 lang/rcfunge/DESCR create mode 100644 lang/rcfunge/Makefile create mode 100644 lang/rcfunge/PLIST create mode 100644 lang/rcfunge/distinfo create mode 100644 lang/rcfunge/patches/patch-aa create mode 100644 lang/rcfunge/patches/patch-ab create mode 100644 lang/rcfunge/patches/patch-ac create mode 100644 lang/rcfunge/patches/patch-ad (limited to 'lang') diff --git a/lang/rcfunge/DESCR b/lang/rcfunge/DESCR new file mode 100644 index 00000000000..e7557efe2a9 --- /dev/null +++ b/lang/rcfunge/DESCR @@ -0,0 +1,6 @@ + RC/Funge-98 is a funge interpreter based upon the Funge-98 specification +by Cats-Eye Technologies. The full language specification (including the +'i', 'o', '=', and 't' commands) are supported. Unefunge, befunge, and trefunge +all supported by RC/Funge-98, with befunge being the default mode. Several +extensions are also provided, including minimal windows support (currently +only on unix version). diff --git a/lang/rcfunge/Makefile b/lang/rcfunge/Makefile new file mode 100644 index 00000000000..d5f1b20b34d --- /dev/null +++ b/lang/rcfunge/Makefile @@ -0,0 +1,30 @@ +# $NetBSD: Makefile,v 1.1.1.1 2009/11/20 12:06:48 drochner Exp $ +# + +DISTNAME= rcfunge2 +PKGNAME= rcfunge-2.02 +DIST_SUBDIR= rcfunge-2.02 +CATEGORIES= lang +MASTER_SITES= http://www.rcfunge98.com/ +EXTRACT_SUFX= .tgz + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://www.rcfunge98.com/ +COMMENT= Funge interpreter +#LICENSE= # TODO: (see mk/license.mk) + +PKG_DESTDIR_SUPPORT= user-destdir + +WRKSRC= ${WRKDIR}/rcfunge +BUILD_TARGET= funge +INSTALLATION_DIRS= bin + +pre-build: + ${MKDIR} ${WRKSRC}/bin + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/funge ${DESTDIR}${PREFIX}/bin + +.include "../../x11/libX11/buildlink3.mk" +.include "../../devel/ncurses/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/lang/rcfunge/PLIST b/lang/rcfunge/PLIST new file mode 100644 index 00000000000..063435755ea --- /dev/null +++ b/lang/rcfunge/PLIST @@ -0,0 +1,2 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2009/11/20 12:06:48 drochner Exp $ +bin/funge diff --git a/lang/rcfunge/distinfo b/lang/rcfunge/distinfo new file mode 100644 index 00000000000..d05a6bc30df --- /dev/null +++ b/lang/rcfunge/distinfo @@ -0,0 +1,9 @@ +$NetBSD: distinfo,v 1.1.1.1 2009/11/20 12:06:48 drochner Exp $ + +SHA1 (rcfunge-2.02/rcfunge2.tgz) = 058adc7f28096386a41073be959db5b8de081d76 +RMD160 (rcfunge-2.02/rcfunge2.tgz) = 27b0a8e84e0d5fb47fa285c1278ae9965b738c21 +Size (rcfunge-2.02/rcfunge2.tgz) = 93849 bytes +SHA1 (patch-aa) = 1b6d39c0dc020c8bb8b51e60b8572bcba0d6e7cb +SHA1 (patch-ab) = 6cca02f3c5392127d17e36cb8111b89bc1bb13ce +SHA1 (patch-ac) = e9841926fc5a22d6ea852406acd8cf97bfe0830b +SHA1 (patch-ad) = 09b12690a99f61e37e00eb58c16e0c28a16d8d6e diff --git a/lang/rcfunge/patches/patch-aa b/lang/rcfunge/patches/patch-aa new file mode 100644 index 00000000000..9706143b86c --- /dev/null +++ b/lang/rcfunge/patches/patch-aa @@ -0,0 +1,13 @@ +$NetBSD: patch-aa,v 1.1.1.1 2009/11/20 12:06:48 drochner Exp $ + +--- ext/sgnl.c.orig 2008-12-19 19:52:46.000000000 +0100 ++++ ext/sgnl.c +@@ -53,7 +53,7 @@ void Unload_SGNL(VM* vm) { + Unload_Semantic(vm,24); + } + +-static void signalHandler(int signo,struct siginfo* info,void* x) { ++static void signalHandler(int signo,siginfo_t* info,void* x) { + int i; + int old; + for (i=0; i