[132690] trunk/dports/devel/nodejs/Portfile
ciserlohn at macports.org
ciserlohn at macports.org
Sat Feb 7 14:01:07 PST 2015
Revision: 132690
https://trac.macports.org/changeset/132690
Author: ciserlohn at macports.org
Date: 2015-02-07 14:01:07 -0800 (Sat, 07 Feb 2015)
Log Message:
-----------
nodejs: update to version 0.12.0
Modified Paths:
--------------
trunk/dports/devel/nodejs/Portfile
Modified: trunk/dports/devel/nodejs/Portfile
===================================================================
--- trunk/dports/devel/nodejs/Portfile 2015-02-07 20:50:28 UTC (rev 132689)
+++ trunk/dports/devel/nodejs/Portfile 2015-02-07 22:01:07 UTC (rev 132690)
@@ -5,7 +5,7 @@
PortGroup compiler_blacklist_versions 1.0
name nodejs
-version 0.10.36
+version 0.12.0
categories devel net
platforms darwin
@@ -24,11 +24,15 @@
homepage http://nodejs.org/
master_sites ${homepage}dist/v${version}
-checksums rmd160 351fb9282355094fd6ec0afe5200d724e2352549 \
- sha256 b9d7d1d0294bce46686b13a05da6fc5b1e7743b597544aa888e8e64a9f178c81
+checksums rmd160 8677f700d52823d909d766f6cedde117b9a44c87 \
+ sha256 9700e23af4e9b3643af48cef5f2ad20a1331ff531a12154eef2bfb0bb1682e32
distname node-v${version}
+depends_build port:pkgconfig
+
+depends_lib port:icu
+
proc rec_glob {basedir pattern} {
set files [glob -directory $basedir -nocomplain -type f $pattern]
foreach dir [glob -directory $basedir -nocomplain -type d *] {
@@ -42,27 +46,21 @@
post-patch {
foreach f [concat ${worksrcpath}/configure \
${worksrcpath}/tools/gyp/gyp \
- ${worksrcpath}/node.gyp \
- ${worksrcpath}/deps/npm/node_modules/node-gyp/gyp/gyp \
+ ${worksrcpath}/deps/cares/gyp_cares \
+ ${worksrcpath}/deps/v8/build/gyp_v8 \
+ ${worksrcpath}/deps/v8/tools/mingw-generate-makefiles.sh \
[rec_glob ${worksrcpath} *.py]] {
reinplace "s|/usr/bin/env python|${configure.python}|" ${f}
}
- foreach f [concat ${worksrcpath}/deps/npm/scripts/relocate.sh \
- ${worksrcpath}/deps/npm/node_modules/semver/bin/semver \
- ${worksrcpath}/deps/npm/node_modules/which/bin/which \
- ${worksrcpath}/deps/npm/test/packages/npm-test-array-bin/bin/array-bin \
- ${worksrcpath}/deps/npm/test/packages/npm-test-dir-bin/bin/dir-bin \
- ${worksrcpath}/tools/doc/node_modules/marked/bin/marked \
- [rec_glob ${worksrcpath} *.js]] {
- reinplace "s|/usr/bin/env node|${prefix}/bin/node|" ${f}
- }
foreach gypfile [rec_glob ${worksrcpath} *.gyp] {
reinplace "s|'python'|'${configure.python}'|" ${gypfile}
}
+ reinplace "s|/usr/bin/env node|${prefix}/bin/node|" ${worksrcpath}/tools/doc/node_modules/marked/bin/marked
}
configure.args --without-ssl
configure.args-append --without-npm
+configure.args-append --with-intl=system-icu
# TODO: Remove after 2015-12-27.
variant python25 requires python27 description {Legacy variant} {}
@@ -135,7 +133,6 @@
set libndir ${libdir}/node
set libddir ${libdir}/dtrace
set incdir ${destroot}${prefix}/include/node
- set incpdir ${destroot}${prefix}/include/node/uv-private
set docdir ${destroot}${prefix}/share/doc/${name}
xinstall -d ${bindir}
@@ -143,7 +140,6 @@
xinstall -d ${libndir}
xinstall -d ${libddir}
xinstall -d ${incdir}
- xinstall -d ${incpdir}
xinstall -d ${docdir}
# install binaries
@@ -153,29 +149,67 @@
# 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/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_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 \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150207/c27cae43/attachment-0001.html>
More information about the macports-changes
mailing list