summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <igor.pashev@nexenta.com>2012-12-12 11:21:58 +0400
committerIgor Pashev <igor.pashev@nexenta.com>2012-12-12 11:21:58 +0400
commit49488226ca1a94708829575ce2fd1f051301febf (patch)
tree7ee0306ad952bcecc68cfe0af7ef0f5f93d619fb
parent0f1bbbc58b9392e7e2927d330eb8cf83179be387 (diff)
downloadcibs-pkgs-49488226ca1a94708829575ce2fd1f051301febf.tar.gz
Node.js 0.8.15; split runtime and development files
-rw-r--r--nodejs/Makefile14
-rw-r--r--nodejs/developer-nodejs.p5m (renamed from nodejs/nodejs.p5m)22
-rw-r--r--nodejs/runtime-nodejs.p5m13
3 files changed, 32 insertions, 17 deletions
diff --git a/nodejs/Makefile b/nodejs/Makefile
index 77db4c4..bf478c7 100644
--- a/nodejs/Makefile
+++ b/nodejs/Makefile
@@ -9,19 +9,19 @@ include /usr/share/cibs/rules/autotools.mk
# Must run from the current directory:
configure := ./configure
-# Flock wrapper even does not return erro on failure:
+# Flock wrapper even does not return error on failure:
export LINK = $(CXX)
name := nodejs
-version := 0.8.14
+version := 0.8.15
home := http://nodejs.org
archive := node-v$(version).tar.gz
download := http://nodejs.org/dist/v$(version)/$(archive)
checksum := \
- md5:284fd2c7578064c339d9cf6a3a475ac7 \
- sha1:47a1186004f6ce5e25a8555429d72b15519bc7f1 \
- sha256:e5ce2aadb4df3ea4ca7a021106ffe09d286474476454038e9ed0135eac18e6d0 \
- size:11861540
+ md5:6cb31180b07475db103e694f65e8bb9b \
+ sha1:a7874cde1a87497992f1f8ea0fdaa760f617a94f \
+ sha256:1758639c6df3e081fe26585472d0f1961c5703b44ba6c57ecdf66a4c015792b1 \
+ size:11867033
summary := event-based server-side javascript engine
license := BSD
@@ -31,7 +31,7 @@ build-depends += \
library/libv8 \
library/c-ares \
library/libev \
- library/openssl-headers
+ library/openssl
# Node.js configure is a autotools lookalike confuserator:
configure-options := \
diff --git a/nodejs/nodejs.p5m b/nodejs/developer-nodejs.p5m
index 647e8dc..7428388 100644
--- a/nodejs/nodejs.p5m
+++ b/nodejs/developer-nodejs.p5m
@@ -1,19 +1,21 @@
-set name=pkg.fmri value=pkg:/runtime/$(name)@$(ips-version)
-set name=pkg.summary value="$(summary)"
+set name=pkg.fmri value=pkg:/developer/$(name)@$(ips-version)
+set name=pkg.summary value="$(summary), developer files"
+set name=pkg.description value="Contain Node.js header and node-waf utility. \
+Install this package if you want to write Node.js bingings"
set name=info.upstream-url value="$(home)"
set name=info.source-url value="$(download)"
-license $(license-file) license="$(license)"
+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
+# FIXME: Versions ?
+depend fmri=pkg:/library/libv8 type=require
+depend fmri=pkg:/library/c-ares type=require
+depend fmri=pkg:/library/libev type=require
+depend fmri=pkg:/library/openssl type=require
+depend fmri=pkg:/runtime/nodejs@$(ips-version) type=require
+depend fmri=pkg:/runtime/nodejs@$(ips-version) type=incorporate
-# Development:
# Move headers into usr/include/nodejs:
<transform dir -> edit path /node /nodejs >
diff --git a/nodejs/runtime-nodejs.p5m b/nodejs/runtime-nodejs.p5m
new file mode 100644
index 0000000..cf678bd
--- /dev/null
+++ b/nodejs/runtime-nodejs.p5m
@@ -0,0 +1,13 @@
+set name=pkg.fmri value=pkg:/runtime/$(name)@$(ips-version)
+set name=pkg.summary value="$(summary)"
+set name=info.upstream-url value="$(home)"
+set name=info.source-url value="$(download)"
+license $(license-file) license="$(license)"
+
+
+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
+