Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Oct 2012 23:09:10 +0000 (UTC)
From:      Tom Judge <tj@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r305994 - in head/lang: . spidermonkey185
Message-ID:  <201210162309.q9GN9Aww040636@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tj
Date: Tue Oct 16 23:09:10 2012
New Revision: 305994
URL: http://svn.freebsd.org/changeset/ports/305994

Log:
  Spidermonkey is the JavaScript interpreter from the Mozilla project.
  
  WWW: http://www.mozilla.org/js/spidermonkey/
  
  Feature safe:	yes
  PR:		ports/172710
  PR:		ports/170768
  Submitted by:	Kubilay Kocak <koobs.freebsd@gmail.com>
  Submitted by:	Anton Afanasyev <aasoft@gmail.com>
  Submitted by:	avg
  Reviewed by:	kwm, flo
  Approved by:	eadler (mentor)

Added:
  head/lang/spidermonkey185/
  head/lang/spidermonkey185/Makefile   (contents, props changed)
  head/lang/spidermonkey185/distinfo   (contents, props changed)
  head/lang/spidermonkey185/pkg-descr   (contents, props changed)
  head/lang/spidermonkey185/pkg-plist   (contents, props changed)
Modified:
  head/lang/Makefile

Modified: head/lang/Makefile
==============================================================================
--- head/lang/Makefile	Tue Oct 16 22:55:01 2012	(r305993)
+++ head/lang/Makefile	Tue Oct 16 23:09:10 2012	(r305994)
@@ -327,6 +327,7 @@
     SUBDIR += sml-nj-devel
     SUBDIR += snobol4
     SUBDIR += spidermonkey17
+    SUBDIR += spidermonkey185
     SUBDIR += spl
     SUBDIR += squeak
     SUBDIR += squirrel

