aboutsummaryrefslogtreecommitdiffstats
path: root/www/node-devel
diff options
context:
space:
mode:
authorsunpoet <sunpoet@FreeBSD.org>2010-10-26 22:28:21 +0800
committersunpoet <sunpoet@FreeBSD.org>2010-10-26 22:28:21 +0800
commit0127f8e209fc02633b682e044449c4a5f45cce4c (patch)
tree896875d3fd5830d835e6d27d17c121d71c6a95be /www/node-devel
parent9c5f890ae7af2c8175c5314240ebda366688a800 (diff)
downloadfreebsd-ports-gnome-0127f8e209fc02633b682e044449c4a5f45cce4c.tar.gz
freebsd-ports-gnome-0127f8e209fc02633b682e044449c4a5f45cce4c.tar.zst
freebsd-ports-gnome-0127f8e209fc02633b682e044449c4a5f45cce4c.zip
- Add node-devel-0.3.0
node - evented I/O for V8 javascript WWW: http://nodejs.org/ PR: ports/151746 Submitted by: Jin-Sih Lin <linpct@gmail.com> Approved by: pgollucci (mentor, implicit)
Diffstat (limited to 'www/node-devel')
-rw-r--r--www/node-devel/Makefile45
-rw-r--r--www/node-devel/distinfo3
-rw-r--r--www/node-devel/files/patch-deps-v8-platform14
-rw-r--r--www/node-devel/files/patch-man-and-pkgconfig-path20
-rw-r--r--www/node-devel/pkg-descr3
-rw-r--r--www/node-devel/pkg-plist69
6 files changed, 154 insertions, 0 deletions
diff --git a/www/node-devel/Makefile b/www/node-devel/Makefile
new file mode 100644
index 000000000000..5c7b573fed68
--- /dev/null
+++ b/www/node-devel/Makefile
@@ -0,0 +1,45 @@
+# New ports collection makefile for: node
+# Date created: 2010-10-26
+# Whom: Jin-Sih Lin <linpct@gmail.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= node
+PORTVERSION= 0.3.0
+CATEGORIES= www
+MASTER_SITES= http://nodejs.org/dist/
+PKGNAMESUFFIX= -devel
+DISTNAME= ${PORTNAME}-v${PORTVERSION}
+
+MAINTAINER= linpct@gmail.com
+COMMENT= V8 javascript for client and server
+
+LIB_DEPENDS= execinfo.1:${PORTSDIR}/devel/libexecinfo
+
+MAN1= node.1
+
+HAS_CONFIGURE= yes
+USE_LDCONFIG= yes
+USE_PYTHON= yes
+USE_GNOME= pkgconfig
+
+ONLY_FOR_ARCHS= i386 amd64
+MAKE_JOBS_SAFE= yes
+
+CONFLICTS= node-0.2.[0-9]*
+
+CONFIGURE_ARGS= --prefix=${PREFIX_RELDEST}
+PREFIX_RELDEST= ${PREFIX:S,^${DESTDIR},,}
+
+.if !defined(DISABLE_MAKE_JOBS)
+WAF_ARGS= --jobs=${MAKE_JOBS_NUMBER}
+.endif
+
+do-build:
+ @(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} tools/waf-light ${WAF_ARGS} build)
+
+post-install:
+ @${INSTALL_MAN} ${WRKSRC}/doc/node.1 ${MANPREFIX}/man/man1/
+
+.include <bsd.port.mk>
diff --git a/www/node-devel/distinfo b/www/node-devel/distinfo
new file mode 100644
index 000000000000..88fde9891e59
--- /dev/null
+++ b/www/node-devel/distinfo
@@ -0,0 +1,3 @@
+MD5 (node-v0.3.0.tar.gz) = 4e4e56c8538afafcdf45fd99cdb1ae45
+SHA256 (node-v0.3.0.tar.gz) = aa53c3d136ceaa02108ad013d9d9917e6e2ea22f10e3bd7414f4ba6f6a1427b5
+SIZE (node-v0.3.0.tar.gz) = 4054239
diff --git a/www/node-devel/files/patch-deps-v8-platform b/www/node-devel/files/patch-deps-v8-platform
new file mode 100644
index 000000000000..4f97e403c6b9
--- /dev/null
+++ b/www/node-devel/files/patch-deps-v8-platform
@@ -0,0 +1,14 @@
+--- deps/v8/src/platform-freebsd.cc.orig 2010-10-24 07:00:15.000000000 +0800
++++ deps/v8/src/platform-freebsd.cc 2010-10-26 17:10:36.000000000 +0800
+@@ -617,7 +617,10 @@
+
+
+ Sampler::Sampler(int interval, bool profiling)
+- : interval_(interval), profiling_(profiling), active_(false) {
++ : interval_(interval),
++ profiling_(profiling),
++ synchronous_(profiling),
++ active_(false) {
+ data_ = new PlatformData();
+ }
+
diff --git a/www/node-devel/files/patch-man-and-pkgconfig-path b/www/node-devel/files/patch-man-and-pkgconfig-path
new file mode 100644
index 000000000000..9a6e3dbfb145
--- /dev/null
+++ b/www/node-devel/files/patch-man-and-pkgconfig-path
@@ -0,0 +1,20 @@
+--- wscript.orig 2010-10-24 07:00:15.000000000 +0800
++++ wscript 2010-10-26 18:09:54.000000000 +0800
+@@ -571,8 +571,6 @@
+
+ # Only install the man page if it exists.
+ # Do 'make doc install' to build and install it.
+- if os.path.exists('doc/node.1'):
+- bld.install_files('${PREFIX}/share/man/man1/', 'doc/node.1')
+
+ bld.install_files('${PREFIX}/bin/', 'bin/*', chmod=0755)
+ bld.install_files('${PREFIX}/lib/node/wafadmin', 'tools/wafadmin/*.py')
+@@ -584,7 +582,7 @@
+ node_conf.target = 'tools/nodejs.pc'
+ node_conf.dict = subflags(node)
+
+- bld.install_files('${PREFIX}/lib/pkgconfig', 'tools/nodejs.pc')
++ bld.install_files('${PREFIX}/libdata/pkgconfig', 'tools/nodejs.pc')
+
+ def shutdown():
+ Options.options.debug
diff --git a/www/node-devel/pkg-descr b/www/node-devel/pkg-descr
new file mode 100644
index 000000000000..079aa9b45c25
--- /dev/null
+++ b/www/node-devel/pkg-descr
@@ -0,0 +1,3 @@
+node - evented I/O for V8 javascript
+
+WWW: http://nodejs.org/
diff --git a/www/node-devel/pkg-plist b/www/node-devel/pkg-plist
new file mode 100644
index 000000000000..976fdf18ccec
--- /dev/null
+++ b/www/node-devel/pkg-plist
@@ -0,0 +1,69 @@
+bin/node
+bin/node-repl
+bin/node-waf
+include/node/config.h
+include/node/eio.h
+include/node/ev.h
+include/node/node.h
+include/node/node_buffer.h
+include/node/node_config.h
+include/node/node_events.h
+include/node/node_object_wrap.h
+include/node/node_version.h
+include/node/v8-debug.h
+include/node/v8-profiler.h
+include/node/v8.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
+libdata/pkgconfig/nodejs.pc
+@dirrm lib/node/wafadmin/Tools
+@dirrm lib/node/wafadmin
+@dirrm lib/node
+@dirrm include/node