[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
09/35: gnu: nqp: Update to 2022.04.
From: |
guix-commits |
Subject: |
09/35: gnu: nqp: Update to 2022.04. |
Date: |
Mon, 4 Mar 2024 04:53:39 -0500 (EST) |
efraim pushed a commit to branch master
in repository guix.
commit f3f39988b5da46ff7010179626f530471f9c7d5d
Author: Paul A. Patience <paul@apatience.com>
AuthorDate: Fri Apr 29 05:17:38 2022 +0000
gnu: nqp: Update to 2022.04.
* gnu/packages/perl6.scm (nqp): Update to 2022.04.
[arguments]: Add 'remove-calls-to-git' and 'fix-paths' phases. Remove
obsolete files from 'patch-more-shebangs' phase and sort the
rest. Remove 'patch-source-date' and 'remove-failing-test' phases.
[native-inputs]: Add nqp-configure.
[home-page]: Update.
[description]: Replace mentions of Perl with Raku.
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
---
gnu/packages/perl6.scm | 56 +++++++++++++++++++++++++++-----------------------
1 file changed, 30 insertions(+), 26 deletions(-)
diff --git a/gnu/packages/perl6.scm b/gnu/packages/perl6.scm
index b510a584f2..0e0c352892 100644
--- a/gnu/packages/perl6.scm
+++ b/gnu/packages/perl6.scm
@@ -155,15 +155,14 @@ t/30-if-macro.t\n")))))
(define-public nqp
(package
(name "nqp")
- (version "2019.03")
+ (version "2022.04")
(source
(origin
(method url-fetch)
- (uri (string-append "https://rakudo.perl6.org/downloads/nqp/nqp-"
- version ".tar.gz"))
+ (uri (string-append "https://github.com/Raku/nqp/releases/download/"
+ version "/nqp-" version ".tar.gz"))
(sha256
- (base32
- "183zhll13fx416s3hkg4bkvib77kyr857h0nydgrl643fpacxp83"))
+ (base32 "1777shxr8qw6m2492ckb0r301qdx5gls6kphz554dh6k4n74avam"))
(modules '((guix build utils)))
(snippet
'(delete-file-recursively "3rdparty"))))
@@ -171,25 +170,28 @@ t/30-if-macro.t\n")))))
(arguments
'(#:phases
(modify-phases %standard-phases
+ (add-after 'unpack 'remove-calls-to-git
+ (lambda _
+ (invoke "perl" "-ni" "-e"
+ "print if not /^BEGIN {/ .. /^}/"
+ "Configure.pl")))
+ (add-after 'remove-calls-to-git 'fix-paths
+ (lambda _
+ (substitute* "tools/build/gen-version.pl"
+ (("catfile\\(\\$libdir, 'MAST', \\$_\\)")
+ (string-append "catfile('"
+ (assoc-ref %build-inputs "moarvm")
+ "/share/nqp/lib"
+ "', 'MAST', $_)")))))
(add-after 'patch-source-shebangs 'patch-more-shebangs
(lambda _
- (substitute* '("tools/build/install-jvm-runner.pl.in"
+ (substitute* '("t/nqp/111-spawnprocasync.t"
+ "t/nqp/113-run-command.t"
"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")
+ "tools/build/install-jvm-runner.pl.in")
(("/bin/sh") (which "sh")))))
- (add-after 'unpack 'patch-source-date
- (lambda _
- (substitute* "tools/build/gen-version.pl"
- (("gmtime") "gmtime(0)"))))
- (add-after 'unpack 'remove-failing-test
- ;; One subtest fails for unknown reasons
- (lambda _
- (delete-file "t/nqp/019-file-ops.t")))
(replace 'configure
(lambda* (#:key inputs outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out"))
@@ -198,18 +200,20 @@ t/30-if-macro.t\n")))))
"--backends=moar"
"--with-moar" (string-append moar "/bin/moar")
"--prefix" out)))))))
+ (native-inputs
+ (list nqp-configure))
(inputs
(list moarvm))
- (home-page "https://github.com/perl6/nqp")
+ (home-page "https://github.com/Raku/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 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 like MoarVM, the JVM, and others.
+ (description "This is \"Not Quite Perl\" -- a lightweight Raku-like
+environment for virtual machines. The key feature of NQP is that it's
+designed to be a very small environment (as compared with, say, 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 small a
-runtime footprint as it can, while still providing a Perl 6 object model and
+Unlike a full-fledged implementation of Raku, NQP strives to have as small a
+runtime footprint as it can, while still providing a Raku object model and
regular expression engine for the virtual machine.")
(license license:artistic2.0)))
- 17/35: gnu: perl6-json-fast: Update to 0.17., (continued)
- 17/35: gnu: perl6-json-fast: Update to 0.17., guix-commits, 2024/03/04
- 21/35: gnu: perl6-json-unmarshal: Reindent., guix-commits, 2024/03/04
- 24/35: gnu: perl6-meta6: Update to 0.0.26., guix-commits, 2024/03/04
- 01/35: gnu: vim: Update to 9.1.0146., guix-commits, 2024/03/04
- 04/35: gnu: moarvm: Remove trailing boolean., guix-commits, 2024/03/04
- 03/35: gnu: imv: Update to 4.5.0., guix-commits, 2024/03/04
- 12/35: gnu: perl6-zef: Update to 0.13.8., guix-commits, 2024/03/04
- 15/35: gnu: perl6-grammar-profiler-simple: Perl -> Raku., guix-commits, 2024/03/04
- 14/35: gnu: perl6-grammar-debugger: Perl -> Raku., guix-commits, 2024/03/04
- 05/35: gnu: nqp: Remove trailing booleans., guix-commits, 2024/03/04
- 09/35: gnu: nqp: Update to 2022.04.,
guix-commits <=
- 23/35: gnu: perl6-license-spdx: Update to 3.16.0., guix-commits, 2024/03/04
- 19/35: gnu: perl6-json-name: Update to 0.0.6., guix-commits, 2024/03/04
- 30/35: gnu: perl6-uri: Update to 0.3.5., guix-commits, 2024/03/04
- 33/35: gnu: Add perl6-format-lisp., guix-commits, 2024/03/04
- 27/35: gnu: perl6-xml-writer: Perl -> Raku., guix-commits, 2024/03/04
- 28/35: gnu: perl6-svg: Perl -> Raku., guix-commits, 2024/03/04
- 22/35: gnu: perl6-json-class: Update to 0.0.18., guix-commits, 2024/03/04
- 11/35: gnu: perl6-tap-harness: Update to 0.3.5., guix-commits, 2024/03/04
- 35/35: gnu: moarvm: Fix building on powerpc-linux., guix-commits, 2024/03/04
- 18/35: gnu: Add perl6-json-optin., guix-commits, 2024/03/04