aboutsummaryrefslogtreecommitdiff
path: root/www/node06
diff options
context:
space:
mode:
authorLi-Wen Hsu <lwhsu@FreeBSD.org>2012-08-14 06:02:10 +0000
committerLi-Wen Hsu <lwhsu@FreeBSD.org>2012-08-14 06:02:10 +0000
commit5b0ccdbd22bfb716425f5c0bc85b60d403fa69c2 (patch)
tree7e9a028e61efc6c5396fec4b8f0a02052d62c21f /www/node06
parent6b2d017120c76c9482be1282b4f82a138793d90b (diff)
downloadports-5b0ccdbd22bfb716425f5c0bc85b60d403fa69c2.tar.gz
ports-5b0ccdbd22bfb716425f5c0bc85b60d403fa69c2.zip
Notes
Diffstat (limited to 'www/node06')
-rw-r--r--www/node06/Makefile69
-rw-r--r--www/node06/distinfo2
-rw-r--r--www/node06/files/patch-SConstruct11
-rw-r--r--www/node06/files/patch-wafadmin-Node.py15
-rw-r--r--www/node06/files/patch-wscript12
-rw-r--r--www/node06/pkg-descr3
-rw-r--r--www/node06/pkg-plist84
7 files changed, 196 insertions, 0 deletions
diff --git a/www/node06/Makefile b/www/node06/Makefile
new file mode 100644
index 000000000000..fcecdb4af551
--- /dev/null
+++ b/www/node06/Makefile
@@ -0,0 +1,69 @@
+# New ports collection makefile for: node
+# Date created: 2010-04-12
+# Whom: Jin-Sih Lin <linpct@gmail.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= node
+PORTVERSION= 0.6.19
+CATEGORIES= www
+MASTER_SITES= http://nodejs.org/dist/v${PORTVERSION}/
+DISTNAME= ${PORTNAME}-v${PORTVERSION}
+
+MAINTAINER= linpct@gmail.com
+COMMENT= V8 JavaScript for client and server
+
+LIB_DEPENDS= execinfo.1:${PORTSDIR}/devel/libexecinfo
+
+OPTIONS= SHARED_V8 "Build with lang/v8" off
+
+CONFLICTS= node-0.[0-57-9]* node-devel-0.[0-9]*
+
+CONFIGURE_ARGS= --no-ssl2 \
+ --openssl-includes=${OPENSSLINC} \
+ --openssl-libpath=${OPENSSLLIB} \
+ --prefix=${PREFIX:S/^${DESTDIR}//} \
+ --without-npm
+HAS_CONFIGURE= yes
+MAKE_JOBS_SAFE= yes
+ONLY_FOR_ARCHS= i386 amd64
+USE_GMAKE= yes
+USE_LDCONFIG= yes
+USE_PYTHON= 2.7
+USE_OPENSSL= yes
+
+MAN1= node.1
+
+.if !defined(DISABLE_MAKE_JOBS)
+WAF_ARGS= --jobs=${MAKE_JOBS_NUMBER}
+.endif
+
+.include <bsd.port.options.mk>
+
+.if defined(WITH_SHARED_V8)
+CONFIGURE_ARGS+=--shared-v8 \
+ --shared-v8-includes=${LOCALBASE}/include \
+ --shared-v8-libpath=${LOCALBASE}/lib \
+ --without-snapshot
+LIB_DEPENDS+= v8:${PORTSDIR}/lang/v8
+PLIST_SUB+= SHARED_V8="@comment "
+.else
+PLIST_SUB+= SHARED_V8=""
+.endif
+
+do-build:
+ @(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} tools/waf-light ${WAF_ARGS} build)
+
+do-install:
+ @(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} tools/waf-light ${WAF_ARGS} install)
+
+post-install:
+ ${MKDIR} ${PREFIX}/lib/node_modules/
+ ${TOUCH} ${PREFIX}/lib/node_modules/.keepme
+ ${INSTALL_MAN} ${WRKSRC}/doc/node.1 ${MANPREFIX}/man/man1/
+ @${ECHO_MSG}
+ @${ECHO_MSG} "Note: If you need npm (Node Package Manager), please install www/npm."
+ @${ECHO_MSG}
+
+.include <bsd.port.mk>
diff --git a/www/node06/distinfo b/www/node06/distinfo
new file mode 100644
index 000000000000..cc5fc50203bd
--- /dev/null
+++ b/www/node06/distinfo
@@ -0,0 +1,2 @@
+SHA256 (node-v0.6.19.tar.gz) = 4e33292477b01dfcf50bc628d580fd5af3e5ff807490ec46472b84100fb52fbb
+SIZE (node-v0.6.19.tar.gz) = 10222697
diff --git a/www/node06/files/patch-SConstruct b/www/node06/files/patch-SConstruct
new file mode 100644
index 000000000000..b14bb95ffc1c
--- /dev/null
+++ b/www/node06/files/patch-SConstruct
@@ -0,0 +1,11 @@
+--- deps/v8/SConstruct.orig 2011-04-06 19:17:46.000000000 +0800
++++ deps/v8/SConstruct 2011-05-12 20:48:13.000000000 +0800
+@@ -178,7 +178,7 @@ LIBRARY_FLAGS = {
+ }
+ },
+ 'os:freebsd': {
+- 'CPPPATH' : ['/usr/local/include'],
++ 'CPPPATH' : [join(root_dir, 'src'), '/usr/local/include'],
+ 'LIBPATH' : ['/usr/local/lib'],
+ 'CCFLAGS': ['-ansi'],
+ 'LIBS': ['execinfo']
diff --git a/www/node06/files/patch-wafadmin-Node.py b/www/node06/files/patch-wafadmin-Node.py
new file mode 100644
index 000000000000..f9b3dd646e96
--- /dev/null
+++ b/www/node06/files/patch-wafadmin-Node.py
@@ -0,0 +1,15 @@
+--- tools/wafadmin/Node.py.orig 2011-04-02 11:21:17.000000000 +0800
++++ tools/wafadmin/Node.py 2011-04-02 11:22:37.000000000 +0800
+@@ -349,6 +349,12 @@
+ if self == from_node: return '.'
+ if from_node.parent == self: return '..'
+
++ from_node_path = from_node.abspath()
++ from_node_realpath = os.path.realpath(from_node_path)
++ if from_node_path != from_node_realpath:
++ from_node = self.__class__.bld.root.find_dir(from_node_realpath)
++ return self.relpath_gen(from_node)
++
+ # up_path is '../../../' and down_path is 'dir/subdir/subdir/file'
+ ancestor = self.find_ancestor(from_node)
+ lst = []
diff --git a/www/node06/files/patch-wscript b/www/node06/files/patch-wscript
new file mode 100644
index 000000000000..1a5ea060d4da
--- /dev/null
+++ b/www/node06/files/patch-wscript
@@ -0,0 +1,12 @@
+--- wscript.orig 2012-05-16 13:28:07.000000000 +0800
++++ wscript 2012-05-16 13:33:24.000000000 +0800
+@@ -642,8 +642,7 @@
+ #
+ cmd = 'cp -r ' + sh_escape(srcdir) + '/* ' + sh_escape(blddir)
+ if not sys.platform.startswith('win32'):
+- make = ('if [ -z "$NODE_MAKE" ]; then NODE_MAKE=make; fi; '
+- '$NODE_MAKE -C ' + sh_escape(blddir))
++ make = 'gmake -C ' + sh_escape(blddir)
+ flags = arch_cflags(bld)
+ if flags: make += ' CFLAGS=\'%s\'' % ' '.join(flags) # don't escape
+ else:
diff --git a/www/node06/pkg-descr b/www/node06/pkg-descr
new file mode 100644
index 000000000000..079aa9b45c25
--- /dev/null
+++ b/www/node06/pkg-descr
@@ -0,0 +1,3 @@
+node - evented I/O for V8 javascript
+
+WWW: http://nodejs.org/
diff --git a/www/node06/pkg-plist b/www/node06/pkg-plist
new file mode 100644
index 000000000000..55ca2854f8d8
--- /dev/null
+++ b/www/node06/pkg-plist
@@ -0,0 +1,84 @@
+bin/node
+bin/node-waf
+include/node/ares.h
+include/node/ares_version.h
+include/node/c-ares/ares.h
+include/node/c-ares/ares_version.h
+include/node/config.h
+include/node/node.h
+include/node/node_buffer.h
+include/node/node_config.h
+include/node/node_object_wrap.h
+include/node/node_version.h
+include/node/uv-private/eio.h
+include/node/uv-private/ev.h
+include/node/uv-private/ngx-queue.h
+include/node/uv-private/tree.h
+include/node/uv-private/uv-unix.h
+include/node/uv-private/uv-win.h
+include/node/uv.h
+%%SHARED_V8%%include/node/v8-debug.h
+%%SHARED_V8%%include/node/v8-preparser.h
+%%SHARED_V8%%include/node/v8-profiler.h
+%%SHARED_V8%%include/node/v8-testing.h
+%%SHARED_V8%%include/node/v8.h
+%%SHARED_V8%%include/node/v8stdint.h
+lib/node/wafadmin/Build.py
+lib/node/wafadmin/Configure.py
+lib/node/wafadmin/Constants.py
+lib/node/wafadmin/Environment.py
+lib/node/wafadmin/Logs.py
+lib/node/wafadmin/Node.py
+lib/node/wafadmin/Options.py
+lib/node/wafadmin/Runner.py
+lib/node/wafadmin/Scripting.py
+lib/node/wafadmin/Task.py
+lib/node/wafadmin/TaskGen.py
+lib/node/wafadmin/Tools/__init__.py
+lib/node/wafadmin/Tools/ar.py
+lib/node/wafadmin/Tools/cc.py
+lib/node/wafadmin/Tools/ccroot.py
+lib/node/wafadmin/Tools/compiler_cc.py
+lib/node/wafadmin/Tools/compiler_cxx.py
+lib/node/wafadmin/Tools/compiler_d.py
+lib/node/wafadmin/Tools/config_c.py
+lib/node/wafadmin/Tools/cxx.py
+lib/node/wafadmin/Tools/d.py
+lib/node/wafadmin/Tools/dmd.py
+lib/node/wafadmin/Tools/gas.py
+lib/node/wafadmin/Tools/gcc.py
+lib/node/wafadmin/Tools/gdc.py
+lib/node/wafadmin/Tools/gnu_dirs.py
+lib/node/wafadmin/Tools/gob2.py
+lib/node/wafadmin/Tools/gxx.py
+lib/node/wafadmin/Tools/icc.py
+lib/node/wafadmin/Tools/icpc.py
+lib/node/wafadmin/Tools/intltool.py
+lib/node/wafadmin/Tools/libtool.py
+lib/node/wafadmin/Tools/misc.py
+lib/node/wafadmin/Tools/nasm.py
+lib/node/wafadmin/Tools/node_addon.py
+lib/node/wafadmin/Tools/osx.py
+lib/node/wafadmin/Tools/preproc.py
+lib/node/wafadmin/Tools/python.py
+lib/node/wafadmin/Tools/suncc.py
+lib/node/wafadmin/Tools/suncxx.py
+lib/node/wafadmin/Tools/unittestw.py
+lib/node/wafadmin/Tools/winres.py
+lib/node/wafadmin/Tools/xlc.py
+lib/node/wafadmin/Tools/xlcxx.py
+lib/node/wafadmin/Utils.py
+lib/node/wafadmin/__init__.py
+lib/node/wafadmin/ansiterm.py
+lib/node/wafadmin/pproc.py
+lib/node/wafadmin/py3kfixes.py
+lib/node_modules/.keepme
+@dirrm lib/node_modules
+@dirrm lib/node/wafadmin/Tools
+@dirrm lib/node/wafadmin
+@dirrm lib/node
+@dirrm include/node/uv-private
+@dirrm include/node/ev
+@dirrm include/node/c-ares
+@dirrm include/node
+@exec mkdir -p %D/include/node/ev