[131784] trunk/dports/devel

ciserlohn at macports.org ciserlohn at macports.org
Sun Jan 18 02:38:47 PST 2015


Revision: 131784
          https://trac.macports.org/changeset/131784
Author:   ciserlohn at macports.org
Date:     2015-01-18 02:38:46 -0800 (Sun, 18 Jan 2015)
Log Message:
-----------
iojs: new port

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

Added Paths:
-----------
    trunk/dports/devel/iojs/

Modified: trunk/dports/devel/iojs/Portfile
===================================================================
--- trunk/dports/devel/nodejs/Portfile	2015-01-16 18:03:52 UTC (rev 131736)
+++ trunk/dports/devel/iojs/Portfile	2015-01-18 10:38:46 UTC (rev 131784)
@@ -4,32 +4,44 @@
 PortSystem              1.0
 PortGroup               compiler_blacklist_versions 1.0
 
-name                    nodejs
-version                 0.10.35
-revision                1
+name                    iojs
+version                 1.0.2
 
 categories              devel net
 platforms               darwin
 license                 {MIT BSD}
 maintainers             ciserlohn
 
-description             Evented I/O for V8 JavaScript
+description             JavaScript I/O
 
-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.
+long_description        io.js is a JavaScript platform built on Chrome's V8 runtime. \
+                        This project began as a fork of Joyent's Node.js™ and is \
+                        compatible with the npm ecosystem.
 
-conflicts               nodejs-devel
+conflicts               nodejs nodejs-devel
 
-homepage                http://nodejs.org/
+homepage                https://iojs.org/
 master_sites            ${homepage}dist/v${version}
 
-checksums               rmd160  228a0c9b752b657f2ec36b083fea394ec3643c1d \
-                        sha256  0043656bb1724cb09dbdc960a2fd6ee37d3badb2f9c75562b2d11235daa40a03
+checksums               rmd160  dffb42b256589b0d7ecc4b0101205b8d38dc9e8d \
+                        sha256  39fa602bf8dda874682d9c0380311de3295997c0b674b5e8aec0b988912cd9d1
 
-distname                node-v${version}
+distname                iojs-v${version}
 
