pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/mozjs60 lang/mozjs60: import mozjs60-60.8.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5901cde99bd3
branches:  trunk
changeset: 414925:5901cde99bd3
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Sun Apr 05 06:10:28 2020 +0000

description:
lang/mozjs60: import mozjs60-60.8.0

I've named this mozjs60 to match what Linux distributions, in particular
Debian, do. Previous versions in pkgsrc are called spidermonkey*

This directory contains SpiderMonkey 60, the JavaScript engine by
Mozilla.

diffstat:

 lang/mozjs60/DESCR                                                                 |    2 +
 lang/mozjs60/Makefile                                                              |   59 +++
 lang/mozjs60/PLIST                                                                 |  174 ++++++++++
 lang/mozjs60/buildlink3.mk                                                         |   16 +
 lang/mozjs60/distinfo                                                              |   11 +
 lang/mozjs60/patches/patch-.._.._config_rules.mk                                   |   18 +
 lang/mozjs60/patches/patch-.._.._python_mozbuild_mozbuild_backend_recursivemake.py |   21 +
 lang/mozjs60/patches/patch-jsdate.cpp                                              |   33 +
 lang/mozjs60/patches/patch-vm_Time.cpp                                             |   52 ++
 lang/mozjs60/patches/patch-vm_Time.h                                               |   21 +
 10 files changed, 407 insertions(+), 0 deletions(-)

diffs (truncated from 447 to 300 lines):