Added: head/lang/spidermonkey185/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/lang/spidermonkey185/Makefile	Tue Oct 16 23:09:10 2012	(r305994)
@@ -0,0 +1,163 @@
+# Created by: Kubilay Kocak <koobs.freebsd@gmail.com>
+# $FreeBSD$
+
+PORTNAME=		spidermonkey185
+PORTVERSION=		1.8.5
+CATEGORIES=		lang
+MASTER_SITES=		${MASTER_SITE_MOZILLA}
+MASTER_SITE_SUBDIR=	js
+DISTNAME=		js185-1.0.0
+
+MAINTAINER=		koobs.freebsd@gmail.com
+COMMENT=		Standalone JavaScript (1.8.5) interpreter from Mozilla
+
+BUILD_DEPENDS=		zip:${PORTSDIR}/archivers/zip
+LIB_DEPENDS=		nspr4:${PORTSDIR}/devel/nspr
+
+CONFLICTS=		njs-[0-9]*
+
+GNU_CONFIGURE=		yes
+USE_GMAKE=		yes
+USE_GNOME=		gnomehack
+USE_LDCONFIG=		yes
+USE_PERL5_BUILD=	yes
+USE_PYTHON_BUILD=	2.5-2.7
+MAKE_JOBS_SAFE=		yes
+
+WRKSRC=			${WRKDIR}/js-${PORTVERSION}/js/src
+
+CONFIGURE_ARGS=		--with-pthreads \
+			--with-system-nspr
+
+# This comes from bsd.gecko.mk, fixes linking issues on 9.0 and higher.
+post-configure:
+	${ECHO_CMD} "fenv.h" >> ${WRKSRC}/config/system-headers
+	${ECHO_CMD} "pthread_np.h" >> ${WRKSRC}/config/system-headers
+
+OPTIONS_DEFINE=		DEBUG GCZEAL JEMALLOC METHODJIT OPTIMIZE READLINE \
+			THREADSAFE TRACEJIT UTF8 \
+
+OPTIONS_DEFAULT=	METHODJIT OPTIMIZE READLINE THREADSAFE TRACEJIT
+
+DEBUG_DESC=		Enable Debug build
+GCZEAL_DESC=		Enable Zealous garbage collecting
+JEMALLOC_DESC=		Use jemalloc as memory allocator
+METHODJIT_DESC=		Enable method JIT support
+OPTIMIZE_DESC=		Enable compiler optimizations
+READLINE_DESC=		Link js shell to system readline library
+THREADSAFE_DESC=	Enable multiple thread support
+TRACEJIT_DESC=		Enable tracing JIT support
+UTF8_DESC=		Treat strings as UTF8 instead of ISO-8859-1
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MDEBUG}
+CONFIGURE_ARGS+=	--enable-debug \
+			--enable-debug-symbols
+.else
+CONFIGURE_ARGS+=	--disable-debug
+.endif
+
+.if ${PORT_OPTIONS:MGCZEAL}
+CONFIGURE_ARGS+=	--enable-gczeal
+.else
+CONFIGURE_ARGS+=	--disable-gczeal
+.endif
+
+.if ${PORT_OPTIONS:MJEMALLOC}
+CONFIGURE_ARGS+=	--enable-jemalloc
+.else
+CONFIGURE_ARGS+=	--disable-jemalloc
+.endif
+
+.if ${PORT_OPTIONS:MMETHODJIT}
+CONFIGURE_ARGS+=	--enable-methodjit
+.else
+CONFIGURE_ARGS+=	--disable-methodjit
+.endif
+
+.if ${PORT_OPTIONS:MOPTIMIZE}
+CONFIGURE_ARGS+=	--enable-optimize
+.else
+CONFIGURE_ARGS+=	--disable-optimize
+.endif
+
+.if ${PORT_OPTIONS:MREADLINE}
+CONFIGURE_ARGS+=	--enable-readline
+.else
+CONFIGURE_ARGS+=	--disable-readline
+.endif
+
+.if ${PORT_OPTIONS:MTHREADSAFE}
+CONFIGURE_ARGS+=	--enable-threadsafe
+.else
+CONFIGURE_ARGS+=	--disable-threadsafe
+.endif
+
+.if ${PORT_OPTIONS:MTRACEJIT}
+CONFIGURE_ARGS+=	--enable-tracejit
+.else
+CONFIGURE_ARGS+=	--disable-tracejit
+.endif
+
+.if ${PORT_OPTIONS:MUTF8}
+CFLAGS+=		-DJS_C_STRINGS_ARE_UTF8
+.endif
+
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} == amd64
+CONFIGURE_TARGET=	x86_64-portbld-freebsd${OSREL}
+.endif
+
+.if ${ARCH} == "sparc64" && ${OSVERSION} > 900000
+BROKEN=			Does not build on sparc64-9: fails to link
+.endif
+
+.if ${ARCH} == "amd64"
+PLIST_SUB+=	AMD64=""
+.else
+PLIST_SUB+=	AMD64="@comment "
+.endif
+
+.if ${ARCH} == "i386"
+PLIST_SUB+=	I386=""
+.else
+PLIST_SUB+=	I386="@comment "
+.endif
+
+.if ${ARCH} == "arm"
+PLIST_SUB+=	ARM=""
+.else
+PLIST_SUB+=	ARM="@comment "
+.endif
+
+.if ${ARCH} == "mips"
+PLIST_SUB+=	MIPS=""
+.else
+PLIST_SUB+=	MIPS="@comment "
+.endif
+
+.if ${ARCH} == "powerpc" || ${ARCH} == "powerpc64"
+PLIST_SUB+=	PPC=""
+.else
+PLIST_SUB+=	PPC="@comment "
+.endif
+
+.if ${ARCH} == "sparc64"
+PLIST_SUB+=	SPARC=""
+.else
+PLIST_SUB+=	SPARC="@comment "
+.endif
+
+regression-test: build
+	@${ECHO_MSG} -n "===> Running jstests.py: "
+	@cd ${WRKSRC} && ${SETENV} TZ=PST8PDT ${PYTHON_CMD} tests/jstests.py \
+	--no-progress ./js
+.if ${PORT_OPTIONS:MMETHODJIT} || ${PORT_OPTIONS:MTRACEJIT}
+	@${ECHO_MSG} -n "===> Running jit_test.py: "
+	@cd ${WRKSRC} && ${SETENV} TZ=PST8PDT ${PYTHON_CMD} jit-test/jit_test.py \
+	--no-progress --jitflags=,m,j,mj,mjp,am,amj,amjp,amd ./js
+.endif
+
+.include <bsd.port.post.mk>

Added: head/lang/spidermonkey185/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/lang/spidermonkey185/distinfo	Tue Oct 16 23:09:10 2012	(r305994)
@@ -0,0 +1,2 @@
+SHA256 (js185-1.0.0.tar.gz) = 5d12f7e1f5b4a99436685d97b9b7b75f094d33580227aa998c406bbae6f2a687
+SIZE (js185-1.0.0.tar.gz) = 6164605

