[80395] trunk/dports/devel

ciserlohn at macports.org ciserlohn at macports.org
Mon Jul 11 10:45:27 PDT 2011


Revision: 80395
          http://trac.macports.org/changeset/80395
Author:   ciserlohn at macports.org
Date:     2011-07-11 10:45:23 -0700 (Mon, 11 Jul 2011)
Log Message:
-----------
nodejs: take over maintainership, add nodejs-devel port, adapt livecheck regex

* take over maintainership as the current maintainer is no longer interested in maintaining the port:
  (...)
  >> Are you still interested to maintain the port? If not, I would be willing to take over the maintainership.
  > Go for it.
  (...)
* add nodejs-devel port for the unstable/development version of nodejs
* adapt livecheck to versioning scheme: even/stable (nodejs), odd/unstable (nodejs-devel)

Modified Paths:
--------------
    trunk/dports/devel/nodejs/Portfile

Added Paths:
-----------
    trunk/dports/devel/nodejs-devel/
    trunk/dports/devel/nodejs-devel/Portfile
    trunk/dports/devel/nodejs-devel/files/
    trunk/dports/devel/nodejs-devel/files/patch-Makefile-python.diff
    trunk/dports/devel/nodejs-devel/files/patch-platform.diff

Modified: trunk/dports/devel/nodejs/Portfile
===================================================================
--- trunk/dports/devel/nodejs/Portfile	2011-07-11 15:03:07 UTC (rev 80394)
+++ trunk/dports/devel/nodejs/Portfile	2011-07-11 17:45:23 UTC (rev 80395)
@@ -7,7 +7,7 @@
 version                 0.4.9
 categories              devel net
 platforms               darwin
-maintainers             gmail.com:ceager openmaintainer
+maintainers             ciserlohn
 
 description             Evented I/O for V8 JavaScript
 
@@ -16,6 +16,8 @@
                         Machine or Python's Twisted. Node takes the event model a bit further-it \
                         presents the event loop as a language construct instead of as a library.
 
+conflicts               nodejs-devel
+
 homepage                http://nodejs.org/
 master_sites            ${homepage}dist/
 
@@ -75,4 +77,4 @@
                     PYTHON=${prefix}/bin/python2.7
 
 livecheck.type      regex
-livecheck.regex     ">node-v(\\d+(?:\\.\\d+)*)${extract.suffix}<"
+livecheck.regex     node-v(\\d+\\.\[02468\]+\\.\\d+)

Added: trunk/dports/devel/nodejs-devel/Portfile
===================================================================
--- trunk/dports/devel/nodejs-devel/Portfile	                        (rev 0)
+++ trunk/dports/devel/nodejs-devel/Portfile	2011-07-11 17:45:23 UTC (rev 80395)
@@ -0,0 +1,80 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem              1.0
+
+name                    nodejs-devel
+version                 0.5.0
+categories              devel net
+platforms               darwin
+maintainers             ciserlohn
+
+description             Evented I/O for V8 JavaScript
+
+long_description        Node's goal is to provide an easy way to build scalable network programs in JavaScript. \
+                        Node is similar in design to and influenced by systems like Ruby's Event \
+                        Machine or Python's Twisted. Node takes the event model a bit further-it \
+                        presents the event loop as a language construct instead of as a library.
+
+conflicts               nodejs
+
+homepage                http://nodejs.org/
+master_sites            ${homepage}dist/
+
+checksums               sha1    9d7fa566227d870b40221fb193a598fde001ecaa \
+                        rmd160  b5036e31c27627604c337333d3d5e22e124c3978
+
+distname                node-v${version}
+
+depends_build           port:python27
+
+patchfiles              patch-Makefile-python.diff \
+                        patch-platform.diff
+
+pre-configure {
+    foreach {badport badfile} "libev ${prefix}/include/ev.h c-ares ${prefix}/include/ares.h" {
+        if {[file exists ${badfile}]} {
+            ui_error "${name} cannot be built while ${badport} is active."
+            ui_error "Please deactivate ${badport} and try again."
+            ui_error "You can reactivate ${badport} again later."
+            return -code error "${badport} is installed"
+        }
+    }
+}
+
+configure.args          --without-ssl
+
+variant ssl description {Add secure socket layer support} {
+    depends_build-append    port:pkgconfig
+    depends_lib-append      port:openssl
+    configure.args-delete   --without-ssl
+}
+
+default_variants        +ssl
+
+# V8 only supports ARM and IA-32 processors
+universal_variant       no
+
+# "V8 doesn't like cache."
+configure.ccache        no
+
+test.run                yes
+
+# TODO: Fix the doc installation
+#variant doc description {Build and install manpages} {
+#    use_configure   no
+#    build {}
+#    destroot.target doc install
+#
+#    depends_lib-append      port:asciidoc \
+#                            port:libxslt
+#}
+
+build.args-append   CC=${configure.cc} \
+                    CXX=${configure.cxx} \
+                    CFLAGS="${configure.cflags} ${configure.cc_archflags}" \
+                    LDFLAGS="${configure.ldflags} ${configure.ld_archflags}" \
+                    PYTHON=${prefix}/bin/python2.7
+
+livecheck.type      regex
+livecheck.regex     node-v(\\d+\\.\[13579\]+\\.\\d+)


