Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions lang/MoarVM/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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-*
Expand Down
11 changes: 11 additions & 0 deletions lang/MoarVM/files/patch-dyncall.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- 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"
13 changes: 13 additions & 0 deletions lang/MoarVM/files/patch-syncsocket.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
--- src/io/syncsocket.c.orig 2022-04-24 22:49:11.000000000 +0800
Comment thread
barracuda156 marked this conversation as resolved.
+++ 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. */
16 changes: 8 additions & 8 deletions lang/nqp/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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

Expand All @@ -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
Expand Down
8 changes: 4 additions & 4 deletions lang/rakudo/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -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) \
Expand All @@ -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

Expand Down