diff -r e028aa876472 -r 5901cde99bd3 lang/mozjs60/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/mozjs60/DESCR        Sun Apr 05 06:10:28 2020 +0000
@@ -0,0 +1,2 @@
+This directory contains SpiderMonkey 60, the JavaScript engine by
+Mozilla.
diff -r e028aa876472 -r 5901cde99bd3 lang/mozjs60/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/mozjs60/Makefile     Sun Apr 05 06:10:28 2020 +0000
@@ -0,0 +1,59 @@
+# $NetBSD: Makefile,v 1.1 2020/04/05 06:10:28 wiz Exp $
+
+DISTNAME=      mozjs60_60.8.0.orig
+PKGNAME=       ${DISTNAME:S/_/-/:S/.orig//}
+CATEGORIES=    lang
+MASTER_SITES=  http://deb.debian.org/debian/pool/main/m/mozjs60/
+EXTRACT_SUFX=  .tar.xz
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://packages.debian.org/unstable/libmozjs-60-0
+COMMENT=       SpiderMonkey JavaScript library (60.x branch)
+#LICENSE=      # TODO: (see mk/license.mk)
+
+WRKSRC=                ${WRKDIR}/mozjs-60.8.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+=       --with-system-nspr
+#CONFIGURE_ARGS+=      --enable-posix-nspr-emulation
+CONFIGURE_ARGS+=       --with-pthreads
+CONFIGURE_ARGS+=       --disable-jemalloc
+CONFIGURE_ARGS+=       --disable-debug-symbols
+CONFIGURE_ARGS+=       --enable-strip
+# --with-intl-api
+# --disable-optimize
+
+PKGCONFIG_OVERRIDE+=   build/js.pc.in
+PKGCONFIG_OVERRIDE+=   ctypes/libffi/libffi.pc.in
+
+PYTHON_VERSIONS_ACCEPTED=      27
+
+pre-configure:
+       cd ${WRKSRC} && autoconf-2.13
+       mkdir ${WRKSRC}/build
+
+post-install:
+       cd ${DESTDIR}${PREFIX}/lib && \
+               ${MV} libmozjs-60.so libmozjs-60.so.0.0.0 && \
+               ${LN} -s libmozjs-60.so.0.0.0 libmozjs-60.so.0 && \
+               ${LN} -s libmozjs-60.so.0 libmozjs-60.so
+       ${RM} -f ${DESTDIR}${PREFIX}/lib/libjs_static.ajs
+       ${CHMOD} -x ${DESTDIR}${PREFIX}/include/mozjs-60/js-config.h
+       ${CHMOD} -x ${DESTDIR}${PREFIX}/lib/pkgconfig/mozjs-60.pc
+
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../lang/python/tool.mk"
+.include "../../textproc/icu/buildlink3.mk"
+.include "../../devel/nspr/buildlink3.mk"
+.include "../../mk/readline.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r e028aa876472 -r 5901cde99bd3 lang/mozjs60/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/mozjs60/PLIST        Sun Apr 05 06:10:28 2020 +0000
@@ -0,0 +1,174 @@
+@comment $NetBSD: PLIST,v 1.1 2020/04/05 06:10:28 wiz Exp $
+bin/js60
+bin/js60-config
+include/mozjs-60/double-conversion/double-conversion.h
+include/mozjs-60/double-conversion/utils.h
+include/mozjs-60/fdlibm.h
+include/mozjs-60/js-config.h
+include/mozjs-60/js.msg
+include/mozjs-60/js/AllocPolicy.h
+include/mozjs-60/js/CallArgs.h
+include/mozjs-60/js/CallNonGenericMethod.h
+include/mozjs-60/js/CharacterEncoding.h
+include/mozjs-60/js/Class.h
+include/mozjs-60/js/Conversions.h
+include/mozjs-60/js/Date.h
+include/mozjs-60/js/Debug.h
+include/mozjs-60/js/GCAPI.h
+include/mozjs-60/js/GCAnnotations.h
+include/mozjs-60/js/GCHashTable.h
+include/mozjs-60/js/GCPolicyAPI.h
+include/mozjs-60/js/GCVariant.h
+include/mozjs-60/js/GCVector.h
+include/mozjs-60/js/HashTable.h
+include/mozjs-60/js/HeapAPI.h
+include/mozjs-60/js/Id.h
+include/mozjs-60/js/Initialization.h
+include/mozjs-60/js/MemoryMetrics.h
+include/mozjs-60/js/Principals.h
+include/mozjs-60/js/Printf.h
+include/mozjs-60/js/ProfilingFrameIterator.h
+include/mozjs-60/js/ProfilingStack.h
+include/mozjs-60/js/ProtoKey.h
+include/mozjs-60/js/Proxy.h
+include/mozjs-60/js/Realm.h
+include/mozjs-60/js/RefCounted.h
+include/mozjs-60/js/RequiredDefines.h
+include/mozjs-60/js/Result.h
+include/mozjs-60/js/RootingAPI.h
+include/mozjs-60/js/SliceBudget.h
+include/mozjs-60/js/Stream.h
+include/mozjs-60/js/StructuredClone.h
+include/mozjs-60/js/SweepingAPI.h
+include/mozjs-60/js/TraceKind.h
+include/mozjs-60/js/TracingAPI.h
+include/mozjs-60/js/TrackedOptimizationInfo.h
+include/mozjs-60/js/TypeDecls.h
+include/mozjs-60/js/UbiNode.h
+include/mozjs-60/js/UbiNodeBreadthFirst.h
+include/mozjs-60/js/UbiNodeCensus.h
+include/mozjs-60/js/UbiNodeDominatorTree.h
+include/mozjs-60/js/UbiNodePostOrder.h
+include/mozjs-60/js/UbiNodeShortestPaths.h
+include/mozjs-60/js/UniquePtr.h
+include/mozjs-60/js/Utility.h
+include/mozjs-60/js/Value.h
+include/mozjs-60/js/Vector.h
+include/mozjs-60/js/WeakMapPtr.h
+include/mozjs-60/js/Wrapper.h
+include/mozjs-60/jsapi.h
+include/mozjs-60/jsfriendapi.h
+include/mozjs-60/jsperf.h
+include/mozjs-60/jspubtd.h
+include/mozjs-60/jstypes.h
+include/mozjs-60/malloc_decls.h
+include/mozjs-60/mozilla/Alignment.h
+include/mozjs-60/mozilla/AllocPolicy.h
+include/mozjs-60/mozilla/AlreadyAddRefed.h
+include/mozjs-60/mozilla/Array.h
+include/mozjs-60/mozilla/ArrayUtils.h
+include/mozjs-60/mozilla/Assertions.h
+include/mozjs-60/mozilla/Atomics.h
+include/mozjs-60/mozilla/Attributes.h
+include/mozjs-60/mozilla/AutoProfilerLabel.h
+include/mozjs-60/mozilla/BinarySearch.h
+include/mozjs-60/mozilla/BloomFilter.h
+include/mozjs-60/mozilla/BufferList.h
+include/mozjs-60/mozilla/Casting.h
+include/mozjs-60/mozilla/ChaosMode.h
+include/mozjs-60/mozilla/Char16.h
+include/mozjs-60/mozilla/CheckedInt.h
+include/mozjs-60/mozilla/Compiler.h
+include/mozjs-60/mozilla/Compression.h
+include/mozjs-60/mozilla/DebugOnly.h
+include/mozjs-60/mozilla/Decimal.h
+include/mozjs-60/mozilla/DefineEnum.h
+include/mozjs-60/mozilla/DoublyLinkedList.h
+include/mozjs-60/mozilla/EndianUtils.h
+include/mozjs-60/mozilla/EnumSet.h
+include/mozjs-60/mozilla/EnumTypeTraits.h
+include/mozjs-60/mozilla/EnumeratedArray.h
+include/mozjs-60/mozilla/EnumeratedRange.h
+include/mozjs-60/mozilla/FStream.h
+include/mozjs-60/mozilla/FastBernoulliTrial.h
+include/mozjs-60/mozilla/FloatingPoint.h
+include/mozjs-60/mozilla/GuardObjects.h
+include/mozjs-60/mozilla/HashFunctions.h
+include/mozjs-60/mozilla/IndexSequence.h
+include/mozjs-60/mozilla/IntegerPrintfMacros.h
+include/mozjs-60/mozilla/IntegerRange.h
+include/mozjs-60/mozilla/IntegerTypeTraits.h
+include/mozjs-60/mozilla/JSONWriter.h
+include/mozjs-60/mozilla/Likely.h
+include/mozjs-60/mozilla/LinkedList.h
+include/mozjs-60/mozilla/MacroArgs.h
+include/mozjs-60/mozilla/MacroForEach.h
+include/mozjs-60/mozilla/MathAlgorithms.h
+include/mozjs-60/mozilla/Maybe.h
+include/mozjs-60/mozilla/MaybeOneOf.h
+include/mozjs-60/mozilla/MemoryChecking.h
+include/mozjs-60/mozilla/MemoryReporting.h
+include/mozjs-60/mozilla/Move.h
+include/mozjs-60/mozilla/NotNull.h
+include/mozjs-60/mozilla/NullPtr.h
+include/mozjs-60/mozilla/Opaque.h
+include/mozjs-60/mozilla/OperatorNewExtensions.h
+include/mozjs-60/mozilla/Pair.h
+include/mozjs-60/mozilla/Path.h
+include/mozjs-60/mozilla/PlatformConditionVariable.h
+include/mozjs-60/mozilla/PlatformMutex.h
+include/mozjs-60/mozilla/PodOperations.h
+include/mozjs-60/mozilla/Poison.h
+include/mozjs-60/mozilla/Printf.h
+include/mozjs-60/mozilla/Range.h
+include/mozjs-60/mozilla/RangedArray.h
+include/mozjs-60/mozilla/RangedPtr.h
+include/mozjs-60/mozilla/ReentrancyGuard.h
+include/mozjs-60/mozilla/RefCountType.h
+include/mozjs-60/mozilla/RefCounted.h
+include/mozjs-60/mozilla/RefPtr.h
+include/mozjs-60/mozilla/Result.h
+include/mozjs-60/mozilla/ResultExtensions.h
+include/mozjs-60/mozilla/ReverseIterator.h
+include/mozjs-60/mozilla/RollingMean.h
+include/mozjs-60/mozilla/SHA1.h
+include/mozjs-60/mozilla/Saturate.h
+include/mozjs-60/mozilla/ScopeExit.h
+include/mozjs-60/mozilla/Scoped.h
+include/mozjs-60/mozilla/SegmentedVector.h
+include/mozjs-60/mozilla/SmallPointerArray.h
+include/mozjs-60/mozilla/Span.h
+include/mozjs-60/mozilla/SplayTree.h
+include/mozjs-60/mozilla/Sprintf.h
+include/mozjs-60/mozilla/StackWalk.h
+include/mozjs-60/mozilla/StaticAnalysisFunctions.h
+include/mozjs-60/mozilla/TaggedAnonymousMemory.h
+include/mozjs-60/mozilla/TemplateLib.h
+include/mozjs-60/mozilla/TextUtils.h
+include/mozjs-60/mozilla/ThreadLocal.h
+include/mozjs-60/mozilla/ThreadSafeWeakPtr.h
+include/mozjs-60/mozilla/TimeStamp.h
+include/mozjs-60/mozilla/ToString.h
+include/mozjs-60/mozilla/Tuple.h
+include/mozjs-60/mozilla/TypeTraits.h
+include/mozjs-60/mozilla/TypedEnumBits.h
+include/mozjs-60/mozilla/Types.h
+include/mozjs-60/mozilla/UniquePtr.h
+include/mozjs-60/mozilla/UniquePtrExtensions.h
+include/mozjs-60/mozilla/Unused.h
+include/mozjs-60/mozilla/Variant.h
+include/mozjs-60/mozilla/Vector.h
+include/mozjs-60/mozilla/WeakPtr.h
+include/mozjs-60/mozilla/WrappingOperations.h
+include/mozjs-60/mozilla/XorShift128PlusRNG.h
+include/mozjs-60/mozilla/fallible.h
+include/mozjs-60/mozilla/mozalloc.h
+include/mozjs-60/mozilla/mozalloc_abort.h
+include/mozjs-60/mozilla/mozalloc_oom.h
+include/mozjs-60/mozjemalloc_types.h
+include/mozjs-60/mozmemory.h
+include/mozjs-60/mozmemory_wrap.h
+lib/libmozjs-60.so
+lib/libmozjs-60.so.0
+lib/libmozjs-60.so.0.0.0
+lib/pkgconfig/mozjs-60.pc
diff -r e028aa876472 -r 5901cde99bd3 lang/mozjs60/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/mozjs60/buildlink3.mk        Sun Apr 05 06:10:28 2020 +0000
@@ -0,0 +1,16 @@
+# $NetBSD: buildlink3.mk,v 1.1 2020/04/05 06:10:28 wiz Exp $
+
+BUILDLINK_TREE+=       mozjs60
+
+.if !defined(MOZJS60_BUILDLINK3_MK)
+MOZJS60_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.mozjs60+=        mozjs60>=60.8.0
+BUILDLINK_PKGSRCDIR.mozjs60?=  ../../lang/mozjs60
+
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../textproc/icu/buildlink3.mk"
+.include "../../devel/nspr/buildlink3.mk"
+.endif # MOZJS60_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -mozjs60
diff -r e028aa876472 -r 5901cde99bd3 lang/mozjs60/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/mozjs60/distinfo     Sun Apr 05 06:10:28 2020 +0000
@@ -0,0 +1,11 @@
+$NetBSD: distinfo,v 1.1 2020/04/05 06:10:28 wiz Exp $
+
+SHA1 (mozjs60_60.8.0.orig.tar.xz) = b66207ee477c110995029f173e6b026f2e013591
+RMD160 (mozjs60_60.8.0.orig.tar.xz) = fef033969a51dc56c84669d33401f60bd499de6d
+SHA512 (mozjs60_60.8.0.orig.tar.xz) = ad4d5d17824b1d0e50fc43a56cb5ffe022ffd150ce0e4af4e57326b8c1a8688c90da72c156122f637f558300b1caeb2f50d0bc83a1a12455fed3be656dd8c5be
+Size (mozjs60_60.8.0.orig.tar.xz) = 25294372 bytes
+SHA1 (patch-.._.._config_rules.mk) = cf3421d991e1cbfab4c0cdcb7b648b1388fa32d5
+SHA1 (patch-.._.._python_mozbuild_mozbuild_backend_recursivemake.py) = dda670432e5673c5d28dcf6c4902d4a724e71170
+SHA1 (patch-jsdate.cpp) = f9314460476ffbc00fe85a75bddc964807d0153f
+SHA1 (patch-vm_Time.cpp) = 5c08e7b3997055c50f40aadcaefb81628cf1133c
+SHA1 (patch-vm_Time.h) = 1dbc623a9b5e249d84bffd1b036feb7b6a54ce75
diff -r e028aa876472 -r 5901cde99bd3 lang/mozjs60/patches/patch-.._.._config_rules.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/mozjs60/patches/patch-.._.._config_rules.mk  Sun Apr 05 06:10:28 2020 +0000
@@ -0,0 +1,18 @@
+$NetBSD: patch-.._.._config_rules.mk,v 1.1 2020/04/05 06:10:28 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



Home | Main Index | Thread Index | Old Index