diff options
author | sunpoet <sunpoet@FreeBSD.org> | 2015-09-24 04:14:17 +0800 |
---|---|---|
committer | sunpoet <sunpoet@FreeBSD.org> | 2015-09-24 04:14:17 +0800 |
commit | 296faf6b981ebc86d1019f8dea9975e4e41bb323 (patch) | |
tree | 38d9db6086301f8b79c2685fc95aadcc41cccfd5 /www | |
parent | 8d5db311d003a9e5181b4f435b3785b5cdd9ff82 (diff) | |
download | freebsd-ports-gnome-296faf6b981ebc86d1019f8dea9975e4e41bb323.tar.gz freebsd-ports-gnome-296faf6b981ebc86d1019f8dea9975e4e41bb323.tar.zst freebsd-ports-gnome-296faf6b981ebc86d1019f8dea9975e4e41bb323.zip |
- Add node012 0.12.7 (copied from node)
PR: 203203
Submitted by: Daniel Lin <linpct@gmail.com> (maintainer)
Diffstat (limited to 'www')
-rw-r--r-- | www/Makefile | 1 | ||||
-rw-r--r-- | www/node012/Makefile | 55 | ||||
-rw-r--r-- | www/node012/distinfo | 2 | ||||
-rw-r--r-- | www/node012/files/patch-deps_v8_src_base_platform_platform-freebsd.cc | 69 | ||||
-rw-r--r-- | www/node012/files/patch-deps_v8_src_base_platform_platform-posix.cc | 11 | ||||
-rw-r--r-- | www/node012/pkg-descr | 3 | ||||
-rw-r--r-- | www/node012/pkg-message | 1 | ||||
-rw-r--r-- | www/node012/pkg-plist | 113 |
8 files changed, 255 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile index b8aed4a8bd4c..b19b79620771 100644 --- a/www/Makefile +++ b/www/Makefile @@ -562,6 +562,7 @@ SUBDIR += node SUBDIR += node-devel SUBDIR += node010 + SUBDIR += node012 SUBDIR += nostromo SUBDIR += npapi-vlc SUBDIR += npapi-xine diff --git a/www/node012/Makefile b/www/node012/Makefile new file mode 100644 index 000000000000..c01940ac0f46 --- /dev/null +++ b/www/node012/Makefile @@ -0,0 +1,55 @@ +# Created by: Jin-Sih Lin <linpct@gmail.com> +# $FreeBSD$ + +PORTNAME= node +PORTVERSION= 0.12.7 +DISTVERSIONPREFIX= v +CATEGORIES= www +MASTER_SITES= http://nodejs.org/dist/v${PORTVERSION}/ + +MAINTAINER= linpct@gmail.com +COMMENT= V8 JavaScript for client and server + +LICENSE= MIT + +USES= compiler execinfo gmake python:2 +HAS_CONFIGURE= yes +USE_LDCONFIG= yes + +CONFLICTS= node-0.[02-9][0-9]* node-devel-0.[0-9]* node010-[0-9]* iojs-[0-9]* + +ONLY_FOR_ARCHS= i386 amd64 +CONFIGURE_ARGS= --prefix=${PREFIX_RELDEST} --without-npm --shared-zlib +PREFIX_RELDEST= ${PREFIX:S,^${DESTDIR},,} +REINPLACE_ARGS= -i '' +MAKE_ENV+= CC.host=${CC} CXX.host=${CXX} LINK.host=${CXX} LINK.target=${CXX} + +.include <bsd.port.pre.mk> +.if ${COMPILER_TYPE} == clang +MAKE_ENV+= LINK=clang++ +CFLAGS+= -Wno-unused-private-field +.if ${COMPILER_VERSION} >= 33 +CFLAGS+= -Wno-nested-anon-types -Wno-unused-function +.if ${COMPILER_VERSION} >= 34 +CFLAGS+= -Wno-unused-const-variable +.endif +.endif +.else +MAKE_ARGS+= strictaliasing=off +USE_GCC= any +.endif + +post-patch: + @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \ + ${WRKSRC}/deps/v8/tools/gyp/v8.gyp + @${REINPLACE_CMD} -e 's|/usr/bin/env python|${PYTHON_CMD}|' \ + ${WRKSRC}/configure + @${REINPLACE_CMD} -e "s|'python',|'${PYTHON_CMD}',|" \ + ${WRKSRC}/deps/v8/build/shim_headers.gypi \ + ${WRKSRC}/deps/v8/tools/gyp/v8.gyp \ + ${WRKSRC}/deps/v8/src/d8.gyp + +post-install: + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/node + +.include <bsd.port.post.mk> diff --git a/www/node012/distinfo b/www/node012/distinfo new file mode 100644 index 000000000000..07275e594ec0 --- /dev/null +++ b/www/node012/distinfo @@ -0,0 +1,2 @@ +SHA256 (node-v0.12.7.tar.gz) = b23d64df051c9c969b0c583f802d5d71de342e53067127a5061415be7e12f39d +SIZE (node-v0.12.7.tar.gz) = 20063992 diff --git a/www/node012/files/patch-deps_v8_src_base_platform_platform-freebsd.cc b/www/node012/files/patch-deps_v8_src_base_platform_platform-freebsd.cc new file mode 100644 index 000000000000..632f21087633 --- /dev/null +++ b/www/node012/files/patch-deps_v8_src_base_platform_platform-freebsd.cc @@ -0,0 +1,69 @@ +--- deps/v8/src/base/platform/platform-freebsd.cc.orig 2015-03-31 22:13:01 UTC ++++ deps/v8/src/base/platform/platform-freebsd.cc +@@ -131,23 +131,23 @@ std::vector<OS::SharedLibraryAddress> OS + addr_buffer[0] = '0'; + addr_buffer[1] = 'x'; + addr_buffer[10] = 0; +- int result = read(fd, addr_buffer + 2, 8); +- if (result < 8) break; ++ ssize_t bytes_read = read(fd, addr_buffer + 2, 8); ++ if (bytes_read < 8) break; + unsigned start = StringToLong(addr_buffer); +- result = read(fd, addr_buffer + 2, 1); +- if (result < 1) break; ++ bytes_read = read(fd, addr_buffer + 2, 1); ++ if (bytes_read < 1) break; + if (addr_buffer[2] != '-') break; +- result = read(fd, addr_buffer + 2, 8); +- if (result < 8) break; ++ bytes_read = read(fd, addr_buffer + 2, 8); ++ if (bytes_read < 8) break; + unsigned end = StringToLong(addr_buffer); + char buffer[MAP_LENGTH]; +- int bytes_read = -1; ++ bytes_read = -1; + do { + bytes_read++; + if (bytes_read >= MAP_LENGTH - 1) + break; +- result = read(fd, buffer + bytes_read, 1); +- if (result < 1) break; ++ bytes_read = read(fd, buffer + bytes_read, 1); ++ if (bytes_read < 1) break; + } while (buffer[bytes_read] != '\n'); + buffer[bytes_read] = 0; + // Ignore mappings that are not executable. +@@ -182,13 +182,13 @@ VirtualMemory::VirtualMemory(size_t size + + VirtualMemory::VirtualMemory(size_t size, size_t alignment) + : address_(NULL), size_(0) { +- DCHECK(IsAligned(alignment, static_cast<intptr_t>(OS::AllocateAlignment()))); ++ DCHECK((alignment % OS::AllocateAlignment()) == 0); + size_t request_size = RoundUp(size + alignment, + static_cast<intptr_t>(OS::AllocateAlignment())); + void* reservation = mmap(OS::GetRandomMmapAddr(), + request_size, + PROT_NONE, +- MAP_PRIVATE | MAP_ANON | MAP_NORESERVE, ++ MAP_PRIVATE | MAP_ANON, + kMmapFd, + kMmapFdOffset); + if (reservation == MAP_FAILED) return; +@@ -260,7 +260,7 @@ void* VirtualMemory::ReserveRegion(size_ + void* result = mmap(OS::GetRandomMmapAddr(), + size, + PROT_NONE, +- MAP_PRIVATE | MAP_ANON | MAP_NORESERVE, ++ MAP_PRIVATE | MAP_ANON, + kMmapFd, + kMmapFdOffset); + +@@ -288,7 +288,7 @@ bool VirtualMemory::UncommitRegion(void* + return mmap(base, + size, + PROT_NONE, +- MAP_PRIVATE | MAP_ANON | MAP_NORESERVE | MAP_FIXED, ++ MAP_PRIVATE | MAP_ANON | MAP_FIXED, + kMmapFd, + kMmapFdOffset) != MAP_FAILED; + } diff --git a/www/node012/files/patch-deps_v8_src_base_platform_platform-posix.cc b/www/node012/files/patch-deps_v8_src_base_platform_platform-posix.cc new file mode 100644 index 000000000000..63d23dd78ab5 --- /dev/null +++ b/www/node012/files/patch-deps_v8_src_base_platform_platform-posix.cc @@ -0,0 +1,11 @@ +--- deps/v8/src/base/platform/platform-posix.cc.orig 2015-03-31 22:13:01 UTC ++++ deps/v8/src/base/platform/platform-posix.cc +@@ -328,7 +328,7 @@ int OS::GetCurrentThreadId() { + #elif V8_OS_ANDROID + return static_cast<int>(gettid()); + #else +- return static_cast<int>(pthread_self()); ++ return static_cast<int>(reinterpret_cast<intptr_t>(pthread_self())); + #endif + } + diff --git a/www/node012/pkg-descr b/www/node012/pkg-descr new file mode 100644 index 000000000000..079aa9b45c25 --- /dev/null +++ b/www/node012/pkg-descr @@ -0,0 +1,3 @@ +node - evented I/O for V8 javascript + +WWW: http://nodejs.org/ diff --git a/www/node012/pkg-message b/www/node012/pkg-message new file mode 100644 index 000000000000..87d7ce8d688e --- /dev/null +++ b/www/node012/pkg-message @@ -0,0 +1 @@ +Note: If you need npm (Node Package Manager), please install www/npm. diff --git a/www/node012/pkg-plist b/www/node012/pkg-plist new file mode 100644 index 000000000000..34aacf754b21 --- /dev/null +++ b/www/node012/pkg-plist @@ -0,0 +1,113 @@ +bin/node +include/node/android-ifaddrs.h +include/node/ares.h +include/node/ares_version.h +include/node/common.gypi +include/node/config.gypi +include/node/libplatform/libplatform.h +include/node/nameser.h +include/node/node.h +include/node/node_buffer.h +include/node/node_internals.h +include/node/node_object_wrap.h +include/node/node_version.h +include/node/openssl/aes.h +include/node/openssl/asn1.h +include/node/openssl/asn1_mac.h +include/node/openssl/asn1t.h +include/node/openssl/bio.h +include/node/openssl/blowfish.h +include/node/openssl/bn.h +include/node/openssl/buffer.h +include/node/openssl/camellia.h +include/node/openssl/cast.h +include/node/openssl/cmac.h +include/node/openssl/cms.h +include/node/openssl/comp.h +include/node/openssl/conf.h +include/node/openssl/conf_api.h +include/node/openssl/crypto.h +include/node/openssl/des.h +include/node/openssl/des_old.h +include/node/openssl/dh.h +include/node/openssl/dsa.h +include/node/openssl/dso.h +include/node/openssl/dtls1.h +include/node/openssl/e_os2.h +include/node/openssl/ebcdic.h +include/node/openssl/ec.h +include/node/openssl/ecdh.h +include/node/openssl/ecdsa.h +include/node/openssl/engine.h +include/node/openssl/err.h +include/node/openssl/evp.h +include/node/openssl/hmac.h +include/node/openssl/idea.h +include/node/openssl/krb5_asn.h +include/node/openssl/kssl.h +include/node/openssl/lhash.h +include/node/openssl/md4.h +include/node/openssl/md5.h +include/node/openssl/mdc2.h +include/node/openssl/modes.h +include/node/openssl/obj_mac.h +include/node/openssl/objects.h +include/node/openssl/ocsp.h +include/node/openssl/opensslconf.h +include/node/openssl/opensslv.h +include/node/openssl/ossl_typ.h +include/node/openssl/pem.h +include/node/openssl/pem2.h +include/node/openssl/pkcs12.h +include/node/openssl/pkcs7.h +include/node/openssl/pqueue.h +include/node/openssl/rand.h +include/node/openssl/rc2.h +include/node/openssl/rc4.h +include/node/openssl/ripemd.h +include/node/openssl/rsa.h +include/node/openssl/safestack.h +include/node/openssl/seed.h +include/node/openssl/sha.h +include/node/openssl/srp.h +include/node/openssl/srtp.h +include/node/openssl/ssl.h +include/node/openssl/ssl2.h +include/node/openssl/ssl23.h +include/node/openssl/ssl3.h +include/node/openssl/stack.h +include/node/openssl/symhacks.h +include/node/openssl/tls1.h +include/node/openssl/ts.h +include/node/openssl/txt_db.h +include/node/openssl/ui.h +include/node/openssl/ui_compat.h +include/node/openssl/whrlpool.h +include/node/openssl/x509.h +include/node/openssl/x509_vfy.h +include/node/openssl/x509v3.h +include/node/pthread-fixes.h +include/node/smalloc.h +include/node/stdint-msvc2008.h +include/node/tree.h +include/node/uv-aix.h +include/node/uv-bsd.h +include/node/uv-darwin.h +include/node/uv-errno.h +include/node/uv-linux.h +include/node/uv-sunos.h +include/node/uv-threadpool.h +include/node/uv-unix.h +include/node/uv-version.h +include/node/uv-win.h +include/node/uv.h +include/node/v8-debug.h +include/node/v8-platform.h +include/node/v8-profiler.h +include/node/v8-testing.h +include/node/v8-util.h +include/node/v8.h +include/node/v8config.h +include/node/v8stdint.h +@(,,444) man/man1/node.1.gz +share/systemtap/tapset/node.stp |