+depends_build           port:pkgconfig
+
+depends_lib             port:icu \
+                        port:python27 \
+                        port:openssl
+
+configure.python ${prefix}/bin/python2.7
+
+configure.args-append   --without-npm
+configure.args-append   --shared-openssl
+configure.args-append   --shared-openssl-includes=${prefix}/include/openssl
+configure.args-append   --shared-openssl-libpath=${prefix}/lib
+configure.args-append   --with-intl=system-icu
+
 proc rec_glob {basedir pattern} {
     set files [glob -directory $basedir -nocomplain -type f $pattern]
     foreach dir [glob -directory $basedir -nocomplain -type d *] {
@@ -38,12 +50,12 @@
     return $files
 }
 
-configure.python ${prefix}/bin/python2.7
 
 post-patch {
     foreach f [concat ${worksrcpath}/configure \
                    ${worksrcpath}/tools/gyp/gyp \
                    ${worksrcpath}/node.gyp \
+                   ${worksrcpath}/deps/cares/gyp_cares \
                    ${worksrcpath}/deps/npm/node_modules/node-gyp/gyp/gyp \
                    [rec_glob ${worksrcpath} *.py]] {
         reinplace "s|/usr/bin/env python|${configure.python}|" ${f}
@@ -62,41 +74,6 @@
     }
 }
 
-configure.args          --without-ssl
-configure.args-append   --without-npm
-
-# TODO: Remove after 2015-12-27.
-variant python25 requires python27 description {Legacy variant} {}
-
-variant python26 conflicts python27 description {Use python 2.6} {
-    depends_lib-append  port:python26
-    configure.python    ${prefix}/bin/python2.6
-}
-
-variant python27 conflicts python26 description {Use python 2.7} {
-    depends_lib-append  port:python27
-    configure.python    ${prefix}/bin/python2.7
-}
-
-if {![variant_isset python25] && ![variant_isset python26]} {
-    default_variants +python27
-}
-
-variant ssl description {Add secure socket layer support} {
-    depends_build-append    port:pkgconfig
-    depends_lib-append      port:openssl
-    configure.args-delete   --without-ssl
-    configure.args-append   --shared-openssl
-    configure.args-append   --shared-openssl-includes=${prefix}/include/openssl
-    configure.args-append   --shared-openssl-libpath=${prefix}/lib
-}
-
-variant dtrace description {Add dtrace support} {
-    configure.args-append   --with-dtrace
-}
-
-default_variants        +ssl
-
 # V8 only supports ARM and IA-32 processors
 supported_archs         i386 x86_64
 
@@ -133,10 +110,9 @@
 destroot {
     set bindir ${destroot}${prefix}/bin
     set libdir ${destroot}${prefix}/lib
-    set libndir ${libdir}/node
+    set libndir ${libdir}/${name}
     set libddir ${libdir}/dtrace
-    set incdir ${destroot}${prefix}/include/node
-    set incpdir ${destroot}${prefix}/include/node/uv-private
+    set incdir ${destroot}${prefix}/include/${name}
     set docdir ${destroot}${prefix}/share/doc/${name}
 
     xinstall -d ${bindir}
@@ -144,39 +120,80 @@
     xinstall -d ${libndir}
     xinstall -d ${libddir}
     xinstall -d ${incdir}
-    xinstall -d ${incpdir}
     xinstall -d ${docdir}
 
 # install binaries
     xinstall -m 755 -W ${worksrcpath} \
-        out/Release/node \
+        out/Release/${name} \
         ${bindir}
 
+    system "ln -s ${name} ${bindir}/node"
+
 # install headers
     xinstall -m 644 -W ${worksrcpath} \
+        src/async-wrap-inl.h \
+        src/async-wrap.h \
+        src/base-object-inl.h \
+        src/base-object.h \
+        src/debug-agent.h \
+        src/env-inl.h \
+        src/env.h \
+        src/handle_wrap.h \
         src/node.h \
         src/node_buffer.h \
+        src/node_constants.h \
+        src/node_counters.h \
+        src/node_crypto.h \
+        src/node_crypto_bio.h \
+        src/node_crypto_clienthello-inl.h \
+        src/node_crypto_clienthello.h \
+        src/node_crypto_groups.h \
+        src/node_dtrace.h \
+        src/node_file.h \
+        src/node_http_parser.h \
+        src/node_i18n.h \
+        src/node_internals.h \
+        src/node_javascript.h \
         src/node_object_wrap.h \
+        src/node_root_certs.h \
+        src/node_stat_watcher.h \
+        src/node_v8_platform.h \
         src/node_version.h \
+        src/node_watchdog.h \
+        src/node_wrap.h \
+        src/pipe_wrap.h \
+        src/queue.h \
+        src/req_wrap.h \
+        src/smalloc.h \
+        src/spawn_sync.h \
+        src/stream_wrap.h \
+        src/string_bytes.h \
+        src/tcp_wrap.h \
+        src/tls_wrap.h \
+        src/tree.h \
+        src/tty_wrap.h \
+        src/udp_wrap.h \
+        src/util-inl.h \
+        src/util.h \
+        src/v8abbr.h \
         deps/v8/include/v8-debug.h \
-        deps/v8/include/v8-preparser.h \
         deps/v8/include/v8-profiler.h \
         deps/v8/include/v8-testing.h \
         deps/v8/include/v8.h \
-        deps/v8/include/v8stdint.h \
+        deps/v8/include/v8-platform.h \
+        deps/v8/include/v8-util.h \
+        deps/v8/include/v8config.h \
         deps/uv/include/uv.h \
+        deps/uv/include/uv-unix.h \
+        deps/uv/include/uv-darwin.h \
+        deps/uv/include/tree.h \
+        deps/uv/include/uv-threadpool.h \
+        deps/uv/include/pthread-fixes.h \
         deps/cares/include/ares.h \
         deps/cares/include/ares_version.h \
+        deps/cares/include/nameser.h \
         ${incdir}
 
-# install privat uv headers
-    xinstall -m 644 -W ${worksrcpath} \
-        deps/uv/include/uv-private/ngx-queue.h \
-        deps/uv/include/uv-private/tree.h \
-        deps/uv/include/uv-private/uv-unix.h \
-        deps/uv/include/uv-private/uv-darwin.h \
-        ${incpdir}
-
 # install dtrace script
     xinstall -m 644 -W ${worksrcpath} \
         src/node.d \
@@ -184,13 +201,16 @@
 
 # install manpage
     xinstall -m 644 -W ${worksrcpath} \
-        doc/node.1 \
+        doc/${name}.1 \
         ${destroot}${prefix}/share/man/man1
 
 # install docs
     xinstall -m 644 -W ${worksrcpath} \
         AUTHORS \
-        ChangeLog \
+        ChangeLog.md \
+        COLLABORATOR_GUIDE.md \
+        CONTRIBUTING.md \
+        GOVERNANCE.md \
         LICENSE \
         README.md \
         ${docdir}
@@ -207,4 +227,4 @@
 
 livecheck.url       ${homepage}dist/
 livecheck.type      regex
-livecheck.regex     {v(\d+\.\d*[02468]\.\d+)}
+livecheck.regex     {Version (\d+\.\d+\.\d+)}

Modified: trunk/dports/devel/nodejs/Portfile
===================================================================
--- trunk/dports/devel/nodejs/Portfile	2015-01-18 10:14:23 UTC (rev 131783)
+++ trunk/dports/devel/nodejs/Portfile	2015-01-18 10:38:46 UTC (rev 131784)
@@ -20,7 +20,7 @@
                         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
+conflicts               nodejs-devel iojs
 
 homepage                http://nodejs.org/
 master_sites            ${homepage}dist/v${version}

Modified: trunk/dports/devel/nodejs-devel/Portfile
===================================================================
--- trunk/dports/devel/nodejs-devel/Portfile	2015-01-18 10:14:23 UTC (rev 131783)
+++ trunk/dports/devel/nodejs-devel/Portfile	2015-01-18 10:38:46 UTC (rev 131784)
@@ -19,7 +19,7 @@
                         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
+conflicts               nodejs iojs
 
 homepage                http://nodejs.org/
 master_sites            ${homepage}dist/v${version}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150118/6df95bf6/attachment.html>


More information about the macports-changes mailing list