From patchwork Fri Apr 29 05:17:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Paul A. Patience" X-Patchwork-Id: 39003 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 7EA0027BBE9; Fri, 29 Apr 2022 06:19:16 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id E78AA27BBEA for ; Fri, 29 Apr 2022 06:19:15 +0100 (BST) Received: from localhost ([::1]:35402 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nkJ2B-0007ic-2b for patchwork@mira.cbaines.net; Fri, 29 Apr 2022 01:19:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60770) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nkJ12-00072J-Vl for guix-patches@gnu.org; Fri, 29 Apr 2022 01:18:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56693) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nkJ12-0000bh-LP for guix-patches@gnu.org; Fri, 29 Apr 2022 01:18:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nkJ12-00078N-G4 for guix-patches@gnu.org; Fri, 29 Apr 2022 01:18:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55179] [WIP PATCH 05/30] gnu: Add nqp-configure. Resent-From: "Paul A. Patience" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 29 Apr 2022 05:18:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55179 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 55179@debbugs.gnu.org Cc: "Paul A. Patience" Received: via spool by 55179-submit@debbugs.gnu.org id=B55179.165120947527358 (code B ref 55179); Fri, 29 Apr 2022 05:18:04 +0000 Received: (at 55179) by debbugs.gnu.org; 29 Apr 2022 05:17:55 +0000 Received: from localhost ([127.0.0.1]:50577 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nkJ0l-00076q-1F for submit@debbugs.gnu.org; Fri, 29 Apr 2022 01:17:55 -0400 Received: from mail-4317.proton.ch ([185.70.43.17]:48172) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nkJ0j-00076V-Ne for 55179@debbugs.gnu.org; Fri, 29 Apr 2022 01:17:46 -0400 Date: Fri, 29 Apr 2022 05:17:35 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apatience.com; s=protonmail2; t=1651209460; bh=txOunhBqGNHr3ZcVQpqBv6gwyVWcBuj/o3c3GNv7MoM=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:In-Reply-To: References:Feedback-ID:From:To:Cc:Date:Subject:Reply-To: Feedback-ID:Message-ID; b=gaJynV8T83TuNLxczpQ+pg+xXOsD45fccJXEiNOfcT30IETAlHGLjzT6DRbeS2pMP 5bGXy/0m6bME2em1tbgN8ViKwuQXqlNm91IDIym+JYx58Dsk7jb/YnkmUyLZjhyZ/4 LcaPoR5x/Yx1XhlTzj4UnbWnEkmRmf98iRxfilwd+C3h0qwV/9JhoLqCORm5vsO/IE NZmPMW4X7Z+hIxNNAOQ5fF90H+8GpsAa/muE8CXalFPFymyxeOJFjdoybp5JoJliyN 1K0arFbjwvmMa/SEuVBb8GZunh3t3FDfkhkfayBGCilmoxujWeEN6TFqUcwATgRyrw OTjpSFuf6TOIg== From: "Paul A. Patience" Message-ID: <20220429051700.373076-5-paul@apatience.com> In-Reply-To: <20220429051700.373076-1-paul@apatience.com> References: <20220429051700.373076-1-paul@apatience.com> Feedback-ID: 19227857:user:proton MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: "Paul A. Patience" Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/perl6.scm (nqp-configure): New variable. --- gnu/packages/perl6.scm | 54 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) -- 2.36.0 diff --git a/gnu/packages/perl6.scm b/gnu/packages/perl6.scm index 35652cda17..b510a584f2 100644 --- a/gnu/packages/perl6.scm +++ b/gnu/packages/perl6.scm @@ -98,6 +98,60 @@ (define-public moarvm @end itemize") (license license:artistic2.0))) +(define-public nqp-configure + (let ((commit "9b98931e0bfb8c4aac61590edf5074e63aa8ea4b")) + (package + (name "nqp-configure") + ;; NQP and Rakudo use the same version of nqp-configure. + ;; We may as well set nqp-configure's version to the same as theirs. + (version "2022.04") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/Raku/nqp-configure") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1vc1q11kjb964jal9dhgf5vwp371a3rfw7gj987n33kzli7a10n0")))) + (build-system perl-build-system) + (arguments + '(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'create-makefile-and-manifest + (lambda _ + (call-with-output-file "Makefile.PL" + (lambda (port) + (format port " +use ExtUtils::MakeMaker; +WriteMakefile(NAME => 'NQP::Config');\n"))) + (call-with-output-file "MANIFEST" + (lambda (port) + (format port " +LICENSE +MANIFEST +Makefile.PL +README.md +bin/make.nqp +doc/Macros.md +doc/NQP-Config.md +lib/NQP/Config.pm +lib/NQP/Config/Test.pm +lib/NQP/Macros.pm +t/10-config.t +t/20-macros.t +t/30-if-macro.t\n"))))) + (add-after 'patch-source-shebangs 'patch-more-shebangs + (lambda _ + (substitute* '("bin/make.nqp" + "lib/NQP/Config.pm") + (("/bin/sh") (which "sh")))))))) + (home-page "https://github.com/Raku/nqp-configure") + (synopsis "Configuration and build modules for NQP") + (description "This library provides support modules for NQP and Rakudo +@file{Configure.pl} scripts.") + (license license:artistic2.0)))) + (define-public nqp (package (name "nqp")