Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Dec 2013 04:28:43 +0000 (UTC)
From:      "Vanilla I. Shu" <vanilla@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r337829 - in head/lang: v8 v8-devel v8-devel/files
Message-ID:  <201312280428.rBS4Shuu091678@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: vanilla
Date: Sat Dec 28 04:28:43 2013
New Revision: 337829
URL: http://svnweb.freebsd.org/changeset/ports/337829

Log:
  repo copy lang/v8 to lang/v8-devel.

Added:
  head/lang/v8-devel/
     - copied from r337828, head/lang/v8/
Modified:
  head/lang/v8-devel/Makefile
  head/lang/v8-devel/distinfo
  head/lang/v8-devel/files/patch-Makefile
  head/lang/v8-devel/pkg-plist
  head/lang/v8/Makefile

Modified: head/lang/v8-devel/Makefile
==============================================================================
--- head/lang/v8/Makefile	Sat Dec 28 03:34:07 2013	(r337828)
+++ head/lang/v8-devel/Makefile	Sat Dec 28 04:28:43 2013	(r337829)
@@ -2,29 +2,39 @@
 # $FreeBSD$
 
 PORTNAME=	v8
-PORTVERSION=	3.18.5
+PORTVERSION=	3.24.7
 CATEGORIES=	lang
 MASTER_SITES=	LOCAL/vanilla
+PKGNAMESUFFIX=	-devel
 
 MAINTAINER=	vanilla@FreeBSD.org
 COMMENT=	Google\'s open source JavaScript engine
 
 BUILD_DEPENDS=	python:${PORTSDIR}/lang/python
-LIB_DEPENDS=	execinfo:${PORTSDIR}/devel/libexecinfo
+LIB_DEPENDS=	libexecinfo.so:${PORTSDIR}/devel/libexecinfo \
+		libicui18n.so:${PORTSDIR}/devel/icu
 
-USES=		gmake
+CONFLICTS=	v8-3.19.*
+
+USES=		gmake shebangfix
+SHEBANG_LANG=	sh
+SHEBANG_FILES=	${WRKSRC}/build/gyp/gyp
 USE_XZ=		yes
 USE_PYTHON=	2.6-2.7
 USE_LDCONFIG=	yes
 ALL_TARGET=	native
-MAKE_ARGS=	library=shared
+MAKE_ARGS=	library=shared use_system_icu=on
+MAKE_ENV+=	CC.host=${CC} CXX.host=${CXX} LINK.host=${CXX} LINK.target=${CXX}
+sh_OLD_CMD=	/bin/bash
+sh_CMD=		${SH}
 
 .include <bsd.port.pre.mk>
 
 .if ${CC:T:Mclang} == "clang" || ${CXX:T:Mclang++} == "clang++" || ${OSVERSION} >= 1000024
-_CLANG!=	clang --version | ${HEAD} -1 | ${SED} -e 's/.*clang version \([0-9]\)\.\([0-9]\).*/\1\2/'
-MAKE_ENV+=	LINK=clang++
-CFLAGS+=	-Wno-unused-private-field
+_CLANG!=	${CC} --version | ${HEAD} -1 | ${SED} -e 's/.*clang version \([0-9]\)\.\([0-9]\).*/\1\2/'
+MAKE_ENV+=	LINK=clang++ AR=/usr/bin/ar
+MAKE_ARGS+=	clang=on
+CFLAGS+=	-Wno-unused-private-field -Wno-unused-variable
 .if ${_CLANG} >= 33
 CFLAGS+=	-Wno-nested-anon-types -Wno-unused-function
 .endif
@@ -35,20 +45,16 @@ USE_GCC=	any
 
 ONLY_FOR_ARCHS=	i386 amd64
 
-post-patch:
-	@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \
-		${WRKSRC}/build/common.gypi ${WRKSRC}/tools/gyp/v8.gyp
-	@${REINPLACE_CMD} -e '1 s|${SETENV} python|&2|' ${WRKSRC}/build/gyp/gyp
-
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/out/native/d8 ${STAGEDIR}/${PREFIX}/bin/d8
-	${INSTALL_LIB} -m 755 ${WRKSRC}/out/native/lib.target/libv8.so ${STAGEDIR}/${PREFIX}/lib/libv8.so.1
-	${LN} -sf ${PREFIX}/lib/libv8.so.1 ${STAGEDIR}/${PREFIX}/lib/libv8.so
-	${INSTALL_DATA} ${WRKSRC}/include/v8.h ${STAGEDIR}/${PREFIX}/include
-	${INSTALL_DATA} ${WRKSRC}/include/v8-debug.h ${STAGEDIR}/${PREFIX}/include
-	${INSTALL_DATA} ${WRKSRC}/include/v8-preparser.h ${STAGEDIR}/${PREFIX}/include
-	${INSTALL_DATA} ${WRKSRC}/include/v8-profiler.h ${STAGEDIR}/${PREFIX}/include
-	${INSTALL_DATA} ${WRKSRC}/include/v8-testing.h ${STAGEDIR}/${PREFIX}/include
-	${INSTALL_DATA} ${WRKSRC}/include/v8stdint.h ${STAGEDIR}/${PREFIX}/include
+	${INSTALL_PROGRAM} ${WRKSRC}/out/native/d8 ${STAGEDIR}${PREFIX}/bin/d8
+	${INSTALL_LIB} -m 755 ${WRKSRC}/out/native/lib.target/libv8.so ${STAGEDIR}${PREFIX}/lib/libv8.so.1
+	${LN} -sf ${PREFIX}/lib/libv8.so.1 ${STAGEDIR}${PREFIX}/lib/libv8.so
+	${INSTALL_DATA} ${WRKSRC}/include/v8.h ${STAGEDIR}${PREFIX}/include
+	${INSTALL_DATA} ${WRKSRC}/include/v8-debug.h ${STAGEDIR}${PREFIX}/include
+	${INSTALL_DATA} ${WRKSRC}/include/v8-platform.h ${STAGEDIR}${PREFIX}/include
+	${INSTALL_DATA} ${WRKSRC}/include/v8-profiler.h ${STAGEDIR}${PREFIX}/include
+	${INSTALL_DATA} ${WRKSRC}/include/v8-testing.h ${STAGEDIR}${PREFIX}/include
+	${INSTALL_DATA} ${WRKSRC}/include/v8config.h ${STAGEDIR}${PREFIX}/include
+	${INSTALL_DATA} ${WRKSRC}/include/v8stdint.h ${STAGEDIR}${PREFIX}/include
 
 .include <bsd.port.post.mk>

