diff options
author | ryoon <ryoon@pkgsrc.org> | 2012-08-07 16:06:06 +0000 |
---|---|---|
committer | ryoon <ryoon@pkgsrc.org> | 2012-08-07 16:06:06 +0000 |
commit | 2fd055842481f238a00cfa99a5363ece1aeaaf1e (patch) | |
tree | b6c965dfd88257858486e48129d2fe507a878762 /lang | |
parent | 9bb25dbfd9acc192d0cebbad9d1b4bcf38d56989 (diff) | |
download | pkgsrc-2fd055842481f238a00cfa99a5363ece1aeaaf1e.tar.gz |
Import konoha-1.0.0.952 as lang/konoha.
Konoha is a new scripting language that offers flexible scripting
and static programming features.
I have tested only on NetBSD/i386 6.99.10.
Diffstat (limited to 'lang')
-rw-r--r-- | lang/konoha/DESCR | 2 | ||||
-rw-r--r-- | lang/konoha/Makefile | 24 | ||||
-rw-r--r-- | lang/konoha/PLIST | 55 | ||||
-rw-r--r-- | lang/konoha/distinfo | 10 | ||||
-rw-r--r-- | lang/konoha/patches/patch-include_konoha1_konoha__config.h | 24 | ||||
-rw-r--r-- | lang/konoha/patches/patch-include_konoha1_konoha__t.h | 17 | ||||
-rw-r--r-- | lang/konoha/patches/patch-src_main_evidence.c | 60 | ||||
-rw-r--r-- | lang/konoha/patches/patch-src_main_os.c | 27 | ||||
-rw-r--r-- | lang/konoha/patches/patch-src_main_security.c | 16 |
9 files changed, 235 insertions, 0 deletions
diff --git a/lang/konoha/DESCR b/lang/konoha/DESCR new file mode 100644 index 00000000000..8813e2a0f7c --- /dev/null +++ b/lang/konoha/DESCR @@ -0,0 +1,2 @@ +Konoha is a new scripting language that offers flexible scripting +and static programming features. diff --git a/lang/konoha/Makefile b/lang/konoha/Makefile new file mode 100644 index 00000000000..9ffa293d9d1 --- /dev/null +++ b/lang/konoha/Makefile @@ -0,0 +1,24 @@ +# $NetBSD: Makefile,v 1.1 2012/08/07 16:06:06 ryoon Exp $ +# + +DISTNAME= konoha-1.0.0-952 +PKGNAME= konoha-1.0.0.952 +CATEGORIES= lang +MASTER_SITES= http://konoha.googlecode.com/files/ + +MAINTAINER= ryoon@NetBSD.org +HOMEPAGE= http://konohascript.org/ +COMMENT= Statically-typed scripting langauge +LICENSE= gnu-lgpl-v3 + +PKG_DESTDIR_SUPPORT= user-destdir + +WRKSRC= ${WRKDIR}/konoha-1.0.0 +USE_CMAKE= yes +USE_LANGUAGES= c c++ + +.include "../../databases/sqlite3/buildlink3.mk" +.include "../../devel/pcre/buildlink3.mk" +.include "../../devel/readline/buildlink3.mk" +.include "../../www/curl/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/lang/konoha/PLIST b/lang/konoha/PLIST new file mode 100644 index 00000000000..c9f456b677b --- /dev/null +++ b/lang/konoha/PLIST @@ -0,0 +1,55 @@ +@comment $NetBSD: PLIST,v 1.1 2012/08/07 16:06:06 ryoon Exp $ +bin/konoha +bin/konoha2js +bin/konohac +include/konoha1.h +include/konoha1/inlinelibs.h +include/konoha1/konoha_api.h +include/konoha1/konoha_class.h +include/konoha1/konoha_code_.h +include/konoha1/konoha_config.h +include/konoha1/konoha_debug.h +include/konoha1/konoha_gc.h +include/konoha1/konoha_glue.h +include/konoha1/konoha_name.h +include/konoha1/konoha_t.h +include/konoha1/konoha_vm.h +include/konoha1/konohalang.h +include/konoha1/license.h +konoha/package/1.0/js.dom/dom.k +konoha/package/1.0/js.jquery/jquery.k +konoha/package/1.0/konoha.actor/actor.k +konoha/package/1.0/konoha.compiler.js/js.k +konoha/package/1.0/konoha.compiler/compiler.k +konoha/package/1.0/konoha.compiler/compiler.so +konoha/package/1.0/konoha.curl/curl.k +konoha/package/1.0/konoha.curl/curl.so +konoha/package/1.0/konoha.i/i.k +konoha/package/1.0/konoha.i/i.so +konoha/package/1.0/konoha.io/io.k +konoha/package/1.0/konoha.io/io.so +konoha/package/1.0/konoha.lang/lang.k +konoha/package/1.0/konoha.lang/lang.so +konoha/package/1.0/konoha.math/math.k +konoha/package/1.0/konoha.math/math.so +konoha/package/1.0/konoha.ntrace/ntrace.k +konoha/package/1.0/konoha.ntrace/ntrace.so +konoha/package/1.0/konoha.posix/posix.k +konoha/package/1.0/konoha.posix/posix.so +konoha/package/1.0/konoha.proc/proc.k +konoha/package/1.0/konoha.proc/proc.so +konoha/package/1.0/konoha.signal/signal.k +konoha/package/1.0/konoha.signal/signal.so +konoha/package/1.0/konoha.socket/socket.k +konoha/package/1.0/konoha.socket/socket.so +konoha/package/1.0/konoha.sugar/sugar.k +konoha/package/1.0/konoha.thread/thread.k +konoha/package/1.0/konoha.thread/thread.so +konoha/script/1.0/actsrv +konoha/script/1.0/actsrv2 +konoha/script/1.0/mailbox.k +konoha/script/1.0/man +konoha/script/1.0/status +lib/libkonoha.so +lib/libkonoha.so.1.0 +lib/libkonoha.so.1.0.0 diff --git a/lang/konoha/distinfo b/lang/konoha/distinfo new file mode 100644 index 00000000000..904e983da40 --- /dev/null +++ b/lang/konoha/distinfo @@ -0,0 +1,10 @@ +$NetBSD: distinfo,v 1.1 2012/08/07 16:06:06 ryoon Exp $ + +SHA1 (konoha-1.0.0-952.tar.gz) = c4cfdc956bd583f8c3e8e696eeb0316ca78b1389 +RMD160 (konoha-1.0.0-952.tar.gz) = 98eb63382d3877b57606a205ac41cfd3928316b4 +Size (konoha-1.0.0-952.tar.gz) = 5235671 bytes +SHA1 (patch-include_konoha1_konoha__config.h) = 3ff759fb41f2cea76d92ed091a0e2d78d896ede6 +SHA1 (patch-include_konoha1_konoha__t.h) = a77141b686823aa2dba4a985a6d581ef57dd2df6 +SHA1 (patch-src_main_evidence.c) = c30241d5c7b6ee50253490b480836b74accf34f8 +SHA1 (patch-src_main_os.c) = b939ef713d279c4ab5ba23680dd39e6fb546ebca +SHA1 (patch-src_main_security.c) = dfbba5ce7ba37f195a8f72e1ae613cbd1288320e diff --git a/lang/konoha/patches/patch-include_konoha1_konoha__config.h b/lang/konoha/patches/patch-include_konoha1_konoha__config.h new file mode 100644 index 00000000000..0a39826da7a --- /dev/null +++ b/lang/konoha/patches/patch-include_konoha1_konoha__config.h @@ -0,0 +1,24 @@ +$NetBSD: patch-include_konoha1_konoha__config.h,v 1.1 2012/08/07 16:06:06 ryoon Exp $ + +* Add NetBSD support + +--- include/konoha1/konoha_config.h.orig 2012-03-07 06:52:14.000000000 +0000 ++++ include/konoha1/konoha_config.h +@@ -288,6 +288,17 @@ typedef struct knh_sysinfo_t { + #define K_USING_SQLITE3 1 + #endif + ++#if defined(__NetBSD__) /* NetBSD */ ++#define K_USING_PTHREAD ++#define K_USING_STDC_ 1 ++#define K_USING_POSIX_ 1 ++#define K_USING_BSD_ 1 ++#define K_USING_BSDSYSCTL_ 1 ++#define K_USING_SYSLOG 1 ++#define K_USING_ICONV 1 ++#define K_USING_SQLITE3 1 ++#endif ++ + #if defined(__MINGW32__) /* mingw */ + #define K_USING_STDC_ 1 + #define K_USING_SETJMP_ 1 diff --git a/lang/konoha/patches/patch-include_konoha1_konoha__t.h b/lang/konoha/patches/patch-include_konoha1_konoha__t.h new file mode 100644 index 00000000000..af879a7e719 --- /dev/null +++ b/lang/konoha/patches/patch-include_konoha1_konoha__t.h @@ -0,0 +1,17 @@ +$NetBSD: patch-include_konoha1_konoha__t.h,v 1.1 2012/08/07 16:06:06 ryoon Exp $ + +* Try to support *BSD + +--- include/konoha1/konoha_t.h.orig 2012-03-07 06:52:14.000000000 +0000 ++++ include/konoha1/konoha_t.h +@@ -1041,6 +1041,10 @@ typedef struct kcontext_t { + void *siginfo; + #if defined(K_USING_MINGW_) + #define K_SIGNAL_MAX NSIG ++#elif defined(K_USING_MACOSX_) ++#define K_SIGNAL_MAX _POSIX_SIGQUEUE_MAX ++#elif defined(K_USING_BSD_) ++#define K_SIGNAL_MAX _NSIG /* I am not sure. */ + #else + #define K_SIGNAL_MAX _POSIX_SIGQUEUE_MAX + #endif diff --git a/lang/konoha/patches/patch-src_main_evidence.c b/lang/konoha/patches/patch-src_main_evidence.c new file mode 100644 index 00000000000..f17981208a2 --- /dev/null +++ b/lang/konoha/patches/patch-src_main_evidence.c @@ -0,0 +1,60 @@ +$NetBSD: patch-src_main_evidence.c,v 1.1 2012/08/07 16:06:06 ryoon Exp $ + +* Resolve conflict of si_code on NetBSD + +--- src/main/evidence.c.orig 2012-03-07 06:52:15.000000000 +0000 ++++ src/main/evidence.c +@@ -37,6 +37,10 @@ + #include<unistd.h> + #endif + ++#if defined(K_USING_BSD_) ++#include <sys/siginfo.h> ++#endif ++ + #if defined(HAVE_LIBMEMCACHED) + #include <libmemcached/memcached.h> + #endif +@@ -600,11 +604,11 @@ static void trapSIGFPE(int sig RECARG) + record_signal(ctx, sig RECDATA); + if(ctx != NULL) { + #if defined(K_USING_MINGW_) +- int si_code = 0; ++ int si_code_ = 0; + #else +- int si_code = (si->si_code < 9) ? si->si_code : 0; ++ int si_code_ = (si->si_code < 9) ? si->si_code : 0; + #endif /* defined(K_USING_MINGW_) */ +- THROW_Arithmetic(ctx, NULL, emsg[si_code]); ++ THROW_Arithmetic(ctx, NULL, emsg[si_code_]); + } + } + +@@ -642,12 +646,12 @@ static void trapILL(int sig RECARG) + record_signal(ctx, sig RECDATA); + if(ctx != NULL) { + #if defined(K_USING_MINGW_) +- int si_code = 0; ++ int si_code_ = 0; + #else +- int si_code = (si->si_code < 9) ? si->si_code : 0; ++ int si_code_ = (si->si_code < 9) ? si->si_code : 0; + #endif /* defined(K_USING_MINGW_) */ + WCTX(ctx)->signal = sig; +- THROW_Halt(ctx, NULL, emsg[si_code]); ++ THROW_Halt(ctx, NULL, emsg[si_code_]); + } + _Exit(EX_SOFTWARE); + } +@@ -663,9 +667,9 @@ static void trapBUS(int sig RECARG) + CTX ctx = knh_getCurrentContext(); + record_signal(ctx, sig RECDATA); + if(ctx != NULL) { +- int si_code = (si->si_code < 4) ? si->si_code : 1; ++ int si_code_ = (si->si_code < 4) ? si->si_code : 1; + WCTX(ctx)->signal = sig; +- THROW_Halt(ctx, NULL, emsg[si_code]); ++ THROW_Halt(ctx, NULL, emsg[si_code_]); + } + _Exit(EX_SOFTWARE); + } diff --git a/lang/konoha/patches/patch-src_main_os.c b/lang/konoha/patches/patch-src_main_os.c new file mode 100644 index 00000000000..01a876c9017 --- /dev/null +++ b/lang/konoha/patches/patch-src_main_os.c @@ -0,0 +1,27 @@ +$NetBSD: patch-src_main_os.c,v 1.1 2012/08/07 16:06:06 ryoon Exp $ + +* Fix include order + +--- src/main/os.c.orig 2012-03-07 06:52:15.000000000 +0000 ++++ src/main/os.c +@@ -27,6 +27,11 @@ + + /* ************************************************************************ */ + ++#ifdef K_USING_POSIX_ ++#include <sys/param.h> ++#include <sys/sysctl.h> ++#endif/*K_USING_POSIX_*/ ++ + #include"commons.h" + + #ifdef K_USING_POSIX_ +@@ -35,8 +40,6 @@ + #include <dlfcn.h> + #include <time.h> + #include <sys/time.h> +-#include <sys/param.h> +-#include <sys/sysctl.h> + #ifdef K_USING_MACOSX_ + #include <mach-o/dyld.h> + #endif diff --git a/lang/konoha/patches/patch-src_main_security.c b/lang/konoha/patches/patch-src_main_security.c new file mode 100644 index 00000000000..1b16fd819e4 --- /dev/null +++ b/lang/konoha/patches/patch-src_main_security.c @@ -0,0 +1,16 @@ +$NetBSD: patch-src_main_security.c,v 1.1 2012/08/07 16:06:06 ryoon Exp $ + +* Fix include order + +--- src/main/security.c.orig 2012-03-07 06:52:15.000000000 +0000 ++++ src/main/security.c +@@ -27,6 +27,9 @@ + + /* ************************************************************************ */ + ++#include <sys/param.h> ++#include <sys/sysctl.h> ++ + #include"commons.h" + + #ifdef K_USING_WIN32_ |