From patchwork Tue Nov 12 20:00:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Evgeny Pisemsky X-Patchwork-Id: 70330 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 4E3F027BBEA; Tue, 12 Nov 2024 20:01:17 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-6.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,FROM_SUSPICIOUS_NTLD,MAILING_LIST_MULTI, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL, RCVD_IN_VALIDITY_SAFE,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham 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 3BB4E27BBE2 for ; Tue, 12 Nov 2024 20:01:16 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tAx4T-00032I-CY; Tue, 12 Nov 2024 15:01:05 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tAx4Q-000320-Vd for guix-patches@gnu.org; Tue, 12 Nov 2024 15:01:03 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tAx4Q-0004rA-Mr for guix-patches@gnu.org; Tue, 12 Nov 2024 15:01:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=P1Z8i81s3228M+59OWtubAw2efJVd6JVGvd9FSNIYQI=; b=EGSfulm5nlkHjkhKHK0VlKc0t4e9GCQKS9/3BsRXZjCXICpAQKi3znI+hmbM9gUIMpsMq7J8pAoba1HicBPDm+I7MRbdzCDSRittTqTWfeiHaWGiglusvMqEjobUZC3wliwwagN5NTfg62I0wRJ7GTgdgA8BRPeUEdU10iNe/c63n0qtYAS0bpKDVe1YG1qacFHkbnmEDOirNkirZweJiViE0GYRtEfP6WzAPdk98UzUKSSkkxMXxpEG2B85K8b007dcYhG+lnasMZokju6dRjNTiGsR+vqKOXOop91d0LHb5jCMd66gPQo+AFpVsP3t1VtshBwllwN5uj0I58f2yA==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tAx4Q-0001sW-BQ for guix-patches@gnu.org; Tue, 12 Nov 2024 15:01:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#74310] [PATCH] gnu: Add potato-make. Resent-From: Evgeny Pisemsky Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 12 Nov 2024 20:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74310 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 74310@debbugs.gnu.org Cc: =?utf-8?q?No=C3=A9?= Lopez Received: via spool by 74310-submit@debbugs.gnu.org id=B74310.17314416427175 (code B ref 74310); Tue, 12 Nov 2024 20:01:02 +0000 Received: (at 74310) by debbugs.gnu.org; 12 Nov 2024 20:00:42 +0000 Received: from localhost ([127.0.0.1]:39601 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tAx45-0001rf-Nj for submit@debbugs.gnu.org; Tue, 12 Nov 2024 15:00:42 -0500 Received: from roxy-shared.hosting.energy ([137.74.182.160]:59439 helo=roxy.hosting.energy) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tAx42-0001rR-TG for 74310@debbugs.gnu.org; Tue, 12 Nov 2024 15:00:40 -0500 Received: from [212.233.84.138] (helo=laptop) by roxy.hosting.energy with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.97.1) (envelope-from ) id 1tAx3u-000000002JJ-0IuV; Tue, 12 Nov 2024 23:00:30 +0300 From: Evgeny Pisemsky In-Reply-To: <878qtp5w07.fsf@xn--no-cja.eu> (" =?utf-8?q?No=C3=A9?= Lopez"'s message of "Mon, 11 Nov 2024 21:57:28 +0100") References: <878qtp5w07.fsf@xn--no-cja.eu> Date: Tue, 12 Nov 2024 23:00:30 +0300 Message-ID: <871pzgp6ht.fsf@pisemsky.site> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 X-Scanned-By: ClamAV 0.101.4; Tue, 12 Nov 2024 23:00:30 +0300 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: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches Hi! Thanks for review. Here is the updated patch. From b7084374dac32a3f39f7991fbdede65bb9ea0202 Mon Sep 17 00:00:00 2001 Message-ID: From: Evgeny Pisemsky Date: Tue, 12 Nov 2024 22:55:22 +0300 Subject: [PATCH] gnu: Add potato-make. * gnu/packages/build-tools.scm (potato-make): New variable. Change-Id: I86843b4001298ee984e6d1c35b59dc3b2e51d97f --- gnu/packages/build-tools.scm | 47 ++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/gnu/packages/build-tools.scm b/gnu/packages/build-tools.scm index 21df25e4f5..c32dacac59 100644 --- a/gnu/packages/build-tools.scm +++ b/gnu/packages/build-tools.scm @@ -15,6 +15,7 @@ ;;; Copyright © 2021 qblade ;;; Copyright © 2021, 2023, 2024 Maxim Cournoyer ;;; Copyright © 2022, 2023 Juliana Sims +;;; Copyright © 2024 Evgeny Pisemsky ;;; ;;; This file is part of GNU Guix. ;;; @@ -41,6 +42,7 @@ (define-module (gnu packages build-tools) #:use-module (guix git-download) #:use-module (guix build-system cmake) #:use-module (guix build-system copy) + #:use-module (guix build-system guile) #:use-module (guix modules) #:use-module (gnu packages) #:use-module (gnu packages adns) @@ -54,6 +56,7 @@ (define-module (gnu packages build-tools) #:use-module (gnu packages cppi) #:use-module (gnu packages elf) #:use-module (gnu packages gcc) + #:use-module (gnu packages guile) #:use-module (gnu packages linux) #:use-module (gnu packages lisp) #:use-module (gnu packages logging) @@ -1042,3 +1045,47 @@ (define-public pdpmake ;; pdpmake is distributed under the public domain, but the sources include ;; tests under the GPL license version 2. (license (list license:gpl2 license:public-domain)))) + +(define-public potato-make + ;; No releases. + (let ((commit "e8c09ce1f6a33c013b27961b0a07f991db33e6fb") + (revision "0")) + (package + (name "potato-make") + (version (git-version "0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/spk121/potato-make") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0axgrkqdfip5f2bp7d2dprd74g58lyc0c7lgg2m93k5jqn1lpbmj")) + ;; Delete files of the seemingly unfinished pmake program. + (snippet '(begin + (delete-file "pmake") + (delete-file "documents/pmake.org") + (delete-file "make/main.scm") + (rmdir "documents") + (rmdir "make"))))) + (build-system guile-build-system) + (arguments + (list + #:phases #~(modify-phases %standard-phases + (add-after 'build 'check + (lambda _ + ;; Delete test referencing nonexistent file. + (delete-file "tests/parse.sh") + (for-each (lambda (f) + (invoke "guile" "-L" "." "-s" f)) + (find-files "tests"))))))) + (native-inputs (list guile-3.0)) + (home-page "https://github.com/spk121/potato-make") + (synopsis "Library to write makefiles in Guile Scheme") + (description + "Potato Make is a scheme library that aims to simplify the task of +maintaining, updating, and regenerating programs. It is inspired by +the POSIX make utility and allows to write a build script in Guile +Scheme.") + (license license:expat)))) base-commit: b10ce47d8be5b6c15987f4e1d93b3bd71b1eb220 -- 2.46.0