Property changes on: trunk/dports/devel/nodejs-devel/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/devel/nodejs-devel/files/patch-Makefile-python.diff
===================================================================
--- trunk/dports/devel/nodejs-devel/files/patch-Makefile-python.diff	                        (rev 0)
+++ trunk/dports/devel/nodejs-devel/files/patch-Makefile-python.diff	2011-07-11 17:45:23 UTC (rev 80395)
@@ -0,0 +1,54 @@
+--- Makefile.orig	2011-03-18 22:25:20.000000000 +0100
++++ Makefile	2011-04-05 09:51:09.000000000 +0200
+@@ -1,4 +1,5 @@
+-WAF=python tools/waf-light
++PYTHON=python
++WAF=$(PYTHON) tools/waf-light
+ 
+ web_root = ryan at nodejs.org:~/web/nodejs.org/
+ 
+@@ -23,34 +24,34 @@
+ 	@$(WAF) uninstall
+ 
+ test: all
+-	python tools/test.py --mode=release simple message
++	$(PYTHON) tools/test.py --mode=release simple message
+ 
+ test-valgrind: all
+-	python tools/test.py --mode=release --valgrind simple message
++	$(PYTHON) tools/test.py --mode=release --valgrind simple message
+ 
+ test-all: all
+-	python tools/test.py --mode=debug,release
++	$(PYTHON) tools/test.py --mode=debug,release
+ 
+ test-all-valgrind: all
+-	python tools/test.py --mode=debug,release --valgrind
++	$(PYTHON) tools/test.py --mode=debug,release --valgrind
+ 
+ test-release: all
+-	python tools/test.py --mode=release
++	$(PYTHON) tools/test.py --mode=release
+ 
+ test-debug: all
+-	python tools/test.py --mode=debug
++	$(PYTHON) tools/test.py --mode=debug
+ 
+ test-message: all
+-	python tools/test.py message
++	$(PYTHON) tools/test.py message
+ 
+ test-simple: all
+-	python tools/test.py simple
++	$(PYTHON) tools/test.py simple
+ 
+ test-pummel: all
+-	python tools/test.py pummel
++	$(PYTHON) tools/test.py pummel
+ 
+ test-internet: all
+-	python tools/test.py internet
++	$(PYTHON) tools/test.py internet
+ 
+ build/default/node: all
+ 

Added: trunk/dports/devel/nodejs-devel/files/patch-platform.diff
===================================================================
--- trunk/dports/devel/nodejs-devel/files/patch-platform.diff	                        (rev 0)
+++ trunk/dports/devel/nodejs-devel/files/patch-platform.diff	2011-07-11 17:45:23 UTC (rev 80395)
@@ -0,0 +1,22 @@
+--- src/node.cc.orig	2011-03-18 16:25:20.000000000 -0500
++++ src/node.cc	2011-03-23 21:32:39.000000000 -0500
+@@ -47,7 +47,7 @@
+ # include <grp.h> /* getgrnam() */
+ #endif
+ 
+-#include <platform.h>
++#include "platform.h"
+ #include <node_buffer.h>
+ #include <node_io_watcher.h>
+ #include <node_net.h>
+--- src/node_os.cc.orig	2011-03-18 16:25:20.000000000 -0500
++++ src/node_os.cc	2011-03-23 21:32:39.000000000 -0500
+@@ -22,7 +22,7 @@
+ 
+ #include <node.h>
+ #include <node_os.h>
+-#include <platform.h>
++#include "platform.h"
+ 
+ #include <v8.h>
+ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110711/d13c1873/attachment.html>


More information about the macports-changes mailing list