ports/152175: New port: lang/javascript-v8 Google's open source JavaScript engine

Artyom Olshevskiy siasiamail at gmail.com
Fri Nov 12 18:50:11 UTC 2010


>Number:         152175
>Category:       ports
>Synopsis:       New port: lang/javascript-v8 Google's open source JavaScript engine
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Nov 12 18:50:10 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Artyom Olshevskiy
>Release:        FreeBSD 8.1-RELEASE i386
>Organization:
>Environment:
System: FreeBSD epbyminw2121.minsk.epam.com 8.1-RELEASE FreeBSD 8.1-RELEASE #13: Thu Aug 19 09:50:42 EEST 2010 root at epbyminw2121.minsk.epam.com:/usr/obj/usr/src/sys/CUSTOM i386
>Description:
Google's open source JavaScript engine
>How-To-Repeat:

>Fix:
Shar file attached

Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	javascript-v8
#	javascript-v8/Makefile
#	javascript-v8/distinfo
#	javascript-v8/pkg-plist
#	javascript-v8/pkg-descr
#	javascript-v8/files
#	javascript-v8/files/patch-freebsd.diff
#
echo c - javascript-v8
mkdir -p javascript-v8 > /dev/null 2>&1
echo x - javascript-v8/Makefile
sed 's/^X//' >javascript-v8/Makefile << '7e7d3bfe2e2bf37e2a53967e14a5c373'
X# New ports collection makefile for:   javascript-v8
X# Date created:        12 November 2010
X# Whom:                siasia
X#
X# $FreeBSD$
X#
X
XPORTNAME=      	javascript-v8
XPORTVERSION=   	101112
XCATEGORIES=    	lang
XMASTER_SITES=  	http://cloud.github.com/downloads/siasia/v8/
X
XMAINTAINER=    	siasiamail at gmail.com
XCOMMENT=       	Google\'s open source JavaScript engine
X
XNO_INSTALL_MANPAGES=yes
X
XUSE_SCONS=	yes
XOPTIONS=	DEBUG "Build in debug mode" Off \
X		SNAPSHOT "Enable snapshots" Off \
X		SHARED "Build shared library" Off
X
X.include <bsd.port.options.mk>
X
XSCONS_ARGS=
X.if defined(WITHOUT_DEBUG)
XSCONS_ARGS+=	mode=release
X.else
XSCONS_ARGS+=	mode=debug
X.endif
X
X.if defined(WITHOUT_SNAPSHOT)
XSCONS_ARGS+=	snapshot=off
X.else
XSCONS_ARGS+=	snapshot=on
X.endif
X
X.if defined(WITH_SHARED)
XUSE_LDCONFIG=	yes
XPLIST_FILES+=	lib/libv8.so.1
X.endif
X
XCONFLICTS=	spidermonkey-[0-9]*
X
XONLY_FOR_ARCHS= i386 amd64
X
X.include <bsd.port.pre.mk>
X
X.if ${ARCH} == i386
XV8ARCH=ia32
X.elif ${ARCH} == amd64
XV8ARCH=x64
X.endif
XPLIST_SUB+= ARCH=${V8ARCH}
X
XINCLUDEDIRS=src src/${V8ARCH} include
X
Xdo-build:
X	@cd ${BUILD_WRKSRC} && \
X	${SETENV} ${SCONS_BUILDENV} ${SCONS_BIN} ${SCONS_ENV} ${_MAKE_JOBS} \
X	${SCONS_ARGS} library=static ${SCONS_TARGET}
X.if defined(WITH_SHARED)
X	@cd ${BUILD_WRKSRC} && \
X	${SETENV} ${SCONS_BUILDENV} ${SCONS_BIN} ${SCONS_ENV} ${_MAKE_JOBS} \
X	${SCONS_ARGS} library=shared ${SCONS_TARGET}
X.endif
X
Xdo-install:
X	${INSTALL_DATA} -m 755 ${WRKSRC}/libv8.a ${PREFIX}/lib
X.if defined(WITH_SHARED)
X	${INSTALL_LIB} -m 755 ${WRKSRC}/libv8.so ${PREFIX}/lib/libv8.so.1
X.endif
X.for INCLUDEDIR in ${INCLUDEDIRS}
X	${MKDIR} ${PREFIX}/include/v8/${INCLUDEDIR}
X	${FIND} ${WRKSRC}/${INCLUDEDIR} -maxdepth 1 -iname '*.h' -exec ${INSTALL_DATA} {} ${PREFIX}/include/v8/${INCLUDEDIR}/ ';'
X.endfor
X
X.include <bsd.port.post.mk>
7e7d3bfe2e2bf37e2a53967e14a5c373
echo x - javascript-v8/distinfo
sed 's/^X//' >javascript-v8/distinfo << '1b47b577382bee649d566a62cbe77371'
XSHA256 (javascript-v8-101112.tar.gz) = 9f673343ac8131f98662dcb15cad65d7f3fcb9a85f27ad07f4edf1b905a27891
XSIZE (javascript-v8-101112.tar.gz) = 10016298
1b47b577382bee649d566a62cbe77371
echo x - javascript-v8/pkg-plist
sed 's/^X//' >javascript-v8/pkg-plist << '9e2f95c293d9a8c39c5b43a2a1db8ab2'
Xlib/libv8.a
Xinclude/v8/src/%%ARCH%%/assembler-%%ARCH%%-inl.h
Xinclude/v8/src/%%ARCH%%/assembler-%%ARCH%%.h
Xinclude/v8/src/%%ARCH%%/code-stubs-%%ARCH%%.h
Xinclude/v8/src/%%ARCH%%/codegen-%%ARCH%%-inl.h
Xinclude/v8/src/%%ARCH%%/codegen-%%ARCH%%.h
Xinclude/v8/src/%%ARCH%%/frames-%%ARCH%%.h
Xinclude/v8/src/%%ARCH%%/macro-assembler-%%ARCH%%.h
Xinclude/v8/src/%%ARCH%%/regexp-macro-assembler-%%ARCH%%.h
Xinclude/v8/src/%%ARCH%%/register-allocator-%%ARCH%%-inl.h
Xinclude/v8/src/%%ARCH%%/register-allocator-%%ARCH%%.h
Xinclude/v8/src/%%ARCH%%/simulator-%%ARCH%%.h
Xinclude/v8/src/%%ARCH%%/virtual-frame-%%ARCH%%.h
X at dirrm include/v8/src/%%ARCH%%
Xinclude/v8/src/accessors.h
Xinclude/v8/src/allocation.h
Xinclude/v8/src/api.h
Xinclude/v8/src/apiutils.h
Xinclude/v8/src/arguments.h
Xinclude/v8/src/assembler.h
Xinclude/v8/src/ast-inl.h
Xinclude/v8/src/ast.h
Xinclude/v8/src/bignum.h
Xinclude/v8/src/bootstrapper.h
Xinclude/v8/src/builtins.h
Xinclude/v8/src/cached-powers.h
Xinclude/v8/src/bytecodes-irregexp.h
Xinclude/v8/src/char-predicates-inl.h
Xinclude/v8/src/char-predicates.h
Xinclude/v8/src/checks.h
Xinclude/v8/src/circular-queue-inl.h
Xinclude/v8/src/circular-queue.h
Xinclude/v8/src/code-stubs.h
Xinclude/v8/src/code.h
Xinclude/v8/src/codegen-inl.h
Xinclude/v8/src/codegen.h
Xinclude/v8/src/compilation-cache.h
Xinclude/v8/src/compiler.h
Xinclude/v8/src/cpu.h
Xinclude/v8/src/contexts.h
Xinclude/v8/src/conversions-inl.h
Xinclude/v8/src/conversions.h
Xinclude/v8/src/counters.h
Xinclude/v8/src/cpu-profiler-inl.h
Xinclude/v8/src/cpu-profiler.h
Xinclude/v8/src/d8-debug.h
Xinclude/v8/src/d8.h
Xinclude/v8/src/data-flow.h
Xinclude/v8/src/dateparser-inl.h
Xinclude/v8/src/dateparser.h
Xinclude/v8/src/debug-agent.h
Xinclude/v8/src/debug.h
Xinclude/v8/src/disasm.h
Xinclude/v8/src/disassembler.h
Xinclude/v8/src/diy-fp.h
Xinclude/v8/src/double.h
Xinclude/v8/src/dtoa.h
Xinclude/v8/src/execution.h
Xinclude/v8/src/flags.h
Xinclude/v8/src/factory.h
Xinclude/v8/src/fast-dtoa.h
Xinclude/v8/src/fixed-dtoa.h
Xinclude/v8/src/flag-definitions.h
Xinclude/v8/src/frame-element.h
Xinclude/v8/src/frames-inl.h
Xinclude/v8/src/frames.h
Xinclude/v8/src/full-codegen.h
Xinclude/v8/src/func-name-inferrer.h
Xinclude/v8/src/global-handles.h
Xinclude/v8/src/globals.h
Xinclude/v8/src/handles-inl.h
Xinclude/v8/src/handles.h
Xinclude/v8/src/hashmap.h
Xinclude/v8/src/heap-inl.h
Xinclude/v8/src/heap-profiler.h
Xinclude/v8/src/heap.h
Xinclude/v8/src/ic-inl.h
Xinclude/v8/src/ic.h
Xinclude/v8/src/interpreter-irregexp.h
Xinclude/v8/src/jsregexp.h
Xinclude/v8/src/jump-target-heavy-inl.h
Xinclude/v8/src/jump-target-heavy.h
Xinclude/v8/src/jump-target-inl.h
Xinclude/v8/src/jump-target-light-inl.h
Xinclude/v8/src/jump-target-light.h
Xinclude/v8/src/jump-target.h
Xinclude/v8/src/list-inl.h
Xinclude/v8/src/list.h
Xinclude/v8/src/liveedit.h
Xinclude/v8/src/log-inl.h
Xinclude/v8/src/log-utils.h
Xinclude/v8/src/log.h
Xinclude/v8/src/macro-assembler.h
Xinclude/v8/src/mark-compact.h
Xinclude/v8/src/memory.h
Xinclude/v8/src/messages.h
Xinclude/v8/src/natives.h
Xinclude/v8/src/objects-inl.h
Xinclude/v8/src/objects-visiting.h
Xinclude/v8/src/objects.h
Xinclude/v8/src/oprofile-agent.h
Xinclude/v8/src/parser.h
Xinclude/v8/src/platform.h
Xinclude/v8/src/preparser.h
Xinclude/v8/src/prettyprinter.h
Xinclude/v8/src/profile-generator-inl.h
Xinclude/v8/src/profile-generator.h
Xinclude/v8/src/property.h
Xinclude/v8/src/regexp-macro-assembler-irregexp-inl.h
Xinclude/v8/src/regexp-macro-assembler-irregexp.h
Xinclude/v8/src/regexp-macro-assembler-tracer.h
Xinclude/v8/src/regexp-macro-assembler.h
Xinclude/v8/src/regexp-stack.h
Xinclude/v8/src/register-allocator-inl.h
Xinclude/v8/src/register-allocator.h
Xinclude/v8/src/rewriter.h
Xinclude/v8/src/runtime.h
Xinclude/v8/src/scanner-base.h
Xinclude/v8/src/scanner.h
Xinclude/v8/src/scopeinfo.h
Xinclude/v8/src/scopes.h
Xinclude/v8/src/serialize.h
Xinclude/v8/src/shell.h
Xinclude/v8/src/simulator.h
Xinclude/v8/src/smart-pointer.h
Xinclude/v8/src/snapshot.h
Xinclude/v8/src/spaces-inl.h
Xinclude/v8/src/spaces.h
Xinclude/v8/src/splay-tree-inl.h
Xinclude/v8/src/splay-tree.h
Xinclude/v8/src/string-search.h
Xinclude/v8/src/string-stream.h
Xinclude/v8/src/strtod.h
Xinclude/v8/src/stub-cache.h
Xinclude/v8/src/token.h
Xinclude/v8/src/top.h
Xinclude/v8/src/type-info.h
Xinclude/v8/src/unbound-queue-inl.h
Xinclude/v8/src/unbound-queue.h
Xinclude/v8/src/unicode-inl.h
Xinclude/v8/src/unicode.h
Xinclude/v8/src/utils.h
Xinclude/v8/src/v8-counters.h
Xinclude/v8/src/v8.h
Xinclude/v8/src/v8threads.h
Xinclude/v8/src/v8utils.h
Xinclude/v8/src/variables.h
Xinclude/v8/src/version.h
Xinclude/v8/src/virtual-frame-heavy-inl.h
Xinclude/v8/src/virtual-frame-inl.h
Xinclude/v8/src/virtual-frame-light-inl.h
Xinclude/v8/src/virtual-frame.h
Xinclude/v8/src/vm-state-inl.h
Xinclude/v8/src/vm-state.h
Xinclude/v8/src/zone-inl.h
Xinclude/v8/src/zone.h
X at dirrm include/v8/src
Xinclude/v8/include/v8-debug.h
Xinclude/v8/include/v8-profiler.h
Xinclude/v8/include/v8.h
Xinclude/v8/include/v8stdint.h
X at dirrm include/v8/include
X at dirrm include/v8
9e2f95c293d9a8c39c5b43a2a1db8ab2
echo x - javascript-v8/pkg-descr
sed 's/^X//' >javascript-v8/pkg-descr << 'a37a7bd5678bef647704f2712d82f819'
XGoogle's open source JavaScript engine
X
XWWW: http://code.google.com/p/v8/
a37a7bd5678bef647704f2712d82f819
echo c - javascript-v8/files
mkdir -p javascript-v8/files > /dev/null 2>&1
echo x - javascript-v8/files/patch-freebsd.diff
sed 's/^X//' >javascript-v8/files/patch-freebsd.diff << 'c149b8b7c25f9fe3466999f7fe15c802'
XIndex: src/d8-posix.cc
X===================================================================
X--- src/d8-posix.cc	(revision 4551)
X+++ src/d8-posix.cc	(working copy)
X@@ -374,7 +374,8 @@
X // We're disabling usage of waitid in Mac OS X because it doens't work for us:
X // a parent process hangs on waiting while a child process is already a zombie.
X // See http://code.google.com/p/v8/issues/detail?id=401.
X-#if defined(WNOWAIT) && !defined(ANDROID) && !defined(__APPLE__)
X+#if defined(WNOWAIT) && !defined(ANDROID) && !defined(__APPLE__) && \
X+    !defined(__FreeBSD__)
X #define HAS_WAITID 1
X #endif
X 
XIndex: SConstruct
X===================================================================
X--- SConstruct	(revision 4551)
X+++ SConstruct	(working copy)
X@@ -607,7 +607,7 @@
X       'LIBS': ['pthread'],
X     },
X     'os:freebsd': {
X-      'LIBS': ['pthread'],
X+      'LIBS': ['execinfo', 'pthread'],
X     },
X     'os:solaris': {
X       'LIBS': ['m', 'pthread', 'socket', 'nsl', 'rt'],
c149b8b7c25f9fe3466999f7fe15c802
exit



>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list