Permalink
Browse files

Add node08 to hold the latest 0.8 release of Node.js

  • Loading branch information...
mamash committed Mar 13, 2013
1 parent 73ed4d2 commit cf29be2f6330077ac583dc8166620c391205f29b
View
@@ -0,0 +1,2 @@
+Node.js is an evented I/O framework for the V8 JavaScript engine. It is
+intended for writing scalable network programs such as web servers.
View
@@ -0,0 +1,60 @@
+# $NetBSD$
+#
+
+DISTNAME= node-v0.8.22
+CATEGORIES= devel
+MASTER_SITES= http://nodejs.org/dist/${DISTNAME:S/node-//}/
+PKGNAME= ${DISTNAME:S/-v/js-/}
+
+MAINTAINER= msporleder@gmail.com
+HOMEPAGE= http://nodejs.org/
+COMMENT= V8 JavaScript for clients and servers
+LICENSE= mit
+
+CHECK_INTERPRETER= no
+
+HAS_CONFIGURE= yes
+USE_TOOLS+= pkg-config
+USE_TOOLS+= gmake
+USE_LANGUAGES= c c++
+
+.include "../../mk/bsd.prefs.mk"
+.include "options.mk"
+
+SUBST_CLASSES+= python
+SUBST_STAGE.python= pre-configure
+SUBST_MESSAGE.python= Fixing Python references
+SUBST_FILES.python= node.gyp deps/v8/tools/gyp/v8.gyp
+SUBST_VARS.python= PYTHONBIN
+
+SUBST_CLASSES+= man
+SUBST_STAGE.man= pre-configure
+SUBST_MESSAGE.man= Fixing man path
+SUBST_FILES.man= tools/install.py
+SUBST_VARS.man= PKGMANDIR
+
+CONFIG_SHELL= ${PYTHONBIN}
+CONFIGURE_ARGS+= --prefix=${PREFIX}
+
+.if ${OPSYS} == "NetBSD"
+CONFIGURE_ENV+= GYP_DEFINES="OS=netbsd"
+MAKE_ENV+= GYP_DEFINES="OS=netbsd"
+.endif
+
+REPLACE_PYTHON+= configure
+REPLACE_PYTHON+= tools/genv8constants.py
+REPLACE_PYTHON+= tools/gyp_node
+REPLACE_PYTHON+= tools/gyp/pylib/gyp/sun_tool.py
+REPLACE_PYTHON+= tools/node-waf
+REPLACE_PYTHON+= tools/waf-light
+REPLACE_PYTHON+= tools/wafadmin/*.py
+REPLACE_PYTHON+= tools/wafadmin/Tools/*.py
+
+.if ${OPSYS} == "NetBSD" || ${OPSYS} == "FreeBSD" || ${OPSYS} == "OpenBSD"
+. include "../../wip/libexecinfo/buildlink3.mk"
+.endif
+.if ${OPSYS} == "NetBSD"
+BUILD_DEPENDS+= lockf-[0-9]*:../../wip/lockf
+.endif
+.include "../../lang/python/application.mk"
+.include "../../mk/bsd.pkg.mk"
Oops, something went wrong.

0 comments on commit cf29be2

Please sign in to comment.