<pre style='margin:0'>
David B. Evans (dbevans) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/6fb74a5227bd46999e2c2a08d0081f7cde0713e0">https://github.com/macports/macports-ports/commit/6fb74a5227bd46999e2c2a08d0081f7cde0713e0</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 6fb74a5 mozjs60: new port
</span>6fb74a5 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 6fb74a5227bd46999e2c2a08d0081f7cde0713e0
</span>Author: David B. Evans <devans@macports.org>
AuthorDate: Sat Apr 27 16:34:42 2019 -0700
<span style='display:block; white-space:pre;color:#404040;'> mozjs60: new port
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Installs in parallel with mozjs52 without conflicts.
</span>---
lang/mozjs60/Portfile | 95 ++++++++++++++++++++++++++++++
lang/mozjs60/files/patch-js-config.in.diff | 9 +++
lang/mozjs60/files/patch-js.pc.in.diff | 9 +++
3 files changed, 113 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/mozjs60/Portfile b/lang/mozjs60/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..e3b2a0f
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/mozjs60/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,95 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim: fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortSystem 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup muniversal 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup cxx11 1.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup compiler_blacklist_versions 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+name mozjs60
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version 60.1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories lang
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+platforms darwin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license {MPL-2 LGPL-2.1+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers {devans @dbevans} openmaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description JavaScript-C Engine
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description SpiderMonkey is Mozilla's JavaScript engine written in C/C++. \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ It is used in various Mozilla products, including Firefox, \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ and is available under the MPL2.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+homepage https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# build from GNOME releng tarball
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+master_sites http://ftp.gnome.org/pub/GNOME/teams/releng/tarballs-needing-help/mozjs/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+distname mozjs-${version}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+use_bzip2 yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 b9f9c5d77331c4b025f1ae1e80a01a661464aaa1 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 834ffe877fdbbd81315ae3c101221fa404096c354483a86c1a02ece19fca68fd \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 32494225
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_build port:autoconf213 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:pkgconfig \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:python27 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:yasm
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_lib port:nspr \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:xorg-libX11 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:xorg-libXt
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# requires C++14 compiler to build
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+compiler.blacklist *gcc-3.* *gcc-4.* {clang < 700}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if { ${os.platform} eq "darwin" && ${os.major} < 11 } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_build-append port:cctools
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.env-append AR=${prefix}/bin/ar
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles patch-js.pc.in.diff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-js-config.in.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Use absolute path for install_name
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+post-patch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|@executable_path|${prefix}/lib|g" ${worksrcpath}/config/rules.mk
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.perl /usr/bin/perl
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.python ${prefix}/bin/python2.7
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.env-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ SHELL=/bin/bash
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.dir ${worksrcpath}/js/src/obj
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.cmd ../configure
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.args --with-system-nspr \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --disable-readline
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+build.env-append SHELL=/bin/bash
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+build.dir ${worksrcpath}/js/src/obj
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+destroot.dir ${worksrcpath}/js/src/obj
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+post-destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # make static lib name version specific to avoid conflict with other mozjs versions
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ move ${destroot}${prefix}/lib/libjs_static.ajs ${destroot}${prefix}/lib/libjs60_static.ajs
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # mozjs60 builds and links with libmozglue.dylib but fails to install it
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 0755 ${worksrcpath}/js/src/obj/mozglue/build/libmozglue.dylib ${destroot}${prefix}/lib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {[variant_isset universal]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set merger_host(x86_64) x86_64-apple-${os.platform}${os.major}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set merger_host(i386) i686-apple-${os.platform}${os.major}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set merger_configure_args(x86_64) "--build=x86_64-apple-${os.platform}${os.major} --target=x86_64-apple-${os.platform}${os.major}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set merger_configure_args(i386) "--build=i686-apple-${os.platform}${os.major} --target=i686-apple-${os.platform}${os.major}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+} else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${build_arch} eq "i386"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --host=i686-apple-${os.platform}${os.major} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --target=i686-apple-${os.platform}${os.major}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } elseif {${build_arch} eq "x86_64"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --host=${build_arch}-apple-${os.platform}${os.major} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --target=${build_arch}-apple-${os.platform}${os.major}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+livecheck.type none
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/mozjs60/files/patch-js-config.in.diff b/lang/mozjs60/files/patch-js-config.in.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..80832c0
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/mozjs60/files/patch-js-config.in.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,9 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- js/src/build/js-config.in.orig 2019-04-28 17:15:22.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ js/src/build/js-config.in 2019-04-28 17:20:57.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -112,5 +112,5 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if test "$echo_libs" = "yes"; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- echo "$MOZ_JS_LIBS $JS_CONFIG_LIBS"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ echo "$MOZ_JS_LIBS $JS_CONFIG_LIBS -lmozglue"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fi
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/mozjs60/files/patch-js.pc.in.diff b/lang/mozjs60/files/patch-js.pc.in.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..bc4953d
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/mozjs60/files/patch-js.pc.in.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,9 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- js/src/build/js.pc.in.orig 2019-04-28 16:40:01.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ js/src/build/js.pc.in 2019-04-28 16:41:44.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -7,5 +7,5 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ Description: The Mozilla library for JavaScript
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ Version: @MOZILLA_VERSION@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ @PKGCONF_REQUIRES_PRIVATE@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-Libs: -L${libdir} -l@JS_LIBRARY_NAME@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++Libs: -L${libdir} -l@JS_LIBRARY_NAME@ -lmozglue
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ Cflags: -include ${includedir}/@JS_LIBRARY_NAME@/js/RequiredDefines.h -I${includedir}/@JS_LIBRARY_NAME@
</span></pre><pre style='margin:0'>
</pre>