From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:39510) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h6BcJ-0006ew-Ec for guix-patches@gnu.org; Tue, 19 Mar 2019 06:05:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h6BcH-00087k-EA for guix-patches@gnu.org; Tue, 19 Mar 2019 06:05:07 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:36026) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h6BcE-000846-VH for guix-patches@gnu.org; Tue, 19 Mar 2019 06:05:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1h6BcE-0003wF-GL for guix-patches@gnu.org; Tue, 19 Mar 2019 06:05:02 -0400 Subject: [bug#34831] [PATCH 03/25] gnu: Add rakudo. Resent-Message-ID: Date: Tue, 19 Mar 2019 12:04:13 +0200 From: Efraim Flashner Message-ID: <20190319100413.GF1141@macbook41> References: <20190312201608.30892-1-efraim@flashner.co.il> <20190312202014.31224-3-efraim@flashner.co.il> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="m1UC1K4AOz1Ywdkx" Content-Disposition: inline In-Reply-To: <20190312202014.31224-3-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 --m1UC1K4AOz1Ywdkx Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Mar 12, 2019 at 10:19:52PM +0200, Efraim Flashner wrote: > * gnu/packages/perl6.scm (rakudo): New variable. > --- > gnu/packages/perl6.scm | 70 +++++++++++++++++++++++++++++++++++++++++- > 1 file changed, 69 insertions(+), 1 deletion(-) >=20 > diff --git a/gnu/packages/perl6.scm b/gnu/packages/perl6.scm > index 344bb4efda..9659361309 100644 > --- a/gnu/packages/perl6.scm > +++ b/gnu/packages/perl6.scm > @@ -25,7 +25,8 @@ > #:use-module (gnu packages bdw-gc) > #:use-module (gnu packages libevent) > #:use-module (gnu packages libffi) > - #:use-module (gnu packages pkg-config)) > + #:use-module (gnu packages pkg-config) > + #:use-module (gnu packages tls)) > =20 > (define-public moarvm > (package > @@ -159,3 +160,70 @@ Unlike a full-fledged implementation of Perl 6, NQP = strives to have as small 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))) > + > +(define-public rakudo > + (package > + (name "rakudo") > + (version "2018.12") > + (source > + (origin > + (method git-fetch) > + (uri (git-reference > + (url "https://github.com/rakudo/rakudo.git") > + (commit version))) > + (file-name (git-file-name name version)) This can also be downloaded from https://rakudo.perl6.org/downloads/rakudo/ > + (sha256 > + (base32 > + "1g8n1vmpi3g6qd0bj59lwgmcqdwlyg3nciyxbdnq7bw7qp12k0p4")))) > + (build-system perl-build-system) > + (arguments > + '(#:phases > + (modify-phases %standard-phases > + (add-after 'unpack 'patch-source-date > + (lambda _ > + (substitute* "tools/build/gen-version.pl" > + (("gmtime") "gmtime(0)")) > + #t)) > + (add-after 'patch-source-shebangs 'patch-more-shebangs > + (lambda _ > + (substitute* '("tools/build/create-js-runner.pl" > + "tools/build/create-moar-runner.p6" > + "tools/build/create-jvm-runner.pl" > + "src/core/Proc.pm6") > + (("/bin/sh") (which "sh"))) > + #t)) > + (replace 'configure > + (lambda* (#:key inputs outputs #:allow-other-keys) > + (let ((out (assoc-ref outputs "out")) > + (nqp (assoc-ref inputs "nqp"))) > + (invoke "perl" "./Configure.pl" > + "--backend=3Dmoar" > + "--with-nqp" (string-append nqp "/bin/nqp") > + "--prefix" out)))) > + ;; This is the recommended tool to use for installing perl6 mod= ules as > + ;; a distribution. See: https://github.com/ugexe/zef/issues/117 "This is the recommended tool for distro maintainers to install perl6 modules systemwide" > + (add-after 'install 'install-dist-tool > + (lambda* (#:key outputs #:allow-other-keys) > + (let* ((out (assoc-ref outputs "out")) > + (dest (string-append out "/share/perl6/tools"))) > + (install-file "tools/install-dist.p6" dest) > + (substitute* (string-append dest "/install-dist.p6") > + (("/usr/bin/env perl6") > + (string-append out "/bin/perl6")))) Should we install the rest of the 'dist' folder and the 'resources' folder? > + #t))))) > + (inputs > + `(("moarvm" ,moarvm) > + ("nqp" ,nqp) > + ("openssl" ,openssl))) > + (home-page "https://rakudo.org/") > + (native-search-paths > + (list (search-path-specification > + (variable "PERL6LIB") > + (separator ",") > + (files '("share/perl6/lib" > + "share/perl6/site/lib" > + "share/perl6/vendor/lib"))))) > + (synopsis "Perl 6 Compiler") > + (description "Rakudo Perl is a compiler that implements the Perl 6 > +specification and runs on top of several virtual machines.") Can this be lengthened? > + (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 --m1UC1K4AOz1Ywdkx Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAlyQvpwACgkQQarn3Mo9 g1G3nBAAnM6ik3WjgovwoAOM4b6AYSrKVvdfD5/xkZIpEOrtkcPb7qlPJO301/la Aq3kRNS8+XjMYvjrk69u7DeHkRPutfDPwftS9gOrRNeSkHwLwxN+8fF1cTAj/IGo vwDJsYiCdwJnOwWULbOUT8EkTBRgaeJot1R5YmevcLrqdaPt5PhN+HB8fIS54Us0 Ew5MUIr5UARJRara2itWr6dUSR9wmhYxYtY7X37KHUGBoJGDO24vqaeXwEMObnAU 3pNOcps60valoqQF6P7Vjv8Sipfoyjczz77vDgURJVdyI8F0nAtFUT8QAbySZq57 k09zndFFugMXj8We3Nlmmja0BJ6yEEpQmv67dftdPFmJwxWln0E0Eye47VenJQy/ iNOeodu/4oFqt7N1MVSnAK3ZfNCz5VsPdOqkDXnpK4WtTCF74E092r3LHCA7KExo XV/aO/uakbZMeTS0lL8VVUpDtXYqHk578Rs3xC8eSZO2tq/6w2l/ZmZklHr3ak1S RB9ftEK6NhwR1I8QCt4R8NZUKEuVHi/hQu0pCRxS9dzTPycrGBoZeZGS9DGg9nXd FfzQnf2KYExTsUepuUIznZXgjbCOxghUn7qIRo2RteD9v/stZcoJmQLQFtdLFv8m +5xPcqMwzAmBpDaIBkBiIRgC7Afh7GYZ7WNb2nBj5MBbFDpHDSM= =28/B -----END PGP SIGNATURE----- --m1UC1K4AOz1Ywdkx--