Added: head/lang/spidermonkey185/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/lang/spidermonkey185/pkg-descr	Tue Oct 16 23:09:10 2012	(r305994)
@@ -0,0 +1,3 @@
+Spidermonkey is the JavaScript interpreter from the Mozilla project.
+
+WWW: http://www.mozilla.org/js/spidermonkey/

Added: head/lang/spidermonkey185/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/lang/spidermonkey185/pkg-plist	Tue Oct 16 23:09:10 2012	(r305994)
@@ -0,0 +1,107 @@
+bin/js-config
+include/js/Allocator.h
+include/js/Assembler.h
+include/js/CodeAlloc.h
+include/js/Containers.h
+include/js/Fragmento.h
+include/js/LIR.h
+include/js/LIRopcode.tbl
+include/js/Native.h
+include/js/NativeCommon.h
+%%ARM%%/include/js/NativeARM.h
+%%MIPS%%/include/js/NativeMIPS.h
+%%PPC%%/include/js/NativePPC.h
+%%SPARC%%/include/js/NativeSparc.h
+%%AMD64%%include/js/NativeX64.h
+%%I386%%include/js/Nativei386.h
+include/js/RegAlloc.h
+include/js/VMPI.h
+include/js/Writer.h
+include/js/avmplus.h
+include/js/js-config.h
+include/js/js.msg
+include/js/jsanalyze.h
+include/js/jsapi.h
+include/js/jsarena.h
+include/js/jsarray.h
+include/js/jsatom.h
+include/js/jsautocfg.h
+include/js/jsautokw.h
+include/js/jsbit.h
+include/js/jsbool.h
+include/js/jsbuiltins.h
+include/js/jscell.h
+include/js/jsclist.h
+include/js/jsclone.h
+include/js/jscntxt.h
+include/js/jscompartment.h
+include/js/jscompat.h
+include/js/jsdate.h
+include/js/jsdbgapi.h
+include/js/jsdhash.h
+include/js/jsdtoa.h
+include/js/jsemit.h
+include/js/jsfriendapi.h
+include/js/jsfun.h
+include/js/jsgc.h
+include/js/jsgcchunk.h
+include/js/jsgcstats.h
+include/js/jshash.h
+include/js/jshashtable.h
+include/js/jshotloop.h
+include/js/jsinterp.h
+include/js/jsinttypes.h
+include/js/jsiter.h
+include/js/jslock.h
+include/js/jslong.h
+include/js/jsmath.h
+include/js/jsobj.h
+include/js/jsobjinlines.h
+include/js/json.h
+include/js/jsopcode.h
+include/js/jsopcode.tbl
+include/js/jsopcodeinlines.h
+include/js/jsotypes.h
+include/js/jsparse.h
+include/js/jsperf.h
+include/js/jsprf.h
+include/js/jsprobes.h
+include/js/jspropertycache.h
+include/js/jspropertycacheinlines.h
+include/js/jspropertytree.h
+include/js/jsproto.tbl
+include/js/jsproxy.h
+include/js/jsprvtd.h
+include/js/jspubtd.h
+include/js/jsreflect.h
+include/js/jsregexp.h
+include/js/jsscan.h
+include/js/jsscope.h
+include/js/jsscript.h
+include/js/jsscriptinlines.h
+include/js/jsstaticcheck.h
+include/js/jsstdint.h
+include/js/jsstr.h
+include/js/jstl.h
+include/js/jstracer.h
+include/js/jstypedarray.h
+include/js/jstypes.h
+include/js/jsutil.h
+include/js/jsval.h
+include/js/jsvalue.h
+include/js/jsvector.h
+include/js/jsversion.h
+include/js/jswrapper.h
+include/js/jsxdrapi.h
+include/js/jsxml.h
+include/js/nanojit.h
+include/js/njconfig.h
+include/js/njcpudetect.h
+include/js/prmjtime.h
+lib/libmozjs185.so
+lib/libmozjs185-1.0.a
+lib/libmozjs185.so.1.0.0
+lib/libmozjs185.so.1.0
+libdata/pkgconfig/mozjs185.pc
+@dirrmtry libdata/pkgconfig
+@dirrm include/js



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