diff --git a/lang/MoarVM/Portfile b/lang/MoarVM/Portfile index 116cced1a183f..c050cd5cc79a3 100644 --- a/lang/MoarVM/Portfile +++ b/lang/MoarVM/Portfile @@ -9,8 +9,8 @@ PortGroup legacysupport 1.1 legacysupport.newest_darwin_requires_legacy 10 name MoarVM -version 2022.02 -revision 1 +version 2022.04 +revision 0 categories lang devel platforms darwin license Artistic-2 MIT BSD ISC public-domain @@ -21,9 +21,9 @@ long_description MoarVM is a virtual machine built especially for \ homepage https://moarvm.org/ master_sites https://moarvm.org/releases/ -checksums rmd160 e0cb196e59ceb09bae3a9d68b4b6d463173d93ce \ - sha256 4f93cdce6b8a565a32282bb38cc971cefeb71f5d022c850c338ee8145574ee96 \ - size 14640429 +checksums rmd160 542658d58bcb490f20b0a15d68ce9c89d3fd2a53 \ + sha256 ae06f50ba5562721a4e5eb6457e2fea2d07eda63e2abaa8c939c9daf70774804 \ + size 14867431 depends_build port:perl5 \ port:pkgconfig @@ -34,7 +34,9 @@ depends_lib port:dyncall \ port:libtommath \ port:libuv -patchfiles patch-Configure.diff +patchfiles patch-Configure.diff \ + patch-dyncall.diff \ + patch-syncsocket.diff # https://trac.macports.org/ticket/53950 compiler.blacklist cc gcc-* apple-gcc-* llvm-gcc-* @@ -58,6 +60,11 @@ if {${os.platform} eq "darwin" && ${os.major} <= 10} { --no-mimalloc } +if {${build_arch} eq "ppc" || ${build_arch} eq "ppc64"} { + # Clang is broken on PPC, but Rosetta tries using it + compiler.blacklist-append *clang* +} + # https://github.com/MoarVM/MoarVM/issues/414 universal_variant no # Unsupported by Configure.pl diff --git a/lang/MoarVM/files/patch-dyncall.diff b/lang/MoarVM/files/patch-dyncall.diff new file mode 100644 index 0000000000000..034f248a5a11e --- /dev/null +++ b/lang/MoarVM/files/patch-dyncall.diff @@ -0,0 +1,12 @@ +# See: https://github.com/MoarVM/dyncall/pull/10 +--- 3rdparty/dyncall/configure.orig 2022-04-24 22:49:11.000000000 +0800 ++++ 3rdparty/dyncall/configure 2022-05-24 10:52:09.000000000 +0800 +@@ -123,7 +123,7 @@ + ARCHS="-arch i386 -arch x86_64 -arch ppc" + ;; + 10.6.*) # == snow leopard (10.6.*) +- ARCHS="-arch i386 -arch x86_64" # no more ppc ++ ARCHS="-arch i386 -arch x86_64 -arch ppc" # ppc supported in Rosetta + ;; + 10.[789].*|10.1[0123].*|10.1[0123]) # >= lion (10.7.*), <= high sierra (10.13.*) + ARCHS="-arch x86_64 -arch i386" diff --git a/lang/MoarVM/files/patch-syncsocket.diff b/lang/MoarVM/files/patch-syncsocket.diff new file mode 100644 index 0000000000000..ca021b0784d35 --- /dev/null +++ b/lang/MoarVM/files/patch-syncsocket.diff @@ -0,0 +1,14 @@ +# See: https://github.com/MoarVM/MoarVM/issues/1704 +--- src/io/syncsocket.c.orig 2022-04-24 22:49:11.000000000 +0800 ++++ src/io/syncsocket.c 2022-05-24 11:31:25.000000000 +0800 +@@ -5,6 +5,10 @@ + #define snprintf _snprintf + #endif + ++#ifndef AI_NUMERICSERV ++#define AI_NUMERICSERV 0 ++#endif ++ + /* Assumed maximum packet size. If ever changing this to something beyond a + * 16-bit number, then make sure to change the receive offsets in the data + * structure below. */ diff --git a/lang/nqp/Portfile b/lang/nqp/Portfile index 1f5a04c3f0894..feb188b25f828 100644 --- a/lang/nqp/Portfile +++ b/lang/nqp/Portfile @@ -3,12 +3,12 @@ PortSystem 1.0 PortGroup github 1.0 -github.setup Raku nqp 2022.02 +github.setup Raku nqp 2022.04 revision 0 description A lightweight Perl-6 like language for virtual machines long_description This is "Not Quite Perl" -- a lightweight Perl 6-like \ environment for virtual machines. The key feature of \ - NQP is that it's designed to be a very small environment \ + NQP is that itʼs designed to be a very small environment \ (as compared with, say, perl6 or Rakudo) and is focused \ on being a high-level way to create compilers and \ libraries for virtual machines (such as the Parrot \ @@ -19,12 +19,11 @@ categories lang devel license Artistic-2 platforms darwin -github.tarball_from \ - releases +github.tarball_from releases -checksums rmd160 ca8fb8c19fc22fa2a182f526f7e63b12515a569e \ - sha256 25d3c99745cd84f4049a9bd9cf26bb5dc817925abaafe71c9bdb68841cdb18b1 \ - size 5220819 +checksums rmd160 74ff31649a656fcbc7ba55c48a18104627e32a24 \ + sha256 556d458e25d3c0464af9f04ea3e92bbde10046066b329188a88663943bd4e79c \ + size 5222049 depends_build port:perl5 @@ -36,7 +35,8 @@ depends_lib port:MoarVM configure.cmd ${prefix}/bin/perl Configure.pl configure.args --prefix=${prefix} \ - --backends=moar + --backends=moar \ + --with-moar=${prefix}/bin/moar # https://github.com/MoarVM/MoarVM/issues/414 universal_variant no diff --git a/lang/rakudo/Portfile b/lang/rakudo/Portfile index 3994fb5f4ac94..61744c40c1987 100644 --- a/lang/rakudo/Portfile +++ b/lang/rakudo/Portfile @@ -3,7 +3,7 @@ PortSystem 1.0 PortGroup github 1.0 -github.setup rakudo rakudo 2022.02 +github.setup rakudo rakudo 2022.04 revision 0 description Perl6 compiler long_description Rakudo is a compiler for the Perl 6 language (version 6.d) \ @@ -20,9 +20,9 @@ homepage https://rakudo.org/ github.tarball_from \ releases -checksums rmd160 a6de8c82f087403fa56886016f87d4228093e8f5 \ - sha256 6a6e9dbcc6d9a1610a34c6ec67e2d3f694d7b33e9e0a0f224543089fa7f71332 \ - size 6140289 +checksums rmd160 a4598208cc794544a2621898f5752865a65d9f02 \ + sha256 7e13a8cc927efbe86b8ff7b19155a60a6f6e2b6e2952bd690dcacef2d02a1c74 \ + size 6004940 depends_build port:perl5