Modified: head/lang/v8-devel/distinfo
==============================================================================
--- head/lang/v8/distinfo	Sat Dec 28 03:34:07 2013	(r337828)
+++ head/lang/v8-devel/distinfo	Sat Dec 28 04:28:43 2013	(r337829)
@@ -1,2 +1,2 @@
-SHA256 (v8-3.18.5.tar.xz) = badfa55867887e4fef68161dc877aac5e9d19c6dddb7e96b8d6f7084de711b71
-SIZE (v8-3.18.5.tar.xz) = 8727400
+SHA256 (v8-3.24.7.tar.xz) = 4007211042d1e34d88af30025aa9536d2556da0f3bb744e5290e33698939086b
+SIZE (v8-3.24.7.tar.xz) = 35186840

Modified: head/lang/v8-devel/files/patch-Makefile
==============================================================================
--- head/lang/v8/files/patch-Makefile	Sat Dec 28 03:34:07 2013	(r337828)
+++ head/lang/v8-devel/files/patch-Makefile	Sat Dec 28 04:28:43 2013	(r337829)
@@ -1,11 +1,26 @@
---- Makefile.orig	2013-02-28 18:57:04.000000000 +0800
-+++ Makefile	2013-02-28 18:57:12.000000000 +0800
-@@ -153,7 +153,7 @@ ANDROID_ARCHES = android_ia32 android_ar
+--- Makefile.orig	2013-10-24 23:26:16.000000000 +0800
++++ Makefile	2013-10-25 10:19:26.000000000 +0800
+@@ -52,6 +52,14 @@ endif
+ ifdef console
+   GYPFLAGS += -Dconsole=$(console)
+ endif
++# clang=on
++ifeq ($(clang), on)
++  GYPFLAGS += -Dclang=1
++endif
++# use_system_icu=on
++ifeq ($(use_system_icu), on)
++  GYPFLAGS += -Duse_system_icu=1
++endif
+ # disassembler=on
+ ifeq ($(disassembler), on)
+   GYPFLAGS += -Dv8_enable_disassembler=1
+@@ -223,7 +231,7 @@ NACL_ARCHES = nacl_ia32 nacl_x64
  # List of files that trigger Makefile regeneration:
- GYPFILES = build/all.gyp build/common.gypi build/standalone.gypi \
-            preparser/preparser.gyp samples/samples.gyp src/d8.gyp \
+ GYPFILES = build/all.gyp build/features.gypi build/standalone.gypi \
+            build/toolchain.gypi samples/samples.gyp src/d8.gyp \
 -           test/cctest/cctest.gyp tools/gyp/v8.gyp
 +           tools/gyp/v8.gyp
  
- # Generates all combinations of ARCHES and MODES, e.g. "ia32.release".
- BUILDS = $(foreach mode,$(MODES),$(addsuffix .$(mode),$(ARCHES)))
+ # If vtunejit=on, the v8vtune.gyp will be appended.
+ ifeq ($(vtunejit), on)

Modified: head/lang/v8-devel/pkg-plist
==============================================================================
--- head/lang/v8/pkg-plist	Sat Dec 28 03:34:07 2013	(r337828)
+++ head/lang/v8-devel/pkg-plist	Sat Dec 28 04:28:43 2013	(r337829)
@@ -1,9 +1,10 @@
 bin/d8
 include/v8-debug.h
-include/v8-preparser.h
+include/v8-platform.h
 include/v8-profiler.h
 include/v8-testing.h
 include/v8.h
+include/v8config.h
 include/v8stdint.h
 lib/libv8.so
 lib/libv8.so.1

Modified: head/lang/v8/Makefile
==============================================================================
--- head/lang/v8/Makefile	Sat Dec 28 03:34:07 2013	(r337828)
+++ head/lang/v8/Makefile	Sat Dec 28 04:28:43 2013	(r337829)
@@ -12,6 +12,8 @@ COMMENT=	Google\'s open source JavaScrip
 BUILD_DEPENDS=	python:${PORTSDIR}/lang/python
 LIB_DEPENDS=	execinfo:${PORTSDIR}/devel/libexecinfo
 
+CONFLICTS=      v8-devel-*
+
 USES=		gmake
 USE_XZ=		yes
 USE_PYTHON=	2.6-2.7



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201312280428.rBS4Shuu091678>