pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/lang/mozjs68
Module Name: pkgsrc
Committed By: wiz
Date: Mon Apr 6 04:58:42 UTC 2020
Added Files:
pkgsrc/lang/mozjs68: DESCR Makefile PLIST buildlink3.mk distinfo
pkgsrc/lang/mozjs68/patches: patch-.._.._config_rules.mk
patch-.._.._python_mozbuild_mozbuild_backend_recursivemake.py
Log Message:
lang/mozjs68: import mozjs68-68.6.0
This directory contains SpiderMonkey 68, the JavaScript engine by
Mozilla.
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/lang/mozjs68/DESCR pkgsrc/lang/mozjs68/Makefile \
pkgsrc/lang/mozjs68/PLIST pkgsrc/lang/mozjs68/buildlink3.mk \
pkgsrc/lang/mozjs68/distinfo
cvs rdiff -u -r0 -r1.1 \
pkgsrc/lang/mozjs68/patches/patch-.._.._config_rules.mk \
pkgsrc/lang/mozjs68/patches/patch-.._.._python_mozbuild_mozbuild_backend_recursivemake.py
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Added files:
Index: pkgsrc/lang/mozjs68/DESCR
diff -u /dev/null pkgsrc/lang/mozjs68/DESCR:1.1
--- /dev/null Mon Apr 6 04:58:42 2020
+++ pkgsrc/lang/mozjs68/DESCR Mon Apr 6 04:58:42 2020
@@ -0,0 +1,2 @@
+This directory contains SpiderMonkey 68, the JavaScript engine by
+Mozilla.
Index: pkgsrc/lang/mozjs68/Makefile
diff -u /dev/null pkgsrc/lang/mozjs68/Makefile:1.1
--- /dev/null Mon Apr 6 04:58:42 2020
+++ pkgsrc/lang/mozjs68/Makefile Mon Apr 6 04:58:42 2020
@@ -0,0 +1,75 @@
+# $NetBSD: Makefile,v 1.1 2020/04/06 04:58:42 wiz Exp $
+
+DISTNAME= mozjs68_68.6.0.orig
+PKGNAME= ${DISTNAME:S/_/-/:S/.orig//}
+CATEGORIES= lang
+MASTER_SITES= http://deb.debian.org/debian/pool/main/m/mozjs68/
+EXTRACT_SUFX= .tar.xz
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://packages.debian.org/bullseye/libmozjs-68-0
+COMMENT= SpiderMonkey JavaScript library (68.x branch)
+#LICENSE= # TODO: (see mk/license.mk)
+
+WRKSRC= ${WRKDIR}/firefox-68.6.0/js/src
+USE_TOOLS+= autoconf213 gmake perl pkg-config
+USE_LANGUAGES= c c++
+
+GCC_REQD+= 4.8
+
+HAS_CONFIGURE= yes
+CONFIGURE_DIRS= build
+CONFIGURE_SCRIPT= ../configure
+CONFIGURE_ARGS+= --prefix=${PREFIX}
+CONFIGURE_ARGS+= --with-system-icu
+CONFIGURE_ARGS+= --with-system-zlib
+CONFIGURE_ARGS+= --enable-readline
+CONFIGURE_ARGS+= --enable-posix-nspr-emulation
+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
+
+NOT_PAX_MPROTECT_SAFE+= bin/js68
+
+# 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=${LOCALBASE}/bin/python${PYTHON_VERSION_DEFAULT:S/3/3./}
+.else
+TOOL_DEPENDS+= python37-[0-9]*:../../lang/python37
+ALL_ENV+= PYTHON3=${LOCALBASE}/bin/python3.7
+.endif
+
+pre-configure:
+ cd ${WRKSRC} && autoconf-2.13
+ mkdir ${WRKSRC}/build
+
+post-install:
+ cd ${DESTDIR}${PREFIX}/lib && \
+ ${MV} libmozjs-68.so libmozjs-68.so.0.0.0 && \
+ ${LN} -s libmozjs-68.so.0.0.0 libmozjs-68.so.0 && \
+ ${LN} -s libmozjs-68.so.0 libmozjs-68.so
+ ${RM} -f ${DESTDIR}${PREFIX}/lib/libjs_static.ajs
+ ${CHMOD} -x ${DESTDIR}${PREFIX}/include/mozjs-68/js-config.h
+ ${CHMOD} -x ${DESTDIR}${PREFIX}/lib/pkgconfig/mozjs-68.pc
+
+BUILDLINK_DEPMETHOD.clang= build
+.include "../../lang/clang/buildlink3.mk"
+BUILDLINK_DEPMETHOD.rust= build
+BUILDLINK_API_DEPENDS.rust+= rust>=1.34.0
+.include "../../lang/rust/buildlink3.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"
Index: pkgsrc/lang/mozjs68/PLIST
diff -u /dev/null pkgsrc/lang/mozjs68/PLIST:1.1
--- /dev/null Mon Apr 6 04:58:42 2020
+++ pkgsrc/lang/mozjs68/PLIST Mon Apr 6 04:58:42 2020
@@ -0,0 +1,215 @@
+@comment $NetBSD: PLIST,v 1.1 2020/04/06 04:58:42 wiz Exp $
+bin/js68
+bin/js68-config
+include/mozjs-68/double-conversion/double-conversion.h
+include/mozjs-68/double-conversion/utils.h
+include/mozjs-68/fdlibm.h
+include/mozjs-68/js-config.h
+include/mozjs-68/js.msg
+include/mozjs-68/js/AllocPolicy.h
+include/mozjs-68/js/ArrayBuffer.h
+include/mozjs-68/js/BuildId.h
+include/mozjs-68/js/CallArgs.h
+include/mozjs-68/js/CallNonGenericMethod.h
+include/mozjs-68/js/CharacterEncoding.h
+include/mozjs-68/js/Class.h
+include/mozjs-68/js/CompilationAndEvaluation.h
+include/mozjs-68/js/CompileOptions.h
+include/mozjs-68/js/ContextOptions.h
+include/mozjs-68/js/Conversions.h
+include/mozjs-68/js/Date.h
+include/mozjs-68/js/Debug.h
+include/mozjs-68/js/Equality.h
+include/mozjs-68/js/ErrorReport.h
+include/mozjs-68/js/ForOfIterator.h
+include/mozjs-68/js/GCAPI.h
+include/mozjs-68/js/GCAnnotations.h
+include/mozjs-68/js/GCHashTable.h
+include/mozjs-68/js/GCPolicyAPI.h
+include/mozjs-68/js/GCVariant.h
+include/mozjs-68/js/GCVector.h
+include/mozjs-68/js/HashTable.h
+include/mozjs-68/js/HeapAPI.h
+include/mozjs-68/js/Id.h
+include/mozjs-68/js/Initialization.h
+include/mozjs-68/js/JSON.h
+include/mozjs-68/js/LocaleSensitive.h
+include/mozjs-68/js/MemoryFunctions.h
+include/mozjs-68/js/MemoryMetrics.h
+include/mozjs-68/js/OffThreadScriptCompilation.h
+include/mozjs-68/js/Principals.h
+include/mozjs-68/js/Printf.h
+include/mozjs-68/js/ProfilingCategory.h
+include/mozjs-68/js/ProfilingFrameIterator.h
+include/mozjs-68/js/ProfilingStack.h
+include/mozjs-68/js/Promise.h
+include/mozjs-68/js/PropertyDescriptor.h
+include/mozjs-68/js/PropertySpec.h
+include/mozjs-68/js/ProtoKey.h
+include/mozjs-68/js/Proxy.h
+include/mozjs-68/js/Realm.h
+include/mozjs-68/js/RealmOptions.h
+include/mozjs-68/js/RefCounted.h
+include/mozjs-68/js/RegExp.h
+include/mozjs-68/js/RegExpFlags.h
+include/mozjs-68/js/RequiredDefines.h
+include/mozjs-68/js/Result.h
+include/mozjs-68/js/RootingAPI.h
+include/mozjs-68/js/SavedFrameAPI.h
+include/mozjs-68/js/SharedArrayBuffer.h
+include/mozjs-68/js/SliceBudget.h
+include/mozjs-68/js/SourceText.h
+include/mozjs-68/js/StableStringChars.h
+include/mozjs-68/js/Stream.h
+include/mozjs-68/js/StructuredClone.h
+include/mozjs-68/js/SweepingAPI.h
+include/mozjs-68/js/Symbol.h
+include/mozjs-68/js/TraceKind.h
+include/mozjs-68/js/TraceLoggerAPI.h
+include/mozjs-68/js/TracingAPI.h
+include/mozjs-68/js/TrackedOptimizationInfo.h
+include/mozjs-68/js/Transcoding.h
+include/mozjs-68/js/TypeDecls.h
+include/mozjs-68/js/UbiNode.h
+include/mozjs-68/js/UbiNodeBreadthFirst.h
+include/mozjs-68/js/UbiNodeCensus.h
+include/mozjs-68/js/UbiNodeDominatorTree.h
+include/mozjs-68/js/UbiNodePostOrder.h
+include/mozjs-68/js/UbiNodeShortestPaths.h
+include/mozjs-68/js/UbiNodeUtils.h
+include/mozjs-68/js/UniquePtr.h
+include/mozjs-68/js/Utility.h
+include/mozjs-68/js/Value.h
+include/mozjs-68/js/Vector.h
+include/mozjs-68/js/Warnings.h
+include/mozjs-68/js/WeakMapPtr.h
+include/mozjs-68/js/Wrapper.h
+include/mozjs-68/js/experimental/SourceHook.h
+include/mozjs-68/jsapi.h
+include/mozjs-68/jsfriendapi.h
+include/mozjs-68/jsperf.h
+include/mozjs-68/jspubtd.h
+include/mozjs-68/jstypes.h
+include/mozjs-68/malloc_decls.h
+include/mozjs-68/mozilla/Algorithm.h
+include/mozjs-68/mozilla/Alignment.h
+include/mozjs-68/mozilla/AllocPolicy.h
+include/mozjs-68/mozilla/AlreadyAddRefed.h
+include/mozjs-68/mozilla/Array.h
+include/mozjs-68/mozilla/ArrayUtils.h
+include/mozjs-68/mozilla/Assertions.h
+include/mozjs-68/mozilla/Atomics.h
+include/mozjs-68/mozilla/Attributes.h
+include/mozjs-68/mozilla/AutoProfilerLabel.h
+include/mozjs-68/mozilla/BinarySearch.h
+include/mozjs-68/mozilla/BloomFilter.h
+include/mozjs-68/mozilla/Buffer.h
+include/mozjs-68/mozilla/BufferList.h
+include/mozjs-68/mozilla/Casting.h
+include/mozjs-68/mozilla/ChaosMode.h
+include/mozjs-68/mozilla/Char16.h
+include/mozjs-68/mozilla/CheckedInt.h
+include/mozjs-68/mozilla/Compiler.h
+include/mozjs-68/mozilla/Compression.h
+include/mozjs-68/mozilla/DbgMacro.h
+include/mozjs-68/mozilla/DebugOnly.h
+include/mozjs-68/mozilla/Decimal.h
+include/mozjs-68/mozilla/DefineEnum.h
+include/mozjs-68/mozilla/DoublyLinkedList.h
+include/mozjs-68/mozilla/EndianUtils.h
+include/mozjs-68/mozilla/EnumSet.h
+include/mozjs-68/mozilla/EnumTypeTraits.h
+include/mozjs-68/mozilla/EnumeratedArray.h
+include/mozjs-68/mozilla/EnumeratedRange.h
+include/mozjs-68/mozilla/FStream.h
+include/mozjs-68/mozilla/FastBernoulliTrial.h
+include/mozjs-68/mozilla/FloatingPoint.h
+include/mozjs-68/mozilla/FunctionTypeTraits.h
+include/mozjs-68/mozilla/GuardObjects.h
+include/mozjs-68/mozilla/HashFunctions.h
+include/mozjs-68/mozilla/HashTable.h
+include/mozjs-68/mozilla/HelperMacros.h
+include/mozjs-68/mozilla/IntegerPrintfMacros.h
+include/mozjs-68/mozilla/IntegerRange.h
+include/mozjs-68/mozilla/IntegerTypeTraits.h
+include/mozjs-68/mozilla/JSONWriter.h
+include/mozjs-68/mozilla/Likely.h
+include/mozjs-68/mozilla/LinkedList.h
+include/mozjs-68/mozilla/MacroArgs.h
+include/mozjs-68/mozilla/MacroForEach.h
+include/mozjs-68/mozilla/MathAlgorithms.h
+include/mozjs-68/mozilla/Maybe.h
+include/mozjs-68/mozilla/MaybeOneOf.h
+include/mozjs-68/mozilla/MemoryChecking.h
+include/mozjs-68/mozilla/MemoryReporting.h
+include/mozjs-68/mozilla/Move.h
+include/mozjs-68/mozilla/NonDereferenceable.h
+include/mozjs-68/mozilla/NotNull.h
+include/mozjs-68/mozilla/NullPtr.h
+include/mozjs-68/mozilla/Opaque.h
+include/mozjs-68/mozilla/OperatorNewExtensions.h
+include/mozjs-68/mozilla/Pair.h
+include/mozjs-68/mozilla/Path.h
+include/mozjs-68/mozilla/PlatformConditionVariable.h
+include/mozjs-68/mozilla/PlatformMutex.h
+include/mozjs-68/mozilla/PodOperations.h
+include/mozjs-68/mozilla/Poison.h
+include/mozjs-68/mozilla/Printf.h
+include/mozjs-68/mozilla/RandomNum.h
+include/mozjs-68/mozilla/Range.h
+include/mozjs-68/mozilla/RangedArray.h
+include/mozjs-68/mozilla/RangedPtr.h
+include/mozjs-68/mozilla/RecordReplay.h
+include/mozjs-68/mozilla/ReentrancyGuard.h
+include/mozjs-68/mozilla/RefCountType.h
+include/mozjs-68/mozilla/RefCounted.h
+include/mozjs-68/mozilla/RefPtr.h
+include/mozjs-68/mozilla/Result.h
+include/mozjs-68/mozilla/ResultExtensions.h
+include/mozjs-68/mozilla/ReverseIterator.h
+include/mozjs-68/mozilla/RollingMean.h
+include/mozjs-68/mozilla/SHA1.h
+include/mozjs-68/mozilla/SPSCQueue.h
+include/mozjs-68/mozilla/Saturate.h
+include/mozjs-68/mozilla/ScopeExit.h
+include/mozjs-68/mozilla/Scoped.h
+include/mozjs-68/mozilla/SegmentedVector.h
+include/mozjs-68/mozilla/SharedLibrary.h
+include/mozjs-68/mozilla/SmallPointerArray.h
+include/mozjs-68/mozilla/Span.h
+include/mozjs-68/mozilla/SplayTree.h
+include/mozjs-68/mozilla/Sprintf.h
+include/mozjs-68/mozilla/StackWalk.h
+include/mozjs-68/mozilla/StaticAnalysisFunctions.h
+include/mozjs-68/mozilla/TaggedAnonymousMemory.h
+include/mozjs-68/mozilla/TemplateLib.h
+include/mozjs-68/mozilla/TextUtils.h
+include/mozjs-68/mozilla/ThreadLocal.h
+include/mozjs-68/mozilla/ThreadSafeWeakPtr.h
+include/mozjs-68/mozilla/TimeStamp.h
+include/mozjs-68/mozilla/ToString.h
+include/mozjs-68/mozilla/Tuple.h
+include/mozjs-68/mozilla/TypeTraits.h
+include/mozjs-68/mozilla/TypedEnumBits.h
+include/mozjs-68/mozilla/Types.h
+include/mozjs-68/mozilla/UniquePtr.h
+include/mozjs-68/mozilla/UniquePtrExtensions.h
+include/mozjs-68/mozilla/Unused.h
+include/mozjs-68/mozilla/Utf8.h
+include/mozjs-68/mozilla/Variant.h
+include/mozjs-68/mozilla/Vector.h
+include/mozjs-68/mozilla/WeakPtr.h
+include/mozjs-68/mozilla/WrappingOperations.h
+include/mozjs-68/mozilla/XorShift128PlusRNG.h
+include/mozjs-68/mozilla/fallible.h
+include/mozjs-68/mozilla/glue/Debug.h
+include/mozjs-68/mozilla/mozalloc.h
+include/mozjs-68/mozilla/mozalloc_abort.h
+include/mozjs-68/mozilla/mozalloc_oom.h
+include/mozjs-68/mozjemalloc_types.h
+include/mozjs-68/mozmemory.h
+include/mozjs-68/mozmemory_wrap.h
+lib/libmozjs-68.so
+lib/libmozjs-68.so.0
+lib/libmozjs-68.so.0.0.0
+lib/pkgconfig/mozjs-68.pc
Index: pkgsrc/lang/mozjs68/buildlink3.mk
diff -u /dev/null pkgsrc/lang/mozjs68/buildlink3.mk:1.1
--- /dev/null Mon Apr 6 04:58:42 2020
+++ pkgsrc/lang/mozjs68/buildlink3.mk Mon Apr 6 04:58:42 2020
@@ -0,0 +1,15 @@
+# $NetBSD: buildlink3.mk,v 1.1 2020/04/06 04:58:42 wiz Exp $
+
+BUILDLINK_TREE+= mozjs68
+
+.if !defined(MOZJS68_BUILDLINK3_MK)
+MOZJS68_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.mozjs68+= mozjs68>=68.6.0
+BUILDLINK_PKGSRCDIR.mozjs68?= ../../lang/mozjs68
+
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../textproc/icu/buildlink3.mk"
+.endif # MOZJS68_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -mozjs68
Index: pkgsrc/lang/mozjs68/distinfo
diff -u /dev/null pkgsrc/lang/mozjs68/distinfo:1.1
--- /dev/null Mon Apr 6 04:58:42 2020
+++ pkgsrc/lang/mozjs68/distinfo Mon Apr 6 04:58:42 2020
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1 2020/04/06 04:58:42 wiz Exp $
+
+SHA1 (mozjs68_68.6.0.orig.tar.xz) = 98eb63629e8889caa738fa15591fe8eeba73b227
+RMD160 (mozjs68_68.6.0.orig.tar.xz) = 7b00f416e1e767b0595fbd7e4c26c42c83ccd7a1
+SHA512 (mozjs68_68.6.0.orig.tar.xz) = faf6c64bb82c309dd09be49a83f76a182885eb97d6845a83b4463ca63d2186d6e0790068b1671960752b55d049a9cda3b6a062e0fbcec5403b52c9150c61a84e
+Size (mozjs68_68.6.0.orig.tar.xz) = 75303520 bytes
+SHA1 (patch-.._.._config_rules.mk) = cf3421d991e1cbfab4c0cdcb7b648b1388fa32d5
+SHA1 (patch-.._.._python_mozbuild_mozbuild_backend_recursivemake.py) = dda670432e5673c5d28dcf6c4902d4a724e71170
Index: pkgsrc/lang/mozjs68/patches/patch-.._.._config_rules.mk
diff -u /dev/null pkgsrc/lang/mozjs68/patches/patch-.._.._config_rules.mk:1.1
--- /dev/null Mon Apr 6 04:58:42 2020
+++ pkgsrc/lang/mozjs68/patches/patch-.._.._config_rules.mk Mon Apr 6 04:58:42 2020
@@ -0,0 +1,18 @@
+$NetBSD: patch-.._.._config_rules.mk,v 1.1 2020/04/06 04:58:42 wiz Exp $
+
+Add soname switch to linker, regardless of Operating System
+
+Bug-Debian: http://bugs.debian.org/746705
+
+--- ../../config/rules.mk.orig 2019-07-01 09:07:38.000000000 +0000
++++ ../../config/rules.mk
+@@ -367,6 +367,9 @@ endif
+ endif
+ EXTRA_DEPS += $(SYMBOLS_FILE)
+ endif
++
++EXTRA_DSO_LDOPTS += -Wl,-soname,lib$(JS_LIBRARY_NAME).so.0
++
+ #
+ # GNU doesn't have path length limitation
+ #
Index: pkgsrc/lang/mozjs68/patches/patch-.._.._python_mozbuild_mozbuild_backend_recursivemake.py
diff -u /dev/null pkgsrc/lang/mozjs68/patches/patch-.._.._python_mozbuild_mozbuild_backend_recursivemake.py:1.1
--- /dev/null Mon Apr 6 04:58:42 2020
+++ pkgsrc/lang/mozjs68/patches/patch-.._.._python_mozbuild_mozbuild_backend_recursivemake.py Mon Apr 6 04:58:42 2020
@@ -0,0 +1,21 @@
+$NetBSD: patch-.._.._python_mozbuild_mozbuild_backend_recursivemake.py,v 1.1 2020/04/06 04:58:42 wiz Exp $
+
+Copy headers on install instead of symlinking
+
+--- ../../python/mozbuild/mozbuild/backend/recursivemake.py.orig 2019-07-01 09:07:46.000000000 +0000
++++ ../../python/mozbuild/mozbuild/backend/recursivemake.py
+@@ -1427,11 +1427,11 @@ class RecursiveMakeBackend(CommonBackend
+ raise Exception("Wildcards are only supported in the filename part of "
+ "srcdir-relative or absolute paths.")
+
+- install_manifest.add_pattern_link(basepath, wild, path)
++ install_manifest.add_pattern_copy(basepath, wild, path)
+ else:
+- install_manifest.add_pattern_link(f.srcdir, f, path)
++ install_manifest.add_pattern_copy(f.srcdir, f, path)
+ else:
+- install_manifest.add_link(f.full_path, dest)
++ install_manifest.add_copy(f.full_path, dest)
+ else:
+ install_manifest.add_optional_exists(dest)
+ backend_file.write('%s_FILES += %s\n' % (
Home |
Main Index |
Thread Index |
Old Index