summaryrefslogtreecommitdiff
path: root/nodejs
diff options
context:
space:
mode:
authorIgor Pashev <igor.pashev@nexenta.com>2012-11-08 00:46:27 +0400
committerIgor Pashev <igor.pashev@nexenta.com>2012-11-08 00:46:27 +0400
commit1da610783baf8761d61fbd90f0b37dbf74dccd17 (patch)
treeeff3c29c17d469661278facb30d058601b14ab82 /nodejs
parent0082160622e6315f9c146d55b7c703dcbe01fc1b (diff)
downloadcibs-pkgs-1da610783baf8761d61fbd90f0b37dbf74dccd17.tar.gz
Finally Mode.js ... sorry, Node.js
Diffstat (limited to 'nodejs')
-rw-r--r--nodejs/Makefile6
-rw-r--r--nodejs/nodejs-dev.p5m90
-rw-r--r--nodejs/nodejs.p5m98
3 files changed, 100 insertions, 94 deletions
diff --git a/nodejs/Makefile b/nodejs/Makefile
index 372da78..77db4c4 100644
--- a/nodejs/Makefile
+++ b/nodejs/Makefile
@@ -6,7 +6,7 @@ include /usr/share/cibs/rules/64.mk
# Not autotools, but similar:
include /usr/share/cibs/rules/autotools.mk
-# Must run from current directory:
+# Must run from the current directory:
configure := ./configure
# Flock wrapper even does not return erro on failure:
@@ -25,10 +25,10 @@ checksum := \
summary := event-based server-side javascript engine
license := BSD
-license-file :=
+license-file := LICENSE
build-depends += \
- library/libv8-headers \
+ library/libv8 \
library/c-ares \
library/libev \
library/openssl-headers
diff --git a/nodejs/nodejs-dev.p5m b/nodejs/nodejs-dev.p5m
deleted file mode 100644
index 05ad56d..0000000
--- a/nodejs/nodejs-dev.p5m
+++ /dev/null
@@ -1,90 +0,0 @@
-set name=pkg.fmri value=pkg:/developer/$(name)/$(name)-dev@$(ips-version)
-set name=pkg.summary value="$(summary), development files"
-set name=info.upstream-url value="$(home)"
-set name=info.source-url value="$(download)"
-license $(license-file) license="$(license)"
-
-# Move headers into usr/include/nodejs:
-<transform dir -> edit path /node /nodejs >
-<transform file path=(.+/include)/node/(.+) -> \
- emit file %<1>/node/%<2> path=%<1>/nodejs/%<2> >
-<transform file path=(.+/include)/node/(.+) -> \
- drop >
-
-dir path=usr/include
-dir path=usr/include/node
-dir path=usr/include/node/uv-private
-file path=usr/include/node/uv-private/uv-unix.h
-file path=usr/include/node/uv-private/eio.h
-file path=usr/include/node/uv-private/ngx-queue.h
-file path=usr/include/node/uv-private/ev.h
-file path=usr/include/node/uv-private/uv-win.h
-file path=usr/include/node/uv-private/tree.h
-file path=usr/include/node/eio-emul.h
-file path=usr/include/node/node.h
-file path=usr/include/node/node_buffer.h
-file path=usr/include/node/ev-emul.h
-file path=usr/include/node/node_object_wrap.h
-file path=usr/include/node/node_version.h
-file path=usr/include/node/uv.h
-
-# Move WAF into usr/share/nodejs:
-<transform dir -> edit path /lib/node/ /share/nodejs/ >
-<transform file path=(.+/lib)/node/(.+) -> \
- emit file %<1>/node/%<2> path=usr/share/nodejs/%<2> >
-<transform file path=(.+/lib)/node/(.+) -> \
- drop >
-
-dir path=usr/lib/node/wafadmin
-dir path=usr/lib/node/wafadmin/Tools
-file path=usr/lib/node/wafadmin/pproc.py
-file path=usr/lib/node/wafadmin/py3kfixes.py
-file path=usr/lib/node/wafadmin/TaskGen.py
-file path=usr/lib/node/wafadmin/__init__.py
-file path=usr/lib/node/wafadmin/Logs.py
-file path=usr/lib/node/wafadmin/Task.py
-file path=usr/lib/node/wafadmin/Configure.py
-file path=usr/lib/node/wafadmin/Build.py
-file path=usr/lib/node/wafadmin/Scripting.py
-file path=usr/lib/node/wafadmin/Utils.py
-file path=usr/lib/node/wafadmin/ansiterm.py
-file path=usr/lib/node/wafadmin/Runner.py
-file path=usr/lib/node/wafadmin/Tools/compiler_d.py
-file path=usr/lib/node/wafadmin/Tools/winres.py
-file path=usr/lib/node/wafadmin/Tools/compiler_cc.py
-file path=usr/lib/node/wafadmin/Tools/nasm.py
-file path=usr/lib/node/wafadmin/Tools/xlcxx.py
-file path=usr/lib/node/wafadmin/Tools/preproc.py
-file path=usr/lib/node/wafadmin/Tools/icpc.py
-file path=usr/lib/node/wafadmin/Tools/gdc.py
-file path=usr/lib/node/wafadmin/Tools/unittestw.py
-file path=usr/lib/node/wafadmin/Tools/gcc.py
-file path=usr/lib/node/wafadmin/Tools/osx.py
-file path=usr/lib/node/wafadmin/Tools/node_addon.py
-file path=usr/lib/node/wafadmin/Tools/cc.py
-file path=usr/lib/node/wafadmin/Tools/d.py
-file path=usr/lib/node/wafadmin/Tools/config_c.py
-file path=usr/lib/node/wafadmin/Tools/ar.py
-file path=usr/lib/node/wafadmin/Tools/ccroot.py
-file path=usr/lib/node/wafadmin/Tools/suncc.py
-file path=usr/lib/node/wafadmin/Tools/intltool.py
-file path=usr/lib/node/wafadmin/Tools/gas.py
-file path=usr/lib/node/wafadmin/Tools/compiler_cxx.py
-file path=usr/lib/node/wafadmin/Tools/icc.py
-file path=usr/lib/node/wafadmin/Tools/dmd.py
-file path=usr/lib/node/wafadmin/Tools/libtool.py
-file path=usr/lib/node/wafadmin/Tools/__init__.py
-file path=usr/lib/node/wafadmin/Tools/python.py
-file path=usr/lib/node/wafadmin/Tools/xlc.py
-file path=usr/lib/node/wafadmin/Tools/misc.py
-file path=usr/lib/node/wafadmin/Tools/gxx.py
-file path=usr/lib/node/wafadmin/Tools/suncxx.py
-file path=usr/lib/node/wafadmin/Tools/gob2.py
-file path=usr/lib/node/wafadmin/Tools/cxx.py
-file path=usr/lib/node/wafadmin/Tools/gnu_dirs.py
-file path=usr/lib/node/wafadmin/Node.py
-file path=usr/lib/node/wafadmin/Environment.py
-file path=usr/lib/node/wafadmin/Options.py
-file path=usr/lib/node/wafadmin/Constants.py
-file path=usr/bin/node-waf
-
diff --git a/nodejs/nodejs.p5m b/nodejs/nodejs.p5m
index cbd8f09..647e8dc 100644
--- a/nodejs/nodejs.p5m
+++ b/nodejs/nodejs.p5m
@@ -4,9 +4,105 @@ set name=info.upstream-url value="$(home)"
set name=info.source-url value="$(download)"
license $(license-file) license="$(license)"
+
+# Runtime:
+dir path=usr/lib/nodejs
file usr/bin/node path=usr/bin/nodejs
link path=usr/bin/node target=nodejs
-
file usr/share/man/man1/node.1 path=usr/share/man/man1/nodejs.1
link path=usr/share/man/man1/node.1 target=nodejs.1
+
+# Development:
+
+# Move headers into usr/include/nodejs:
+<transform dir -> edit path /node /nodejs >
+<transform file path=(.+/include)/node/(.+) -> \
+ emit file %<1>/node/%<2> path=%<1>/nodejs/%<2> >
+<transform file path=(.+/include)/node/(.+) -> \
+ drop >
+
+dir path=usr/include
+dir path=usr/include/node
+dir path=usr/include/node/uv-private
+file path=usr/include/node/uv-private/uv-unix.h
+file path=usr/include/node/uv-private/eio.h
+file path=usr/include/node/uv-private/ngx-queue.h
+file path=usr/include/node/uv-private/ev.h
+file path=usr/include/node/uv-private/uv-win.h
+file path=usr/include/node/uv-private/tree.h
+file path=usr/include/node/eio-emul.h
+file path=usr/include/node/node.h
+file path=usr/include/node/node_buffer.h
+file path=usr/include/node/ev-emul.h
+file path=usr/include/node/node_object_wrap.h
+file path=usr/include/node/node_version.h
+file path=usr/include/node/uv.h
+
+# Move WAF into usr/share/nodejs:
+<transform dir -> edit path /lib/node/ /share/nodejs/ >
+<transform file path=(.+/lib)/node/(.+) -> \
+ emit file %<1>/node/%<2> path=usr/share/nodejs/%<2> >
+<transform file path=(.+/lib)/node/(.+) -> \
+ drop >
+
+<transform dir file path=.+/wafadmin/.+ -> \
+ default facet.devel true>
+
+dir path=usr/lib/node/wafadmin
+dir path=usr/lib/node/wafadmin/Tools
+file path=usr/lib/node/wafadmin/pproc.py
+file path=usr/lib/node/wafadmin/py3kfixes.py
+file path=usr/lib/node/wafadmin/TaskGen.py
+file path=usr/lib/node/wafadmin/__init__.py
+file path=usr/lib/node/wafadmin/Logs.py
+file path=usr/lib/node/wafadmin/Task.py
+file path=usr/lib/node/wafadmin/Configure.py
+file path=usr/lib/node/wafadmin/Build.py
+file path=usr/lib/node/wafadmin/Scripting.py
+file path=usr/lib/node/wafadmin/Utils.py
+file path=usr/lib/node/wafadmin/ansiterm.py
+file path=usr/lib/node/wafadmin/Runner.py
+file path=usr/lib/node/wafadmin/Tools/compiler_d.py
+file path=usr/lib/node/wafadmin/Tools/winres.py
+file path=usr/lib/node/wafadmin/Tools/compiler_cc.py
+file path=usr/lib/node/wafadmin/Tools/nasm.py
+file path=usr/lib/node/wafadmin/Tools/xlcxx.py
+file path=usr/lib/node/wafadmin/Tools/preproc.py
+file path=usr/lib/node/wafadmin/Tools/icpc.py
+file path=usr/lib/node/wafadmin/Tools/gdc.py
+file path=usr/lib/node/wafadmin/Tools/unittestw.py
+file path=usr/lib/node/wafadmin/Tools/gcc.py
+file path=usr/lib/node/wafadmin/Tools/osx.py
+file path=usr/lib/node/wafadmin/Tools/node_addon.py
+file path=usr/lib/node/wafadmin/Tools/cc.py
+file path=usr/lib/node/wafadmin/Tools/d.py
+file path=usr/lib/node/wafadmin/Tools/config_c.py
+file path=usr/lib/node/wafadmin/Tools/ar.py
+file path=usr/lib/node/wafadmin/Tools/ccroot.py
+file path=usr/lib/node/wafadmin/Tools/suncc.py
+file path=usr/lib/node/wafadmin/Tools/intltool.py
+file path=usr/lib/node/wafadmin/Tools/gas.py
+file path=usr/lib/node/wafadmin/Tools/compiler_cxx.py
+file path=usr/lib/node/wafadmin/Tools/icc.py
+file path=usr/lib/node/wafadmin/Tools/dmd.py
+file path=usr/lib/node/wafadmin/Tools/libtool.py
+file path=usr/lib/node/wafadmin/Tools/__init__.py
+file path=usr/lib/node/wafadmin/Tools/python.py
+file path=usr/lib/node/wafadmin/Tools/xlc.py
+file path=usr/lib/node/wafadmin/Tools/misc.py
+file path=usr/lib/node/wafadmin/Tools/gxx.py
+file path=usr/lib/node/wafadmin/Tools/suncxx.py
+file path=usr/lib/node/wafadmin/Tools/gob2.py
+file path=usr/lib/node/wafadmin/Tools/cxx.py
+file path=usr/lib/node/wafadmin/Tools/gnu_dirs.py
+file path=usr/lib/node/wafadmin/Node.py
+file path=usr/lib/node/wafadmin/Environment.py
+file path=usr/lib/node/wafadmin/Options.py
+file path=usr/lib/node/wafadmin/Constants.py
+
+# Do not bother with python version:
+file path=usr/bin/node-waf \
+ pkg.depend.bypass-generate=.* \
+ facet.devel=true
+