From 12335518ab39608d58370c85ff9f5384ad2aa5f7 Mon Sep 17 00:00:00 2001 From: MCApollo <34170230+MCApollo@users.noreply.github.com> Date: Sat, 20 Apr 2019 20:49:46 -0500 Subject: Ported in the homebrew-marauder for a hacky update/import system. TODO: Maybe add a license & fix up messy code. --- homebrew/moarvm/.beer | 46 +++++++++++++++++++++++++++++++++++ homebrew/moarvm/.make.sh-auto | 8 ++++++ homebrew/moarvm/_metadata/description | 1 + homebrew/moarvm/_metadata/homepage | 1 + homebrew/moarvm/_metadata/name | 1 + homebrew/moarvm/_metadata/version | 1 + homebrew/moarvm/download.sh | 1 + 7 files changed, 59 insertions(+) create mode 100644 homebrew/moarvm/.beer create mode 100644 homebrew/moarvm/.make.sh-auto create mode 100644 homebrew/moarvm/_metadata/description create mode 100644 homebrew/moarvm/_metadata/homepage create mode 100644 homebrew/moarvm/_metadata/name create mode 100644 homebrew/moarvm/_metadata/version create mode 100755 homebrew/moarvm/download.sh (limited to 'homebrew/moarvm') diff --git a/homebrew/moarvm/.beer b/homebrew/moarvm/.beer new file mode 100644 index 000000000..845287d54 --- /dev/null +++ b/homebrew/moarvm/.beer @@ -0,0 +1,46 @@ +{ + "name": "Moarvm", + "description": "Virtual machine for NQP and Rakudo Perl 6", + "url": "https://moarvm.org/releases/MoarVM-2019.03.tar.gz", + "mirror": null, + "homepage": "https://moarvm.org", + "depends": [ + { + "depend": "libatomic_ops", + "build-depend": false + }, + { + "depend": "libffi", + "build-depend": false + }, + { + "depend": "libtommath", + "build-depend": false + }, + { + "depend": "libuv", + "build-depend": false + } + ], + "resource": [], + "conflicts": [], + "patches": [], + "install": [ + "libffi = Formula[\"libffi\"]", + "ENV.prepend \"CPPFLAGS\", \"-I#{libffi.opt_lib}/libffi-#{libffi.version}/include\"", + "configure_args = %W[", + "--has-libatomic_ops", + "--has-libffi", + "--has-libtommath", + "--has-libuv", + "--optimize", + "--prefix=#{prefix}", + "]", + "system \"perl\", \"Configure.pl\", *configure_args", + "system \"make\", \"realclean\"", + "system \"make\"", + "system \"make\", \"install\"" + ], + "version": "2019.03", + "file": "moarvm.rb" +} \ No newline at end of file diff --git a/homebrew/moarvm/.make.sh-auto b/homebrew/moarvm/.make.sh-auto new file mode 100644 index 000000000..585b0f773 --- /dev/null +++ b/homebrew/moarvm/.make.sh-auto @@ -0,0 +1,8 @@ +pkg:setup +libffi = Formula["libffi"] +ENV.prepend "CPPFLAGS", "-I#{libffi.opt_lib}/libffi-#{libffi.version}/include" +configure_args = %W[--has-libatomic_ops --has-libffi --has-libtommath --has-libuv --optimize --prefix=#{prefix} ] +perl Configure.pl *configure_args +make realclean +make +make DESTDIR=${PKG_DEST} install diff --git a/homebrew/moarvm/_metadata/description b/homebrew/moarvm/_metadata/description new file mode 100644 index 000000000..f772a646d --- /dev/null +++ b/homebrew/moarvm/_metadata/description @@ -0,0 +1 @@ +Virtual machine for NQP and Rakudo Perl 6 diff --git a/homebrew/moarvm/_metadata/homepage b/homebrew/moarvm/_metadata/homepage new file mode 100644 index 000000000..1cad7fb5f --- /dev/null +++ b/homebrew/moarvm/_metadata/homepage @@ -0,0 +1 @@ +https://moarvm.org diff --git a/homebrew/moarvm/_metadata/name b/homebrew/moarvm/_metadata/name new file mode 100644 index 000000000..b29177faa --- /dev/null +++ b/homebrew/moarvm/_metadata/name @@ -0,0 +1 @@ +Moarvm diff --git a/homebrew/moarvm/_metadata/version b/homebrew/moarvm/_metadata/version new file mode 100644 index 000000000..78b7dcf0c --- /dev/null +++ b/homebrew/moarvm/_metadata/version @@ -0,0 +1 @@ +2019.03 diff --git a/homebrew/moarvm/download.sh b/homebrew/moarvm/download.sh new file mode 100755 index 000000000..87eb76087 --- /dev/null +++ b/homebrew/moarvm/download.sh @@ -0,0 +1 @@ +wget https://moarvm.org/releases/MoarVM-2019.03.tar.gz \ No newline at end of file -- cgit v1.2.3