From owner-svn-ports-head@FreeBSD.ORG Fri Feb 6 05:52:24 2015 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 86A014D8; Fri, 6 Feb 2015 05:52:24 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 71621A06; Fri, 6 Feb 2015 05:52:24 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t165qNES001698; Fri, 6 Feb 2015 05:52:23 GMT (envelope-from vanilla@FreeBSD.org) Received: (from vanilla@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t165qMvm001689; Fri, 6 Feb 2015 05:52:22 GMT (envelope-from vanilla@FreeBSD.org) Message-Id: <201502060552.t165qMvm001689@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: vanilla set sender to vanilla@FreeBSD.org using -f From: "Vanilla I. Shu" Date: Fri, 6 Feb 2015 05:52:22 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r378505 - in head/www: . iojs iojs/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Feb 2015 05:52:24 -0000 Author: vanilla Date: Fri Feb 6 05:52:21 2015 New Revision: 378505 URL: https://svnweb.freebsd.org/changeset/ports/378505 QAT: https://qat.redports.org/buildarchive/r378505/ Log: 1: Add iojs 1.0.4, v8 JavaScript for client and server. 2: add a patch to remove MAP_NORESERVE. 3: switch to USE_GITHUB PR: 197202 Submitted by: Jin-Sih Lin [1] Added: head/www/iojs/ head/www/iojs/Makefile (contents, props changed) head/www/iojs/distinfo (contents, props changed) head/www/iojs/files/ head/www/iojs/files/patch-deps_v8_src_base_platform_platform-freebsd.cc (contents, props changed) head/www/iojs/pkg-descr (contents, props changed) head/www/iojs/pkg-plist (contents, props changed) Modified: head/www/Makefile Modified: head/www/Makefile ============================================================================== --- head/www/Makefile Fri Feb 6 02:47:14 2015 (r378504) +++ head/www/Makefile Fri Feb 6 05:52:21 2015 (r378505) @@ -326,6 +326,7 @@ SUBDIR += imgsizer SUBDIR += impresscms SUBDIR += interchange + SUBDIR += iojs SUBDIR += ismail SUBDIR += iwebcal SUBDIR += jawstats Added: head/www/iojs/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/iojs/Makefile Fri Feb 6 05:52:21 2015 (r378505) @@ -0,0 +1,58 @@ +# Created by: Jin-Sih Lin +# $FreeBSD$ + +PORTNAME= iojs +PORTVERSION= 1.0.4 +CATEGORIES= www + +MAINTAINER= linpct@gmail.com +COMMENT= V8 JavaScript for client and server + +USES= execinfo gmake python:2 +USE_GITHUB= yes +GH_ACCOUNT= iojs +GH_PROJECT= io.js +GH_TAGNAME= v${PORTVERSION} +GH_COMMIT= d1fc9c6 +WRKSRC= ${WRKDIR}/${PORTNAME}-${GH_PROJECT}-96cd753 +HAS_CONFIGURE= yes +USE_LDCONFIG= yes + +CONFLICTS= node-0.[02-9][0-9]* node-devel-0.[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 + +.if ${OSVERSION} >= 900033 && exists(/usr/bin/clang) +CC= clang +CXX= clang++ +GYP_DEFINES+= clang=1 +.else +USE_GCC?= yes +GYP_DEFINES+= gcc_version=${CXX:S/g++//} +.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: + ${MKDIR} ${STAGEDIR}${PREFIX}/lib/node_modules/ + ${TOUCH} ${STAGEDIR}${PREFIX}/lib/node_modules/.keepme + ${CHMOD} ${MANMODE} ${STAGEDIR}${PREFIX}/man/man1/iojs.1 + @${ECHO_MSG} + @${ECHO_MSG} "Note: If you need npm (Node Package Manager), please install www/npm." + @${ECHO_MSG} + +.include Added: head/www/iojs/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/iojs/distinfo Fri Feb 6 05:52:21 2015 (r378505) @@ -0,0 +1,2 @@ +SHA256 (iojs-1.0.4.tar.gz) = 5975aab89e1ffa125143c345e2c20949d0fc50f3117a1c34afc57cf111cc539a +SIZE (iojs-1.0.4.tar.gz) = 29532735 Added: head/www/iojs/files/patch-deps_v8_src_base_platform_platform-freebsd.cc ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/iojs/files/patch-deps_v8_src_base_platform_platform-freebsd.cc Fri Feb 6 05:52:21 2015 (r378505) @@ -0,0 +1,29 @@ +--- deps/v8/src/base/platform/platform-freebsd.cc.orig 2015-02-06 03:18:41 UTC ++++ deps/v8/src/base/platform/platform-freebsd.cc +@@ -188,7 +188,7 @@ VirtualMemory::VirtualMemory(size_t size + 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; + } Added: head/www/iojs/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/iojs/pkg-descr Fri Feb 6 05:52:21 2015 (r378505) @@ -0,0 +1,3 @@ +iojs - JavaScript I/O + +WWW: https://iojs.org/ Added: head/www/iojs/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/iojs/pkg-plist Fri Feb 6 05:52:21 2015 (r378505) @@ -0,0 +1,40 @@ +bin/iojs +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/opensslconf.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 +lib/node_modules/.keepme +man/man1/iojs.1.gz +share/systemtap/tapset/node.stp