ports/159410: [MAINTAINER] www/node: update to 0.5.3

Jin-Sih Lin linpct at gmail.com
Wed Aug 3 10:20:11 UTC 2011


>Number:         159410
>Category:       ports
>Synopsis:       [MAINTAINER] www/node: update to 0.5.3
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 03 10:20:05 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Jin-Sih Lin
>Release:        FreeBSD 8.2-STABLE i386
>Organization:
FreeBSD @ Taiwan
>Environment:
System: FreeBSD deep.tw 8.2-STABLE FreeBSD 8.2-STABLE #0: Fri Feb 25 14:49:48 CST 2011
>Description:
- Update to 0.5.3

Added file(s):
- files/patch-deps-uv-config-unix.mk
- files/patch-uv-unix.c
- files/patch-wscript

Removed file(s):
- files/patch-man-and-pkgconfig-path
- files/patch-platform-freebsd

Generated with FreeBSD Port Tools 0.99
>How-To-Repeat:
>Fix:

--- node-0.5.3.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/www/node-devel.orig/Makefile /usr/ports/www/node-devel/Makefile
--- /usr/ports/www/node-devel.orig/Makefile	2011-03-18 22:01:30.000000000 +0800
+++ /usr/ports/www/node-devel/Makefile	2011-08-03 18:12:23.000000000 +0800
@@ -1,22 +1,19 @@
 # New ports collection makefile for:		node
-# Date created:					2010-10-26
+# Date created:					2010-04-12
 # Whom:						Jin-Sih Lin <linpct at gmail.com>
 #
-# $FreeBSD: ports/www/node-devel/Makefile,v 1.11 2011/03/18 14:01:30 araujo Exp $
+# $FreeBSD: ports/www/node-devel/Makefile,v 1.31 2011/07/21 09:11:45 sunpoet Exp $
 #
 
 PORTNAME=	node
-PORTVERSION=	0.4.1
+PORTVERSION=	0.5.3
 CATEGORIES=	www
 MASTER_SITES=	http://nodejs.org/dist/
-PKGNAMESUFFIX=	-devel
 DISTNAME=	${PORTNAME}-v${PORTVERSION}
 
 MAINTAINER=	linpct at gmail.com
 COMMENT=	V8 javascript for client and server
 
-IGNORE=	is currently suspended, install www/node that is the current stable version
-
 LIB_DEPENDS=	execinfo.1:${PORTSDIR}/devel/libexecinfo
 
 MAN1=		node.1
@@ -24,21 +21,31 @@
 HAS_CONFIGURE=	yes
 USE_LDCONFIG=	yes
 USE_PYTHON=	yes
-USE_GNOME=	pkgconfig
-
-ONLY_FOR_ARCHS=	i386
-MAKE_JOBS_SAFE=	yes
+USE_GMAKE=	yes
 
-CONFLICTS=	node-0.2.[0-9]*
+CONFLICTS=	node-0.4.[0-9]*
 
+ONLY_FOR_ARCHS=	i386 amd64
+MAKE_JOBS_SAFE=	yes
 CONFIGURE_ARGS=	--prefix=${PREFIX_RELDEST}
 PREFIX_RELDEST=	${PREFIX:S,^${DESTDIR},,}
 
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} == amd64
+LIB_DEPENDS+=	v8.1:${PORTSDIR}/lang/v8
+CONFIGURE_ARGS+=	--shared-v8-includes=${LOCALBASE}/include --shared-v8-libpath=${LOCALBASE}/lib
+PLIST_SUB+=	SHAREDV8="@comment "
+.else
+PLIST_SUB+=	SHAREDV8=""
+.endif
+
 .if !defined(DISABLE_MAKE_JOBS)
 WAF_ARGS=	--jobs=${MAKE_JOBS_NUMBER}
 .endif
 
 do-build:
+	@(cd ${WRKSRC}; ${CP} -p deps/v8/src/jsregexp.h deps/v8/src/ia32/jsregexp.h)
 	@(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} tools/waf-light ${WAF_ARGS} build)
 
 do-install:
