pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang lang: Add mozjs78. Needed by newer gjs (needed by...
details: https://anonhg.NetBSD.org/pkgsrc/rev/ca374b5bc528
branches: trunk
changeset: 441751:ca374b5bc528
user: nia <nia%pkgsrc.org@localhost>
date: Tue Nov 10 11:27:10 2020 +0000
description:
lang: Add mozjs78. Needed by newer gjs (needed by gnome-shell).
Based on work by Dan Cîrnaț and myself in wip.
This directory contains SpiderMonkey 78, the JavaScript engine by
Mozilla.
diffstat:
lang/Makefile | 3 +-
lang/mozjs78/DESCR | 2 +
lang/mozjs78/Makefile | 74 ++
lang/mozjs78/PLIST | 248 ++++++++++
lang/mozjs78/buildlink3.mk | 16 +
lang/mozjs78/distinfo | 14 +
lang/mozjs78/patches/patch-.._.._build_moz.configure_rust.configure | 17 +
lang/mozjs78/patches/patch-.._.._build_moz.configure_toolchain.configure | 15 +
lang/mozjs78/patches/patch-configure.in | 12 +
lang/mozjs78/patches/patch-jit_ProcessExecutableMemory.cpp | 38 +
lang/mozjs78/patches/patch-jsfriendapi.h | 14 +
lang/mozjs78/patches/patch-vm_ArrayBufferObject.cpp | 24 +
lang/mozjs78/patches/patch-vm_JSONPrinter.cpp | 17 +
lang/mozjs78/patches/patch-vm_JSONPrinter.h | 17 +
14 files changed, 510 insertions(+), 1 deletions(-)
diffs (truncated from 577 to 300 lines):
diff -r 2bead0252741 -r ca374b5bc528 lang/Makefile
--- a/lang/Makefile Tue Nov 10 11:14:30 2020 +0000
+++ b/lang/Makefile Tue Nov 10 11:27:10 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.579 2020/10/10 20:19:47 adam Exp $
+# $NetBSD: Makefile,v 1.580 2020/11/10 11:27:10 nia Exp $
#
COMMENT= Programming languages
@@ -162,6 +162,7 @@
SUBDIR+= moscow_ml
SUBDIR+= mozjs60
SUBDIR+= mozjs68
+SUBDIR+= mozjs78
SUBDIR+= mpd
SUBDIR+= nawk
SUBDIR+= neko
diff -r 2bead0252741 -r ca374b5bc528 lang/mozjs78/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/mozjs78/DESCR Tue Nov 10 11:27:10 2020 +0000
@@ -0,0 +1,2 @@
+This directory contains SpiderMonkey 78, the JavaScript engine by
+Mozilla.
diff -r 2bead0252741 -r ca374b5bc528 lang/mozjs78/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/mozjs78/Makefile Tue Nov 10 11:27:10 2020 +0000
@@ -0,0 +1,74 @@
+# $NetBSD: Makefile,v 1.1 2020/11/10 11:27:10 nia Exp $
+
+DISTNAME= mozjs78_78.4.0.orig
+PKGNAME= ${DISTNAME:S/_/-/:S/.orig//}
+CATEGORIES= lang
+MASTER_SITES= http://deb.debian.org/debian/pool/main/m/mozjs78/
+EXTRACT_SUFX= .tar.xz
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://packages.debian.org/bullseye/libmozjs-78-0
+COMMENT= SpiderMonkey JavaScript library (78.x branch)
+LICENSE= mpl-1.1
+
+WRKSRC= ${WRKDIR}/firefox-${PKGVERSION_NOREV}/js/src
+USE_TOOLS+= autoconf213 gmake perl pkg-config
+USE_LANGUAGES= c c++
+
+# "ERROR: Only GCC 6.1 or newer is supported"
+GCC_REQD+= 6
+
+HAS_CONFIGURE= yes
+CONFIGURE_DIRS= build
+CONFIGURE_SCRIPT= ../configure
+CONFIGURE_ARGS+= --prefix=${PREFIX}
+CONFIGURE_ARGS+= --disable-debug
+CONFIGURE_ARGS+= --with-system-icu
+CONFIGURE_ARGS+= --with-system-zlib
+CONFIGURE_ARGS+= --enable-readline
+CONFIGURE_ARGS+= --disable-jemalloc
+CONFIGURE_ARGS+= --disable-debug-symbols
+CONFIGURE_ARGS+= --enable-strip
+CONFIGURE_ARGS+= --with-intl-api
+# --disable-optimize
+# For rustc/cargo detection
+CONFIGURE_ARGS+= --target=${MACHINE_GNU_PLATFORM}
+CONFIGURE_ARGS+= --host=${MACHINE_GNU_PLATFORM}
+
+PKGCONFIG_OVERRIDE+= build/js.pc.in
+PKGCONFIG_OVERRIDE+= ctypes/libffi/libffi.pc.in
+
+# Python 2.7 and Python 3.6 or later are required simultaneously.
+PYTHON_VERSIONS_ACCEPTED= 27
+PYTHON_FOR_BUILD_ONLY= tool
+.if !empty(PYTHON_VERSION_DEFAULT:M3[6789])
+TOOL_DEPENDS+= python${PYTHON_VERSION_DEFAULT}-[0-9]*:../../lang/python${PYTHON_VERSION_DEFAULT}
+ALL_ENV+= PYTHON3=${PREFIX}/bin/python${PYTHON_VERSION_DEFAULT:S/3/3./}
+.else
+TOOL_DEPENDS+= python37-[0-9]*:../../lang/python37
+ALL_ENV+= PYTHON3=${PREFIX}/bin/python3.7
+.endif
+
+pre-configure:
+ cd ${WRKSRC} && autoconf-2.13 old-configure.in > old-configure \
+ && autoconf-2.13
+ mkdir ${WRKSRC}/build && touch ${WRKSRC}/build/old-configure.vars
+
+post-install:
+ cd ${DESTDIR}${PREFIX}/lib && \
+ ${MV} libmozjs-78.so libmozjs-78.so.0.0.0 && \
+ ${LN} -s libmozjs-78.so.0.0.0 libmozjs-78.so.0 && \
+ ${LN} -s libmozjs-78.so.0 libmozjs-78.so
+ ${RM} -f ${DESTDIR}${PREFIX}/lib/libjs_static.ajs
+ ${CHMOD} -x ${DESTDIR}${PREFIX}/include/mozjs-78/js-config.h
+ ${CHMOD} -x ${DESTDIR}${PREFIX}/lib/pkgconfig/mozjs-78.pc
+
+BUILDLINK_DEPMETHOD.clang= build
+.include "../../lang/clang/buildlink3.mk"
+RUST_REQ= 1.34.0
+.include "../../lang/rust/rust.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../lang/python/tool.mk"
+.include "../../textproc/icu/buildlink3.mk"
+.include "../../mk/readline.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 2bead0252741 -r ca374b5bc528 lang/mozjs78/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/mozjs78/PLIST Tue Nov 10 11:27:10 2020 +0000
@@ -0,0 +1,248 @@
+@comment $NetBSD: PLIST,v 1.1 2020/11/10 11:27:10 nia Exp $
+bin/js78
+bin/js78-config
+include/mozjs-78/BaseProfiler.h
+include/mozjs-78/double-conversion/double-conversion.h
+include/mozjs-78/double-conversion/double-to-string.h
+include/mozjs-78/double-conversion/string-to-double.h
+include/mozjs-78/double-conversion/utils.h
+include/mozjs-78/encoding_rs_mem.h
+include/mozjs-78/fdlibm.h
+include/mozjs-78/js-config.h
+include/mozjs-78/js.msg
+include/mozjs-78/js/AllocPolicy.h
+include/mozjs-78/js/AllocationRecording.h
+include/mozjs-78/js/Array.h
+include/mozjs-78/js/ArrayBuffer.h
+include/mozjs-78/js/ArrayBufferMaybeShared.h
+include/mozjs-78/js/BigInt.h
+include/mozjs-78/js/BinASTFormat.h
+include/mozjs-78/js/BuildId.h
+include/mozjs-78/js/CallArgs.h
+include/mozjs-78/js/CallNonGenericMethod.h
+include/mozjs-78/js/CharacterEncoding.h
+include/mozjs-78/js/Class.h
+include/mozjs-78/js/ComparisonOperators.h
+include/mozjs-78/js/CompilationAndEvaluation.h
+include/mozjs-78/js/CompileOptions.h
+include/mozjs-78/js/ContextOptions.h
+include/mozjs-78/js/Conversions.h
+include/mozjs-78/js/Date.h
+include/mozjs-78/js/Debug.h
+include/mozjs-78/js/Equality.h
+include/mozjs-78/js/ErrorReport.h
+include/mozjs-78/js/Exception.h
+include/mozjs-78/js/ForOfIterator.h
+include/mozjs-78/js/GCAPI.h
+include/mozjs-78/js/GCAnnotations.h
+include/mozjs-78/js/GCHashTable.h
+include/mozjs-78/js/GCPolicyAPI.h
+include/mozjs-78/js/GCTypeMacros.h
+include/mozjs-78/js/GCVariant.h
+include/mozjs-78/js/GCVector.h
+include/mozjs-78/js/HashTable.h
+include/mozjs-78/js/HeapAPI.h
+include/mozjs-78/js/Id.h
+include/mozjs-78/js/Initialization.h
+include/mozjs-78/js/JSON.h
+include/mozjs-78/js/LocaleSensitive.h
+include/mozjs-78/js/MemoryFunctions.h
+include/mozjs-78/js/MemoryMetrics.h
+include/mozjs-78/js/Modules.h
+include/mozjs-78/js/OffThreadScriptCompilation.h
+include/mozjs-78/js/Principals.h
+include/mozjs-78/js/Printf.h
+include/mozjs-78/js/ProfilingCategory.h
+include/mozjs-78/js/ProfilingFrameIterator.h
+include/mozjs-78/js/ProfilingStack.h
+include/mozjs-78/js/Promise.h
+include/mozjs-78/js/PropertyDescriptor.h
+include/mozjs-78/js/PropertySpec.h
+include/mozjs-78/js/ProtoKey.h
+include/mozjs-78/js/Proxy.h
+include/mozjs-78/js/Realm.h
+include/mozjs-78/js/RealmOptions.h
+include/mozjs-78/js/RefCounted.h
+include/mozjs-78/js/RegExp.h
+include/mozjs-78/js/RegExpFlags.h
+include/mozjs-78/js/RequiredDefines.h
+include/mozjs-78/js/Result.h
+include/mozjs-78/js/RootingAPI.h
+include/mozjs-78/js/SavedFrameAPI.h
+include/mozjs-78/js/SharedArrayBuffer.h
+include/mozjs-78/js/SliceBudget.h
+include/mozjs-78/js/SourceText.h
+include/mozjs-78/js/StableStringChars.h
+include/mozjs-78/js/Stream.h
+include/mozjs-78/js/StructuredClone.h
+include/mozjs-78/js/SweepingAPI.h
+include/mozjs-78/js/Symbol.h
+include/mozjs-78/js/TraceKind.h
+include/mozjs-78/js/TraceLoggerAPI.h
+include/mozjs-78/js/TracingAPI.h
+include/mozjs-78/js/Transcoding.h
+include/mozjs-78/js/TypeDecls.h
+include/mozjs-78/js/UbiNode.h
+include/mozjs-78/js/UbiNodeBreadthFirst.h
+include/mozjs-78/js/UbiNodeCensus.h
+include/mozjs-78/js/UbiNodeDominatorTree.h
+include/mozjs-78/js/UbiNodePostOrder.h
+include/mozjs-78/js/UbiNodeShortestPaths.h
+include/mozjs-78/js/UbiNodeUtils.h
+include/mozjs-78/js/UniquePtr.h
+include/mozjs-78/js/Utility.h
+include/mozjs-78/js/Value.h
+include/mozjs-78/js/ValueArray.h
+include/mozjs-78/js/Vector.h
+include/mozjs-78/js/Warnings.h
+include/mozjs-78/js/WeakMapPtr.h
+include/mozjs-78/js/Wrapper.h
+include/mozjs-78/js/experimental/CodeCoverage.h
+include/mozjs-78/js/experimental/SourceHook.h
+include/mozjs-78/jsapi.h
+include/mozjs-78/jsfriendapi.h
+include/mozjs-78/jspubtd.h
+include/mozjs-78/jstypes.h
+include/mozjs-78/malloc_decls.h
+include/mozjs-78/mozilla/Algorithm.h
+include/mozjs-78/mozilla/Alignment.h
+include/mozjs-78/mozilla/AllocPolicy.h
+include/mozjs-78/mozilla/AlreadyAddRefed.h
+include/mozjs-78/mozilla/Array.h
+include/mozjs-78/mozilla/ArrayUtils.h
+include/mozjs-78/mozilla/Assertions.h
+include/mozjs-78/mozilla/Atomics.h
+include/mozjs-78/mozilla/Attributes.h
+include/mozjs-78/mozilla/AutoProfilerLabel.h
+include/mozjs-78/mozilla/BaseProfilerCounts.h
+include/mozjs-78/mozilla/BaseProfilerDetail.h
+include/mozjs-78/mozilla/BinarySearch.h
+include/mozjs-78/mozilla/BlocksRingBuffer.h
+include/mozjs-78/mozilla/BloomFilter.h
+include/mozjs-78/mozilla/Buffer.h
+include/mozjs-78/mozilla/BufferList.h
+include/mozjs-78/mozilla/Casting.h
+include/mozjs-78/mozilla/ChaosMode.h
+include/mozjs-78/mozilla/Char16.h
+include/mozjs-78/mozilla/CheckedInt.h
+include/mozjs-78/mozilla/CompactPair.h
+include/mozjs-78/mozilla/Compiler.h
+include/mozjs-78/mozilla/Compression.h
+include/mozjs-78/mozilla/DbgMacro.h
+include/mozjs-78/mozilla/DebugOnly.h
+include/mozjs-78/mozilla/Decimal.h
+include/mozjs-78/mozilla/DefineEnum.h
+include/mozjs-78/mozilla/DoubleConversion.h
+include/mozjs-78/mozilla/DoublyLinkedList.h
+include/mozjs-78/mozilla/EndianUtils.h
+include/mozjs-78/mozilla/EnumSet.h
+include/mozjs-78/mozilla/EnumTypeTraits.h
+include/mozjs-78/mozilla/EnumeratedArray.h
+include/mozjs-78/mozilla/EnumeratedRange.h
+include/mozjs-78/mozilla/FStream.h
+include/mozjs-78/mozilla/FastBernoulliTrial.h
+include/mozjs-78/mozilla/FloatingPoint.h
+include/mozjs-78/mozilla/FunctionRef.h
+include/mozjs-78/mozilla/FunctionTypeTraits.h
+include/mozjs-78/mozilla/GuardObjects.h
+include/mozjs-78/mozilla/HashFunctions.h
+include/mozjs-78/mozilla/HashTable.h
+include/mozjs-78/mozilla/HelperMacros.h
+include/mozjs-78/mozilla/InitializedOnce.h
+include/mozjs-78/mozilla/IntegerPrintfMacros.h
+include/mozjs-78/mozilla/IntegerRange.h
+include/mozjs-78/mozilla/IntegerTypeTraits.h
+include/mozjs-78/mozilla/JSONWriter.h
+include/mozjs-78/mozilla/JsRust.h
+include/mozjs-78/mozilla/Latin1.h
+include/mozjs-78/mozilla/Likely.h
+include/mozjs-78/mozilla/LinkedList.h
+include/mozjs-78/mozilla/MacroArgs.h
+include/mozjs-78/mozilla/MacroForEach.h
+include/mozjs-78/mozilla/MathAlgorithms.h
+include/mozjs-78/mozilla/Maybe.h
+include/mozjs-78/mozilla/MaybeOneOf.h
+include/mozjs-78/mozilla/MemoryChecking.h
+include/mozjs-78/mozilla/MemoryReporting.h
+include/mozjs-78/mozilla/MmapFaultHandler.h
+include/mozjs-78/mozilla/ModuloBuffer.h
+include/mozjs-78/mozilla/NonDereferenceable.h
+include/mozjs-78/mozilla/NotNull.h
+include/mozjs-78/mozilla/Opaque.h
+include/mozjs-78/mozilla/OperatorNewExtensions.h
+include/mozjs-78/mozilla/Path.h
+include/mozjs-78/mozilla/PlatformConditionVariable.h
+include/mozjs-78/mozilla/PlatformMutex.h
+include/mozjs-78/mozilla/PodOperations.h
+include/mozjs-78/mozilla/Poison.h
+include/mozjs-78/mozilla/PowerOfTwo.h
+include/mozjs-78/mozilla/Printf.h
+include/mozjs-78/mozilla/ProfileBufferChunk.h
+include/mozjs-78/mozilla/ProfileBufferChunkManager.h
+include/mozjs-78/mozilla/ProfileBufferChunkManagerSingle.h
+include/mozjs-78/mozilla/ProfileBufferChunkManagerWithLocalLimit.h
+include/mozjs-78/mozilla/ProfileBufferControlledChunkManager.h
+include/mozjs-78/mozilla/ProfileBufferEntrySerialization.h
+include/mozjs-78/mozilla/ProfileBufferIndex.h
+include/mozjs-78/mozilla/ProfileChunkedBuffer.h
+include/mozjs-78/mozilla/RandomNum.h
+include/mozjs-78/mozilla/Range.h
+include/mozjs-78/mozilla/RangedArray.h
+include/mozjs-78/mozilla/RangedPtr.h
+include/mozjs-78/mozilla/ReentrancyGuard.h
+include/mozjs-78/mozilla/RefCountType.h
+include/mozjs-78/mozilla/RefCounted.h
+include/mozjs-78/mozilla/RefPtr.h
Home |
Main Index |
Thread Index |
Old Index