[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/25: gnu: Add rakudo.
From: |
guix-commits |
Subject: |
03/25: gnu: Add rakudo. |
Date: |
Tue, 12 Mar 2019 16:21:32 -0400 (EDT) |
efraim pushed a commit to branch wip-perl6
in repository guix.
commit cb858f1b506883e7fc2650909e273991546789a0
Author: Efraim Flashner <address@hidden>
Date: Sun Feb 24 20:44:44 2019 +0200
gnu: Add rakudo.
* gnu/packages/perl6.scm (rakudo): New variable.
---
gnu/packages/perl6.scm | 70 +++++++++++++++++++++++++++++++++++++++++++++++++-
1 file changed, 69 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/perl6.scm b/gnu/packages/perl6.scm
index 344bb4e..9659361 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))
(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))
+ (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=moar"
+ "--with-nqp" (string-append nqp "/bin/nqp")
+ "--prefix" out))))
+ ;; This is the recommended tool to use for installing perl6 modules as
+ ;; a distribution. See: https://github.com/ugexe/zef/issues/117
+ (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"))))
+ #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.")
+ (license license:artistic2.0)))
- branch wip-perl6 created (now b9cc5a8), guix-commits, 2019/03/12
- 02/25: gnu: Add nqp., guix-commits, 2019/03/12
- 03/25: gnu: Add rakudo.,
guix-commits <=
- 01/25: gnu: Add moarvm., guix-commits, 2019/03/12
- 07/25: gnu: Add perl6-uri., guix-commits, 2019/03/12
- 08/25: gnu: Add perl6-json-fast., guix-commits, 2019/03/12
- 14/25: gnu: Add perl6-license-spdx., guix-commits, 2019/03/12
- 12/25: gnu: Add perl6-json-class., guix-commits, 2019/03/12
- 25/25: gnu: Add perl6-json., guix-commits, 2019/03/12
- 18/25: gnu: Add perl6-svg-plot., guix-commits, 2019/03/12
- 24/25: gnu: Add perl6-mime-base64., guix-commits, 2019/03/12
- 22/25: gnu: Add perl6-grammar-profiler-simple., guix-commits, 2019/03/12
- 06/25: gnu: Add perl6-zef., guix-commits, 2019/03/12