pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/spidermonkey185 Import lang/spidermonkey185 based...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f61469e3d4be
branches:  trunk
changeset: 354964:f61469e3d4be
user:      fhajny <fhajny%pkgsrc.org@localhost>
date:      Wed Nov 16 13:13:43 2016 +0000

description:
Import lang/spidermonkey185 based on wip/spidermonkey185.

Versioned as 1.8.5 despite the distfile version, as that seemed like
a confusing misnomer (especially compared to other branches versioning).

SpiderMonkey is the code-name for the Mozilla's C implementation of JavaScript.

diffstat:

 lang/spidermonkey185/DESCR                             |    2 +
 lang/spidermonkey185/Makefile                          |   69 +++++++++++
 lang/spidermonkey185/PLIST                             |  102 +++++++++++++++++
 lang/spidermonkey185/buildlink3.mk                     |   14 ++
 lang/spidermonkey185/distinfo                          |    8 +
 lang/spidermonkey185/patches/patch-configure           |   28 ++++
 lang/spidermonkey185/patches/patch-v8-dtoa_platform.cc |   20 +++
 lang/spidermonkey185/patches/patch-v8-dtoa_platform.h  |   16 ++
 8 files changed, 259 insertions(+), 0 deletions(-)

diffs (291 lines):

diff -r 517513fd3217 -r f61469e3d4be lang/spidermonkey185/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/spidermonkey185/DESCR        Wed Nov 16 13:13:43 2016 +0000
@@ -0,0 +1,2 @@
+SpiderMonkey is the code-name for the Mozilla's C implementation of JavaScript.
+This package contains SpiderMonkey 1.8.5.
diff -r 517513fd3217 -r f61469e3d4be lang/spidermonkey185/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/spidermonkey185/Makefile     Wed Nov 16 13:13:43 2016 +0000
@@ -0,0 +1,69 @@
+# $NetBSD: Makefile,v 1.1 2016/11/16 13:13:43 fhajny Exp $
+#
+
+DISTNAME=      js185-1.0.0
+PKGNAME=       spidermonkey185-1.8.5
+CATEGORIES=    lang
+MASTER_SITES=  ${MASTER_SITE_MOZILLA:=js/}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://developer.mozilla.org/en/SpiderMonkey
+COMMENT=       Standalone JavaScript implementation in C
+LICENSE=       mpl-1.1
+
+WRKSRC=                ${WRKDIR}/js-1.8.5/js/src
+
+USE_TOOLS+=    gmake pkg-config perl:build zip:build
+USE_LANGUAGES= c c++
+USE_LIBTOOL=   yes
+
+GNU_CONFIGURE=         yes
+CONFIGURE_ARGS+=       --enable-threadsafe
+CONFIGURE_ARGS+=       --with-pthreads
+CONFIGURE_ARGS+=       --with-system-nspr
+
+SUBST_CLASSES+=                        incdir
+SUBST_STAGE.incdir=            pre-configure
+SUBST_MESSAGE.incdir=          Adjust include path
+SUBST_FILES.incdir=            js-config.in mozjs185.pc.in
+SUBST_SED.incdir=              -e 's,/js,/js-1.8.5,g'
+
+# XXX: workaround for js-config command and mozjs185.pc
+CONFIGURE_ENV+=                MOZILLA_VERSION=4.0
+
+PKGCONFIG_OVERRIDE+=   ctypes/libffi/libffi.pc.in
+PKGCONFIG_OVERRIDE+=   mozjs185.pc.in
+
+.include "../../mk/bsd.prefs.mk"
+
+.if ${MACHINE_ARCH} == "arm"
+PLIST_SUBST+=  ARCH=ARM
+.elif ${MACHINE_ARCH} == "mips"
+PLIST_SUBST+=  ARCH=MIPS
+.elif ${MACHINE_ARCH} == "powerpc"
+PLIST_SUBST+=  ARCH=PPC
+.elif ${MACHINE_ARCH} == "sparc"
+PLIST_SUBST+=  ARCH=Sparc
+.elif ${MACHINE_ARCH} == "x86_64"
+PLIST_SUBST+=  ARCH=X64
+.else
+PLIST_SUBST+=  ARCH=${MACHINE_ARCH}
+.endif
+
+TEST_TARGET=           check
+
+# o Install js interpreter
+# o Install the binaries and headers with a proper version suffix
+# o Adjust headers permissions
+post-install:
+       ${INSTALL_PROGRAM} ${WRKSRC}/js ${DESTDIR}${PREFIX}/bin/js185
+       ${MV} ${DESTDIR}${PREFIX}/bin/js-config ${DESTDIR}${PREFIX}/bin/js185-config
+       ${MV} ${DESTDIR}${PREFIX}/include/js ${DESTDIR}${PREFIX}/include/js-1.8.5
+       ${CHMOD} -x ${DESTDIR}${PREFIX}/include/js-1.8.5/*
+
+# Python is only needed for the test target
+PYTHON_FOR_BUILD_ONLY= yes
+.include "../../lang/python/application.mk"
+.include "../../devel/nspr/buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 517513fd3217 -r f61469e3d4be lang/spidermonkey185/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/spidermonkey185/PLIST        Wed Nov 16 13:13:43 2016 +0000
@@ -0,0 +1,102 @@
+@comment $NetBSD: PLIST,v 1.1 2016/11/16 13:13:43 fhajny Exp $
+bin/js185
+bin/js185-config
+include/js-1.8.5/Allocator.h
+include/js-1.8.5/Assembler.h
+include/js-1.8.5/CodeAlloc.h
+include/js-1.8.5/Containers.h
+include/js-1.8.5/Fragmento.h
+include/js-1.8.5/LIR.h
+include/js-1.8.5/LIRopcode.tbl
+include/js-1.8.5/Native.h
+include/js-1.8.5/NativeCommon.h
+include/js-1.8.5/Native${ARCH}.h
+include/js-1.8.5/RegAlloc.h
+include/js-1.8.5/VMPI.h
+include/js-1.8.5/Writer.h
+include/js-1.8.5/avmplus.h
+include/js-1.8.5/js-config.h
+include/js-1.8.5/js.msg
+include/js-1.8.5/jsanalyze.h
+include/js-1.8.5/jsapi.h
+include/js-1.8.5/jsarena.h
+include/js-1.8.5/jsarray.h
+include/js-1.8.5/jsatom.h
+include/js-1.8.5/jsautocfg.h
+include/js-1.8.5/jsautokw.h
+include/js-1.8.5/jsbit.h
+include/js-1.8.5/jsbool.h
+include/js-1.8.5/jsbuiltins.h
+include/js-1.8.5/jscell.h
+include/js-1.8.5/jsclist.h
+include/js-1.8.5/jsclone.h
+include/js-1.8.5/jscntxt.h
+include/js-1.8.5/jscompartment.h
+include/js-1.8.5/jscompat.h
+include/js-1.8.5/jsdate.h
+include/js-1.8.5/jsdbgapi.h
+include/js-1.8.5/jsdhash.h
+include/js-1.8.5/jsdtoa.h
+include/js-1.8.5/jsemit.h
+include/js-1.8.5/jsfriendapi.h
+include/js-1.8.5/jsfun.h
+include/js-1.8.5/jsgc.h
+include/js-1.8.5/jsgcchunk.h
+include/js-1.8.5/jsgcstats.h
+include/js-1.8.5/jshash.h
+include/js-1.8.5/jshashtable.h
+include/js-1.8.5/jshotloop.h
+include/js-1.8.5/jsinterp.h
+include/js-1.8.5/jsinttypes.h
+include/js-1.8.5/jsiter.h
+include/js-1.8.5/jslock.h
+include/js-1.8.5/jslong.h
+include/js-1.8.5/jsmath.h
+include/js-1.8.5/jsobj.h
+include/js-1.8.5/jsobjinlines.h
+include/js-1.8.5/json.h
+include/js-1.8.5/jsopcode.h
+include/js-1.8.5/jsopcode.tbl
+include/js-1.8.5/jsopcodeinlines.h
+include/js-1.8.5/jsotypes.h
+include/js-1.8.5/jsparse.h
+include/js-1.8.5/jsperf.h
+include/js-1.8.5/jsprf.h
+include/js-1.8.5/jsprobes.h
+include/js-1.8.5/jspropertycache.h
+include/js-1.8.5/jspropertycacheinlines.h
+include/js-1.8.5/jspropertytree.h
+include/js-1.8.5/jsproto.tbl
+include/js-1.8.5/jsproxy.h
+include/js-1.8.5/jsprvtd.h
+include/js-1.8.5/jspubtd.h
+include/js-1.8.5/jsreflect.h
+include/js-1.8.5/jsregexp.h
+include/js-1.8.5/jsscan.h
+include/js-1.8.5/jsscope.h
+include/js-1.8.5/jsscript.h
+include/js-1.8.5/jsscriptinlines.h
+include/js-1.8.5/jsstaticcheck.h
+include/js-1.8.5/jsstdint.h
+include/js-1.8.5/jsstr.h
+include/js-1.8.5/jstl.h
+include/js-1.8.5/jstracer.h
+include/js-1.8.5/jstypedarray.h
+include/js-1.8.5/jstypes.h
+include/js-1.8.5/jsutil.h
+include/js-1.8.5/jsval.h
+include/js-1.8.5/jsvalue.h
+include/js-1.8.5/jsvector.h
+include/js-1.8.5/jsversion.h
+include/js-1.8.5/jswrapper.h
+include/js-1.8.5/jsxdrapi.h
+include/js-1.8.5/jsxml.h
+include/js-1.8.5/nanojit.h
+include/js-1.8.5/njconfig.h
+include/js-1.8.5/njcpudetect.h
+include/js-1.8.5/prmjtime.h
+lib/libmozjs185-1.0.a
+lib/libmozjs185.so
+lib/libmozjs185.so.1.0
+lib/libmozjs185.so.1.0.0
+lib/pkgconfig/mozjs185.pc
diff -r 517513fd3217 -r f61469e3d4be lang/spidermonkey185/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/spidermonkey185/buildlink3.mk        Wed Nov 16 13:13:43 2016 +0000
@@ -0,0 +1,14 @@
+# $NetBSD: buildlink3.mk,v 1.1 2016/11/16 13:13:43 fhajny Exp $
+
+BUILDLINK_TREE+=       spidermonkey185
+
+.if !defined(SPIDERMONKEY185_BUILDLINK3_MK)
+SPIDERMONKEY185_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.spidermonkey185+=        spidermonkey185>=1.0.0
+BUILDLINK_PKGSRCDIR.spidermonkey185?=  ../../lang/spidermonkey185
+
+.include "../../devel/nspr/buildlink3.mk"
+.endif # SPIDERMONKEY185_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -spidermonkey185
diff -r 517513fd3217 -r f61469e3d4be lang/spidermonkey185/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/spidermonkey185/distinfo     Wed Nov 16 13:13:43 2016 +0000
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1 2016/11/16 13:13:43 fhajny Exp $
+
+SHA1 (js185-1.0.0.tar.gz) = 52a01449c48d7a117b35f213d3e4263578d846d6
+RMD160 (js185-1.0.0.tar.gz) = 23e6ddc81d5b63e015aecc1a104b2d3d3ced5005
+Size (js185-1.0.0.tar.gz) = 6164605 bytes
+SHA1 (patch-configure) = 77366fff7e8b766b5691d0432b8740d4c8c362a6
+SHA1 (patch-v8-dtoa_platform.cc) = 24670e996fcc7ca0d1e7b1b3765a67ac05e9a661
+SHA1 (patch-v8-dtoa_platform.h) = 1d618d8f51e3ee169606297950d3030fcf72abbc
diff -r 517513fd3217 -r f61469e3d4be lang/spidermonkey185/patches/patch-configure
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/spidermonkey185/patches/patch-configure      Wed Nov 16 13:13:43 2016 +0000
@@ -0,0 +1,28 @@
+$NetBSD: patch-configure,v 1.1 2016/11/16 13:13:44 fhajny Exp $
+
+* Improve compatibility
+
+--- configure.orig     2011-03-31 19:08:36.000000000 +0000
++++ configure
+@@ -3234,7 +3234,7 @@ fi
+ 
+ echo "$ac_t""$ac_cv_have_std__Throw" 1>&6
+ 
+-        if test "$ac_cv_have_std__Throw" == "yes"; then
++        if test "$ac_cv_have_std__Throw" = "yes"; then
+             echo $ac_n "checking for |class __declspec(dllimport) exception| bug""... $ac_c" 1>&6
+ echo "configure:3240: checking for |class __declspec(dllimport) exception| bug" >&5
+ if eval "test \"`echo '$''{'ac_cv_have_dllimport_exception_bug'+set}'`\" = set"; then
+@@ -8093,6 +8093,12 @@ EOF
+ EOF
+ 
+     ;;
++*-netbsd*)
++    cat >> confdefs.h <<\EOF
++#define AVMPLUS_UNIX 1
++EOF
++
++    ;;
+ *-gnu*)
+     cat >> confdefs.h <<\EOF
+ #define AVMPLUS_UNIX 1
diff -r 517513fd3217 -r f61469e3d4be lang/spidermonkey185/patches/patch-v8-dtoa_platform.cc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/spidermonkey185/patches/patch-v8-dtoa_platform.cc    Wed Nov 16 13:13:43 2016 +0000
@@ -0,0 +1,20 @@
+$NetBSD: patch-v8-dtoa_platform.cc,v 1.1 2016/11/16 13:13:44 fhajny Exp $
+
+fpclassify is defined on Illumos.
+
+--- v8-dtoa/platform.cc.orig   2011-03-31 19:08:36.000000000 +0000
++++ v8-dtoa/platform.cc
+@@ -111,6 +111,7 @@ int fpclassify(double x) {
+ #endif  // _MSC_VER
+ 
+ #ifdef SOLARIS
++#ifndef fpclassify
+ 
+ #include <ieeefp.h>
+ 
+@@ -134,4 +135,5 @@ int fpclassify(double x) {
+   }
+ 
+ }
++#endif fpclassify
+ #endif // SOLARIS
diff -r 517513fd3217 -r f61469e3d4be lang/spidermonkey185/patches/patch-v8-dtoa_platform.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/spidermonkey185/patches/patch-v8-dtoa_platform.h     Wed Nov 16 13:13:43 2016 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-v8-dtoa_platform.h,v 1.1 2016/11/16 13:13:44 fhajny Exp $
+
+fpclassify is defined on Illumos.
+
+--- v8-dtoa/platform.h.orig    2011-03-31 19:08:36.000000000 +0000
++++ v8-dtoa/platform.h
+@@ -67,7 +67,9 @@ int strncasecmp(const char* s1, const ch
+ #endif  // WIN32
+ 
+ #ifdef SOLARIS
++#ifndef fpclassify
+ int fpclassify(double x);
++#endif // fpclassify
+ #endif // SOLARIS
+ 
+ // GCC specific stuff



Home | Main Index | Thread Index | Old Index