import node-gir 0.0.2
Node-gir is node bindings to the girepository library making it possible to make automatic and dynamic calls to any library that has GI annotations installed. This will make it possible to script a GNOME desktop system entirely from Node much in the way it's done today with Seed, GJS or pygtk. ok sthen@
This commit is contained in:
parent
3ed23adb4a
commit
2414bd4cc7
31
devel/node-gir/Makefile
Normal file
31
devel/node-gir/Makefile
Normal file
@ -0,0 +1,31 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2012/07/17 09:55:59 jasper Exp $
|
||||
|
||||
COMMENT = GObject Introspection bindings for Node.js
|
||||
|
||||
NPM_VERSION = 0.0.2
|
||||
NPM_NAME = gir
|
||||
CATEGORIES = devel
|
||||
|
||||
HOMEPAGE = https://github.com/creationix/node-gir
|
||||
|
||||
MAINTAINER = Jasper Lievisse Adriaanse <jasper@openbsd.org>
|
||||
|
||||
# MIT
|
||||
PERMIT_PACKAGE_CDROM = Yes
|
||||
PERMIT_PACKAGE_FTP = Yes
|
||||
PERMIT_DISTFILES_CDROM =Yes
|
||||
PERMIT_DISTFILES_FTP = Yes
|
||||
|
||||
MODULES = devel/gettext \
|
||||
lang/node
|
||||
|
||||
WANTLIB += ffi girepository-1.0 glib-2.0 gmodule-2.0 gobject-2.0
|
||||
WANTLIB += gthread-2.0 pcre
|
||||
|
||||
LIB_DEPENDS = devel/gobject-introspection
|
||||
|
||||
CONFIGURE_STYLE = npm ext
|
||||
|
||||
NO_REGRESS = Yes
|
||||
|
||||
.include <bsd.port.mk>
|
2
devel/node-gir/distinfo
Normal file
2
devel/node-gir/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (gir-0.0.2.tgz) = /0v+kUh7rr87z5yUVYw6zATU3xK6Js1CfNK0kFekoP0=
|
||||
SIZE (gir-0.0.2.tgz) = 17269
|
16
devel/node-gir/patches/patch-src_types_function_cc
Normal file
16
devel/node-gir/patches/patch-src_types_function_cc
Normal file
@ -0,0 +1,16 @@
|
||||
$OpenBSD: patch-src_types_function_cc,v 1.1.1.1 2012/07/17 09:55:59 jasper Exp $
|
||||
|
||||
Do not build against gtk or gdk. Check glib package.
|
||||
Commit 0df8a8f7e7ee2f88acaf09848c31615da35406cc
|
||||
|
||||
--- src/types/function.cc.orig Mon Jul 16 21:38:48 2012
|
||||
+++ src/types/function.cc Mon Jul 16 21:38:54 2012
|
||||
@@ -5,8 +5,6 @@
|
||||
|
||||
#include <string.h>
|
||||
#include <node.h>
|
||||
-#include <gtk/gtk.h>
|
||||
-#include <gdk/gdk.h>
|
||||
|
||||
using namespace v8;
|
||||
|
27
devel/node-gir/patches/patch-wscript
Normal file
27
devel/node-gir/patches/patch-wscript
Normal file
@ -0,0 +1,27 @@
|
||||
$OpenBSD: patch-wscript,v 1.1.1.1 2012/07/17 09:55:59 jasper Exp $
|
||||
|
||||
Do not build against gtk or gdk. Check glib package.
|
||||
Commit 0df8a8f7e7ee2f88acaf09848c31615da35406cc
|
||||
|
||||
--- wscript.orig Mon Jul 16 21:37:57 2012
|
||||
+++ wscript Mon Jul 16 21:38:37 2012
|
||||
@@ -13,9 +13,7 @@ def configure(conf):
|
||||
conf.check_tool("compiler_cxx")
|
||||
conf.check_tool("node_addon")
|
||||
conf.check_cfg(package='gobject-introspection-1.0', uselib_store='GIREPOSITORY', args='--cflags --libs')
|
||||
- conf.check_cfg(package='glib', uselib_store='GLIB', args='--cflags --libs')
|
||||
- conf.check_cfg(package='gtk+-2.0', uselib_store='GTK', args='--cflags --libs')
|
||||
- conf.check_cfg(package='gdk-2.0', uselib_store='GDK', args='--cflags --libs')
|
||||
+ conf.check_cfg(package='glib-2.0', uselib_store='GLIB', args='--cflags --libs')
|
||||
|
||||
def build(bld):
|
||||
obj = bld.new_task_gen("cxx", "shlib", "node_addon")
|
||||
@@ -30,7 +28,7 @@ def build(bld):
|
||||
"src/types/function.cc"
|
||||
]
|
||||
obj.cxxflags = ["-D_FILE_OFFSET_BITS=64", "-D_LARGEFILE_SOURCE"]
|
||||
- obj.uselib = "GIREPOSITORY GLIB GTK GDK"
|
||||
+ obj.uselib = "GIREPOSITORY GLIB"
|
||||
|
||||
def shutdown():
|
||||
if Options.commands['clean']:
|
6
devel/node-gir/pkg/DESCR
Normal file
6
devel/node-gir/pkg/DESCR
Normal file
@ -0,0 +1,6 @@
|
||||
Node-gir is node bindings to the girepository library making it possible
|
||||
to make automatic and dynamic calls to any library that has GI
|
||||
annotations installed.
|
||||
|
||||
This will make it possible to script a GNOME desktop system entirely
|
||||
from Node,js much in the way it's done today with Seed, GJS or pygtk.
|
55
devel/node-gir/pkg/PLIST
Normal file
55
devel/node-gir/pkg/PLIST
Normal file
@ -0,0 +1,55 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2012/07/17 09:55:59 jasper Exp $
|
||||
lib/node_modules/gir/
|
||||
lib/node_modules/gir/.lock-wscript
|
||||
lib/node_modules/gir/.npmignore
|
||||
lib/node_modules/gir/README.markdown
|
||||
lib/node_modules/gir/build/
|
||||
lib/node_modules/gir/build/.wafpickle-7
|
||||
lib/node_modules/gir/build/Release/
|
||||
@bin lib/node_modules/gir/build/Release/girepository.node
|
||||
lib/node_modules/gir/build/Release/src/
|
||||
lib/node_modules/gir/build/Release/src/arguments_1.o
|
||||
lib/node_modules/gir/build/Release/src/function_1.o
|
||||
lib/node_modules/gir/build/Release/src/init_1.o
|
||||
lib/node_modules/gir/build/Release/src/namespace_loader_1.o
|
||||
lib/node_modules/gir/build/Release/src/types/
|
||||
lib/node_modules/gir/build/Release/src/types/function_1.o
|
||||
lib/node_modules/gir/build/Release/src/types/object_1.o
|
||||
lib/node_modules/gir/build/Release/src/values_1.o
|
||||
lib/node_modules/gir/build/c4che/
|
||||
lib/node_modules/gir/build/c4che/Release.cache.py
|
||||
lib/node_modules/gir/build/c4che/build.config.py
|
||||
lib/node_modules/gir/build/config.log
|
||||
lib/node_modules/gir/examples/
|
||||
lib/node_modules/gir/examples/browser.js
|
||||
lib/node_modules/gir/examples/clutter.js
|
||||
lib/node_modules/gir/examples/dump-clutter.js
|
||||
lib/node_modules/gir/examples/dump-midgard.js
|
||||
lib/node_modules/gir/examples/gtk.js
|
||||
lib/node_modules/gir/examples/gtk_test.js
|
||||
lib/node_modules/gir/examples/libxml2.js
|
||||
lib/node_modules/gir/examples/midgard.js
|
||||
lib/node_modules/gir/examples/multiple_test.js
|
||||
lib/node_modules/gir/examples/notify.js
|
||||
lib/node_modules/gir/examples/notify_test.js
|
||||
lib/node_modules/gir/examples/webkit.js
|
||||
lib/node_modules/gir/gir.js
|
||||
lib/node_modules/gir/package.json
|
||||
lib/node_modules/gir/src/
|
||||
lib/node_modules/gir/src/arguments.cc
|
||||
lib/node_modules/gir/src/arguments.h
|
||||
lib/node_modules/gir/src/function.cc
|
||||
lib/node_modules/gir/src/function.h
|
||||
lib/node_modules/gir/src/init.cc
|
||||
lib/node_modules/gir/src/init.h
|
||||
lib/node_modules/gir/src/namespace_loader.cc
|
||||
lib/node_modules/gir/src/namespace_loader.h
|
||||
lib/node_modules/gir/src/types/
|
||||
lib/node_modules/gir/src/types/function.cc
|
||||
lib/node_modules/gir/src/types/function.h
|
||||
lib/node_modules/gir/src/types/object.cc
|
||||
lib/node_modules/gir/src/types/object.h
|
||||
lib/node_modules/gir/src/util.h
|
||||
lib/node_modules/gir/src/values.cc
|
||||
lib/node_modules/gir/src/values.h
|
||||
lib/node_modules/gir/wscript
|
Loading…
x
Reference in New Issue
Block a user