From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:39169) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h6BaJ-0006Jt-O0 for guix-patches@gnu.org; Tue, 19 Mar 2019 06:03:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h6BaI-0006Ei-DE for guix-patches@gnu.org; Tue, 19 Mar 2019 06:03:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:36021) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h6BaH-0006ED-V4 for guix-patches@gnu.org; Tue, 19 Mar 2019 06:03:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1h6BaH-0003sm-Og for guix-patches@gnu.org; Tue, 19 Mar 2019 06:03:01 -0400 Subject: [bug#34831] [PATCH 02/25] gnu: Add nqp. Resent-Message-ID: Date: Tue, 19 Mar 2019 12:02:15 +0200 From: Efraim Flashner Message-ID: <20190319100215.GE1141@macbook41> References: <20190312201608.30892-1-efraim@flashner.co.il> <20190312202014.31224-2-efraim@flashner.co.il> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="C94crkcyjafcjHxo" Content-Disposition: inline In-Reply-To: <20190312202014.31224-2-efraim@flashner.co.il> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 34831@debbugs.gnu.org --C94crkcyjafcjHxo Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Mar 12, 2019 at 10:19:51PM +0200, Efraim Flashner wrote: > * gnu/packages/perl6.scm (nqp): New variable. > --- > gnu/packages/perl6.scm | 68 ++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 68 insertions(+) >=20 > diff --git a/gnu/packages/perl6.scm b/gnu/packages/perl6.scm > index 7e92c865aa..344bb4efda 100644 > --- a/gnu/packages/perl6.scm > +++ b/gnu/packages/perl6.scm > @@ -19,6 +19,7 @@ > (define-module (gnu packages perl6) > #:use-module ((guix licenses) #:prefix license:) > #:use-module (guix download) > + #:use-module (guix git-download) > #:use-module (guix packages) > #:use-module (guix build-system perl) > #:use-module (gnu packages bdw-gc) > @@ -91,3 +92,70 @@ exceptions, continuations, runtime loading of code, bi= g integers and interfacing > with native libraries. > @end itemize") > (license license:artistic2.0))) > + > +(define-public nqp > + (package > + (name "nqp") > + (version "2018.12") > + (source > + (origin > + (method git-fetch) > + (uri (git-reference > + (url "https://github.com/perl6/nqp.git") > + (commit version))) > + (file-name (git-file-name name version)) This should be downloaded from here: https://rakudo.perl6.org/downloads/nqp/ > + (sha256 > + (base32 > + "1bwvyfyhirqi46p0j5m1ri98rxbfks8wc5amiaqwqyqq7x1l25xd")) > + (modules '((guix build utils))) > + (snippet > + '(begin > + (delete-file-recursively "3rdparty") #t)))) > + (build-system perl-build-system) > + (arguments > + '(#:phases > + (modify-phases %standard-phases > + (add-after 'patch-source-shebangs 'patch-more-shebangs > + (lambda _ > + (substitute* '("tools/build/install-jvm-runner.pl.in" > + "tools/build/gen-js-cross-runner.pl" > + "tools/build/gen-js-runner.pl" > + "tools/build/install-js-runner.pl" > + "tools/build/install-moar-runner.pl" > + "tools/build/gen-moar-runner.pl" > + "t/nqp/111-spawnprocasync.t" > + "t/nqp/113-run-command.t") > + (("/bin/sh") (which "sh"))) > + #t)) > + (add-after 'unpack 'patch-source-date > + (lambda _ > + (substitute* "tools/build/gen-version.pl" > + (("gmtime") "gmtime(0)")) > + #t)) > + (add-after 'unpack 'remove-failing-test > + ;; One subtest fails for unknown reasons can we delete/skip just the one subtest? > + (lambda _ > + (delete-file "t/nqp/019-file-ops.t") > + #t)) > + (replace 'configure > + (lambda* (#:key inputs outputs #:allow-other-keys) > + (let ((out (assoc-ref outputs "out")) > + (moar (assoc-ref inputs "moarvm"))) > + (invoke "perl" "Configure.pl" > + "--backends=3Dmoar" > + "--with-moar" (string-append moar "/bin/moar") > + "--prefix" out))))))) > + (inputs > + `(("moarvm" ,moarvm))) > + (home-page "https://github.com/perl6/nqp") > + (synopsis "Not Quite Perl") > + (description "This is \"Not Quite Perl\" -- a lightweight Perl 6-like > +environment for virtual machines. The key feature of NQP is that it's d= esigned > +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 like MoarVM, the JVM, and others. > + > +Unlike a full-fledged implementation of Perl 6, NQP strives to have as s= mall a > +runtime footprint as it can, while still providing a Perl 6 object model= and > +regular expression engine for the virtual machine.") > + (license license:artistic2.0))) > --=20 > 2.21.0 >=20 --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --C94crkcyjafcjHxo Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAlyQviQACgkQQarn3Mo9 g1EgtA//ThdGFEynpyVFO6KouTqyCbHVTek92Od20/WxkbbWyYhXX0XqSyuV5pkK HkDlJ9A2mJjtZNx9BNssGnQMSKkOtqe0hbUGheRA5wG/F+1iZ7tlLIISWRLDqUeb 8j+DgRXmE7SQF5bkYA7Z8He87nOgGAkEPdZqxFqTrab3xTUgTvMrP7IQXvUe5fwa 99iv2ep17wKUtkxtXsAv6uFIqdj5Wv76bqTjh8ZalNmHyQDU7VvAHLFlptn0ZK5C 00SzrQ/lU1d/qDHFA2xkX+Heyej7nUVtKyWEjCl3IYcw4PdDiH5hmdUz4EqSfqou FFMBPhVMVgI3d2KxWHLCBz0b6IX9uSyPQrIoD5MQFnsly1I2nh5YHYqMbLtlMePf yBwraLASk/+46H8H+cU+amhjrYE6RZ3QlTgpa1NYr0+cbpm6uexjkCnx6NbhN2YA N+Le/EscMYFthln0hc+1prh33e9mI6VMAM8mqt9X1NbZB2+lfEqqaaiUXoeVDBnu dJ6LXeOOxK6lhsmZXMDqliU7rnWyWLXe+actrc0HIiwaHpD893IBHdRlOypAQty3 BkZd+k+Tvsbb2Moybaydy73IWsBFaySTAtoBffL6+dojXiAnsmLtLM6Lj9LDwR+8 xDlEJSx3LLB6dYujWPxcHp6Ih/oaIqxY6P0E9OztBgukOW7AwCI= =XmQ5 -----END PGP SIGNATURE----- --C94crkcyjafcjHxo--