pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/konoha Import konoha-1.0.0.952 as lang/konoha.
details: https://anonhg.NetBSD.org/pkgsrc/rev/9aa5912f2ced
branches: trunk
changeset: 607276:9aa5912f2ced
user: ryoon <ryoon%pkgsrc.org@localhost>
date: Tue Aug 07 16:06:06 2012 +0000
description:
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:
lang/konoha/DESCR | 2 +
lang/konoha/Makefile | 24 +++++
lang/konoha/PLIST | 55 ++++++++++++
lang/konoha/distinfo | 10 ++
lang/konoha/patches/patch-include_konoha1_konoha__config.h | 24 +++++
lang/konoha/patches/patch-include_konoha1_konoha__t.h | 17 +++
lang/konoha/patches/patch-src_main_evidence.c | 60 ++++++++++++++
lang/konoha/patches/patch-src_main_os.c | 27 ++++++
lang/konoha/patches/patch-src_main_security.c | 16 +++
9 files changed, 235 insertions(+), 0 deletions(-)
diffs (271 lines):
diff -r 9924eae20f5e -r 9aa5912f2ced lang/konoha/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/konoha/DESCR Tue Aug 07 16:06:06 2012 +0000
@@ -0,0 +1,2 @@
+Konoha is a new scripting language that offers flexible scripting
+and static programming features.
diff -r 9924eae20f5e -r 9aa5912f2ced lang/konoha/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/konoha/Makefile Tue Aug 07 16:06:06 2012 +0000
@@ -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@localhost
+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 -r 9924eae20f5e -r 9aa5912f2ced lang/konoha/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/konoha/PLIST Tue Aug 07 16:06:06 2012 +0000
@@ -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 -r 9924eae20f5e -r 9aa5912f2ced lang/konoha/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/konoha/distinfo Tue Aug 07 16:06:06 2012 +0000
@@ -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 -r 9924eae20f5e -r 9aa5912f2ced lang/konoha/patches/patch-include_konoha1_konoha__config.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/konoha/patches/patch-include_konoha1_konoha__config.h Tue Aug 07 16:06:06 2012 +0000
@@ -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 -r 9924eae20f5e -r 9aa5912f2ced lang/konoha/patches/patch-include_konoha1_konoha__t.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/konoha/patches/patch-include_konoha1_konoha__t.h Tue Aug 07 16:06:06 2012 +0000
@@ -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 -r 9924eae20f5e -r 9aa5912f2ced lang/konoha/patches/patch-src_main_evidence.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/konoha/patches/patch-src_main_evidence.c Tue Aug 07 16:06:06 2012 +0000
@@ -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 -r 9924eae20f5e -r 9aa5912f2ced lang/konoha/patches/patch-src_main_os.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/konoha/patches/patch-src_main_os.c Tue Aug 07 16:06:06 2012 +0000
@@ -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 -r 9924eae20f5e -r 9aa5912f2ced lang/konoha/patches/patch-src_main_security.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/konoha/patches/patch-src_main_security.c Tue Aug 07 16:06:06 2012 +0000
@@ -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_
Home |
Main Index |
Thread Index |
Old Index