@@ -47,4 +54,4 @@
 post-install:
 	@${INSTALL_MAN}  ${WRKSRC}/doc/node.1 ${MANPREFIX}/man/man1/
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff -ruN --exclude=CVS /usr/ports/www/node-devel.orig/distinfo /usr/ports/www/node-devel/distinfo
--- /usr/ports/www/node-devel.orig/distinfo	2011-02-20 17:19:25.000000000 +0800
+++ /usr/ports/www/node-devel/distinfo	2011-08-03 08:00:19.000000000 +0800
@@ -1,2 +1,2 @@
-SHA256 (node-v0.4.1.tar.gz) = fdd61c479a0c9f30102454ee53d2ba0c5fc9f6d06d1073958ae2fd3fc314de23
-SIZE (node-v0.4.1.tar.gz) = 4855576
+SHA256 (node-v0.5.3.tar.gz) = 27e5a488040e59e192b3db6675c5f0b6b00cccdd53f1a7cdf98b6477220fbb1e
+SIZE (node-v0.5.3.tar.gz) = 5539172
diff -ruN --exclude=CVS /usr/ports/www/node-devel.orig/files/patch-deps-uv-config-unix.mk /usr/ports/www/node-devel/files/patch-deps-uv-config-unix.mk
--- /usr/ports/www/node-devel.orig/files/patch-deps-uv-config-unix.mk	1970-01-01 08:00:00.000000000 +0800
+++ /usr/ports/www/node-devel/files/patch-deps-uv-config-unix.mk	2011-08-03 16:59:41.000000000 +0800
@@ -0,0 +1,13 @@
+--- deps/uv/config-unix.mk.orig	2011-08-02 15:17:41.000000000 +0800
++++ deps/uv/config-unix.mk	2011-08-03 16:27:45.000000000 +0800
+@@ -18,8 +18,8 @@
+ # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ # IN THE SOFTWARE.
+ 
+-CC = $(PREFIX)gcc
+-AR = $(PREFIX)ar
++CC = /usr/bin/gcc
++AR = /usr/bin/ar
+ E=
+ CSTDFLAG=--std=c89 -pedantic -Wall -Wextra -Wno-unused-parameter
+ CFLAGS=-g
diff -ruN --exclude=CVS /usr/ports/www/node-devel.orig/files/patch-man-and-pkgconfig-path /usr/ports/www/node-devel/files/patch-man-and-pkgconfig-path
--- /usr/ports/www/node-devel.orig/files/patch-man-and-pkgconfig-path	2011-02-11 01:30:19.000000000 +0800
+++ /usr/ports/www/node-devel/files/patch-man-and-pkgconfig-path	1970-01-01 08:00:00.000000000 +0800
@@ -1,20 +0,0 @@
---- wscript.orig	2011-02-05 15:45:34.000000000 +0800
-+++ wscript	2011-02-05 15:46:27.000000000 +0800
-@@ -810,8 +810,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/', 'tools/node-waf', chmod=0755)
-   bld.install_files('${PREFIX}/lib/node/wafadmin', 'tools/wafadmin/*.py')
-@@ -823,7 +821,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 -ruN --exclude=CVS /usr/ports/www/node-devel.orig/files/patch-platform-freebsd /usr/ports/www/node-devel/files/patch-platform-freebsd
--- /usr/ports/www/node-devel.orig/files/patch-platform-freebsd	2011-02-11 01:30:19.000000000 +0800
+++ /usr/ports/www/node-devel/files/patch-platform-freebsd	1970-01-01 08:00:00.000000000 +0800
@@ -1,28 +0,0 @@
---- deps/v8/src/platform-freebsd.cc.orig	2011-02-05 15:15:52.000000000 +0800
-+++ deps/v8/src/platform-freebsd.cc	2011-02-05 15:34:20.000000000 +0800
-@@ -526,6 +526,16 @@
-     return result;
-   }
- 
-+  virtual bool TryLock() {
-+    int result = pthread_mutex_trylock(&mutex_);
-+    // Return false if the lock is busy and locking failed.
-+    if (result == EBUSY) {
-+      return false;
-+    }
-+    ASSERT(result == 0);  // Verify no other errors.
-+    return true;
-+  }
-+
-  private:
-   pthread_mutex_t mutex_;   // Pthread mutex for POSIX platforms.
- };
-@@ -604,7 +614,7 @@
-   TickSample sample;
- 
-   // We always sample the VM state.
--  sample.state = VMState::current_state();
-+  // sample.state = VMState::current_state();
- 
-   // If profiling, we extract the current pc and sp.
-   if (active_sampler_->IsProfiling()) {
diff -ruN --exclude=CVS /usr/ports/www/node-devel.orig/files/patch-uv-unix.c /usr/ports/www/node-devel/files/patch-uv-unix.c
--- /usr/ports/www/node-devel.orig/files/patch-uv-unix.c	1970-01-01 08:00:00.000000000 +0800
+++ /usr/ports/www/node-devel/files/patch-uv-unix.c	2011-08-03 17:00:04.000000000 +0800
@@ -0,0 +1,10 @@
+--- deps/uv/src/uv-unix.c.orig	2011-08-02 15:17:41.000000000 +0800
++++ deps/uv/src/uv-unix.c	2011-08-03 16:27:45.000000000 +0800
+@@ -54,6 +54,7 @@
+ 
+ #if defined(__FreeBSD__)
+ #include <sys/sysctl.h>
++#include <sys/wait.h>
+ #endif
+ 
+ 
diff -ruN --exclude=CVS /usr/ports/www/node-devel.orig/files/patch-wafadmin-Node.py /usr/ports/www/node-devel/files/patch-wafadmin-Node.py
--- /usr/ports/www/node-devel.orig/files/patch-wafadmin-Node.py	2010-11-19 02:02:30.000000000 +0800
+++ /usr/ports/www/node-devel/files/patch-wafadmin-Node.py	2011-08-03 16:58:59.000000000 +0800
@@ -1,5 +1,5 @@
---- tools/wafadmin/Node.py.orig	2010-10-25 05:45:39.000000000 +0800
-+++ tools/wafadmin/Node.py	2010-10-27 18:30:12.000000000 +0800
+--- tools/wafadmin/Node.py.orig	2011-08-03 16:32:55.000000000 +0800
++++ tools/wafadmin/Node.py	2011-08-03 16:56:11.000000000 +0800
 @@ -349,6 +349,12 @@
  		if self == from_node: return '.'
  		if from_node.parent == self: return '..'
diff -ruN --exclude=CVS /usr/ports/www/node-devel.orig/files/patch-wscript /usr/ports/www/node-devel/files/patch-wscript
--- /usr/ports/www/node-devel.orig/files/patch-wscript	1970-01-01 08:00:00.000000000 +0800
+++ /usr/ports/www/node-devel/files/patch-wscript	2011-08-03 16:59:04.000000000 +0800
@@ -0,0 +1,20 @@
+--- wscript.orig	2011-08-03 16:28:40.000000000 +0800
++++ wscript	2011-08-03 16:29:22.000000000 +0800
+@@ -623,7 +623,7 @@
+   #
+   cmd = 'cp -r ' + sh_escape(srcdir)  + '/* ' + sh_escape(blddir)
+   if not sys.platform.startswith('win32'):
+-    cmd += ' && if [[ -z "$NODE_MAKE" ]]; then NODE_MAKE=make; fi; $NODE_MAKE -C ' + sh_escape(blddir)
++    cmd += ' && gmake -C ' + sh_escape(blddir)
+   else:
+     cmd += ' && make -C ' + sh_escape(blddir)
+   return cmd
+@@ -949,8 +949,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/', 'tools/node-waf', chmod=0755)
+   bld.install_files('${LIBDIR}/node/wafadmin', 'tools/wafadmin/*.py')
diff -ruN --exclude=CVS /usr/ports/www/node-devel.orig/pkg-plist /usr/ports/www/node-devel/pkg-plist
--- /usr/ports/www/node-devel.orig/pkg-plist	2010-12-29 01:50:43.000000000 +0800
+++ /usr/ports/www/node-devel/pkg-plist	2011-08-03 17:53:21.000000000 +0800
@@ -1,14 +1,31 @@
 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/eio.h
 include/node/ev.h
+include/node/ev/config_cygwin.h
+include/node/ev/config_darwin.h
+include/node/ev/config_freebsd.h
+include/node/ev/config_linux.h
+include/node/ev/config_sunos.h
+include/node/ev/ev++.h
+include/node/ev/ev_vars.h
+include/node/ev/ev_wrap.h
+include/node/ev/event.h
+include/node/ngx-queue.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/tree.h
+include/node/uv-unix.h
+include/node/uv-win.h
+include/node/uv.h
 include/node/v8-debug.h
 include/node/v8-preparser.h
 include/node/v8-profiler.h
@@ -64,8 +81,9 @@
 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
+ at dirrm include/node/ev
+ at dirrm include/node/c-ares
 @dirrm include/node
--- node-0.5.3.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list