From patchwork Fri Sep 4 04:06:13 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jesse Gibbons X-Patchwork-Id: 23886 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 E360A27BBE9; Fri, 4 Sep 2020 05:07:08 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL,T_DKIM_INVALID,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 194D227BBE8 for ; Fri, 4 Sep 2020 05:07:08 +0100 (BST) Received: from localhost ([::1]:49664 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kE30F-00012M-41 for patchwork@mira.cbaines.net; Fri, 04 Sep 2020 00:07:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58080) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kE30A-00011a-77 for guix-patches@gnu.org; Fri, 04 Sep 2020 00:07:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:53493) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kE309-0007CM-Tb for guix-patches@gnu.org; Fri, 04 Sep 2020 00:07:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kE309-0004gN-OO for guix-patches@gnu.org; Fri, 04 Sep 2020 00:07:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#42458] [PATCH] gnu: Add npiet. Resent-From: Jesse Gibbons Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 04 Sep 2020 04:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42458 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Efraim Flashner Cc: 42458@debbugs.gnu.org, Marius Bakke Received: via spool by 42458-submit@debbugs.gnu.org id=B42458.159919240117972 (code B ref 42458); Fri, 04 Sep 2020 04:07:01 +0000 Received: (at 42458) by debbugs.gnu.org; 4 Sep 2020 04:06:41 +0000 Received: from localhost ([127.0.0.1]:36806 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kE2zl-0004fk-Bm for submit@debbugs.gnu.org; Fri, 04 Sep 2020 00:06:41 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:37307) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kE2zf-0004fS-Du for 42458@debbugs.gnu.org; Fri, 04 Sep 2020 00:06:35 -0400 Received: by mail-pg1-f196.google.com with SMTP id 5so3663708pgl.4 for <42458@debbugs.gnu.org>; Thu, 03 Sep 2020 21:06:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language; bh=SXYzqF5OedP+Ir86wqlqZLuWom6AWtVVU/NNayJARAc=; b=ImVAWENLoj23x/Kc2t4oqajQt+NqveXyv40zKvVFXF5QhBgcIoK7o73EgggB9zFOHa eu/labGkk7/F8Vg4ha6UHg0sahqJqH83ETIYhJavpzrSqiXR39OZuh627hlelkI916sE eWqeLLap7/zP9X/Bf4uJmpbHsbzob8vVCo2q74BM30wrv56ZLW+4fnEu4hCeja3/Ckgr QgYRpukhl3YtnEvB+M0JkhEC7SNmBXXevT2K2H65SbozP+wngoDv6twOg27S7C3X3Gex cxmcoyYIDmc7eRsY2t49SIGz0miR+KTe81JLApGTLw6Yx7UvVg+QhHqS99UXQh6j6ZYV RF3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=SXYzqF5OedP+Ir86wqlqZLuWom6AWtVVU/NNayJARAc=; b=eHgQMAcvr7yUAmdSaCaEcSs908lAg83mT6eVuCKVpAfywrZQWi5i9b7Sw4DPfJB9gS mzYxXUHmNb+RgK0B7ZA09Rp8CLTg4/22dSh1FOymyOq0r1e0NfhzyxdvwYRpWSFJtqRT OusdUpazJDoHn8VF/VIaC1whMP+J66r5Nfd7D5xJWAEhXLDQmpckPItKPy4IIbV5BZBq IkJy3x0IxS0T38qURIj2CADex6R5NWWKUwhujxqMvA35BRCFVbj/UDW1jKMoTFbrMLWK Cf7j0QTF9Ct1NYvxy+WjpmQPQrOGEdnVl4Zr4eIfQITqTnrGzHUqh+FzG5bFKaxIFzZ3 qxkQ== X-Gm-Message-State: AOAM533uS9XloN5Ht+0Ps3t1C2vyzEFpgFzb9bMhmo/yF/UtY079bUMu 3eZv986sLH3esEocxJVZixwzS4jdO4XLjA== X-Google-Smtp-Source: ABdhPJxwM12ZGqUyWfBrM3pNUaVXO85mCZ87c7NH5OzXD53JEMpe6dlO1hYwrbLiYwmJXwhFNY1iOA== X-Received: by 2002:a63:4a09:: with SMTP id x9mr5455628pga.291.1599192385095; Thu, 03 Sep 2020 21:06:25 -0700 (PDT) Received: from [192.168.1.25] ([38.141.58.134]) by smtp.gmail.com with ESMTPSA id q71sm3914441pjq.7.2020.09.03.21.06.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 03 Sep 2020 21:06:23 -0700 (PDT) References: <87365fvchn.fsf@gnu.org> <299c431d-40d0-6db3-553f-eb1d4fd69856@gmail.com> <20200819070904.GD10528@E5400> From: Jesse Gibbons Message-ID: <8705fe29-ed91-acd4-7eb5-a5bdb9c851a9@gmail.com> Date: Thu, 3 Sep 2020 22:06:13 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Icedove/68.12.0 MIME-Version: 1.0 In-Reply-To: <20200819070904.GD10528@E5400> Content-Language: en-US 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" X-getmail-retrieved-from-mailbox: Patches Hello again On 8/19/20 1:09 AM, Efraim Flashner wrote: > Overall looks good, just a few changes before it can be merged: > > On Mon, Jul 27, 2020 at 10:05:56PM -0600, Jesse Gibbons wrote: >> V2 attached. >> >> On 7/25/20 9:30 AM, Marius Bakke wrote: >>> Jesse Gibbons writes: >>> >>>> * gnu/packages/piet.scm: New file. >>>> * gnu/local.mk: Add it. >>> The patch seems to have been mangled so it does not apply. >>> >>> It would be great if you could expand the description with information >>> about what the piet language is and why users would want to try it. >> From 077214a6e13d770f70dfba2a7fe2faf40b1fbc56 Mon Sep 17 00:00:00 2001 >> From: Jesse Gibbons >> Date: Mon, 20 Jul 2020 20:35:09 -0600 >> Subject: [PATCH v2 1/1] gnu: Add npiet. >> >> * gnu/packages/piet.scm: New file. >> * gnu/local.mk: Add it. >> --- >> gnu/local.mk | 1 + >> gnu/packages/piet.scm | 60 +++++++++++++++++++++++++++++++++++++++++++ >> 2 files changed, 61 insertions(+) >> create mode 100644 gnu/packages/piet.scm >> >> diff --git a/gnu/local.mk b/gnu/local.mk >> index 7bae1daf61..fc68786ab6 100644 >> --- a/gnu/local.mk >> +++ b/gnu/local.mk >> @@ -425,6 +425,7 @@ GNU_SYSTEM_MODULES = \ >> %D%/packages/photo.scm \ >> %D%/packages/phabricator.scm \ >> %D%/packages/php.scm \ >> + %D%/packages/piet.scm \ >> %D%/packages/pkg-config.scm \ >> %D%/packages/plotutils.scm \ >> %D%/packages/poedit.scm \ >> diff --git a/gnu/packages/piet.scm b/gnu/packages/piet.scm >> new file mode 100644 >> index 0000000000..e82b2aa339 >> --- /dev/null >> +++ b/gnu/packages/piet.scm >> @@ -0,0 +1,60 @@ >> +;;; GNU Guix --- Functional package management for GNU >> +;;; Copyright © 2020 Jesse Gibbons >> +;;; >> +;;; This file is part of GNU Guix. >> +;;; >> +;;; GNU Guix is free software; you can redistribute it and/or modify it >> +;;; under the terms of the GNU General Public License as published by >> +;;; the Free Software Foundation; either version 3 of the License, or (at >> +;;; your option) any later version. >> +;;; >> +;;; GNU Guix is distributed in the hope that it will be useful, but >> +;;; WITHOUT ANY WARRANTY; without even the implied warranty of >> +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the >> +;;; GNU General Public License for more details. >> +;;; >> +;;; You should have received a copy of the GNU General Public License >> +;;; along with GNU Guix. If not, see . >> + >> +(define-module (gnu packages piet) >> + #:use-module (guix packages) >> + #:use-module (guix download) >> + #:use-module (guix build-system gnu) >> + #:use-module (gnu packages gd) >> + #:use-module (gnu packages groff) >> + #:use-module (guix licenses)) >> + >> + >> +(define-public npiet >> + (package >> + (name "npiet") >> + (version "1.3e") > It seems 1.3f has come out in the meantime, can you update to the newer > version? > >> + (source (origin >> + (method url-fetch) >> + (uri >> + (string-append >> + "https://www.bertnase.de/npiet/npiet-" >> + version ".tar.gz")) >> + (sha256 >> + (base32 >> + "1i9ihbjmravid3h7wvns712axdl5xn398hk12pvzl79fs5kcf6g8")))) >> + (build-system gnu-build-system) >> + (inputs >> + `(("gd" ,gd))) > Looking at the build output and the test output (and npiet --help) it > looks like it's missing giflib and libpng. > >> + (native-inputs `(("groff" ,groff))) >> + (synopsis "Piet interpreter") >> + (description >> + "Npiet is an interpreter for the piet programming language. Instead of >> +text, piet programs are pictures. Commands are determined based on changes in >> +color. >> + >> +This package includes: >> +@enumerate >> +@item npiet, a piet interpreter with debugging capabilities >> +@item npiet-foogol, a program that builds a piet program from foogol, an >> +algol-like language >> +@item npietedit, an editor for the piet programming language >> +@end enumerate") >> + (home-page "https://www.bertnase.de/npiet/") >> + (license gpl2+))) >> + >> -- >> 2.27.0 >> > Also, when running npietedit, the program complains about missing wish. > npietedit should be wrapped with tk, which provides the 'wish' binary. > All of these objections have been fixed. See attached patch. -Jesse From 5e856c667c9763666cfd164735cd854c8dae7804 Mon Sep 17 00:00:00 2001 From: Jesse Gibbons Date: Mon, 20 Jul 2020 20:35:09 -0600 Subject: [PATCH v2 1/1] gnu: Add npiet. * gnu/packages/piet.scm: New file. * gnu/local.mk: Add it. --- gnu/local.mk | 1 + gnu/packages/piet.scm | 55 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 gnu/packages/piet.scm diff --git a/gnu/local.mk b/gnu/local.mk index d2753f52ae..974d44e481 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -430,6 +430,7 @@ GNU_SYSTEM_MODULES = \ %D%/packages/photo.scm \ %D%/packages/phabricator.scm \ %D%/packages/php.scm \ + %D%/packages/piet.scm \ %D%/packages/pkg-config.scm \ %D%/packages/plotutils.scm \ %D%/packages/poedit.scm \ diff --git a/gnu/packages/piet.scm b/gnu/packages/piet.scm new file mode 100644 index 0000000000..a70089a481 --- /dev/null +++ b/gnu/packages/piet.scm @@ -0,0 +1,55 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2020 Jesse Gibbons +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see . + +(define-module (gnu packages piet) + #:use-module (guix packages) + #:use-module (guix download) + #:use-module (guix build-system gnu) + #:use-module (gnu packages gd) + #:use-module (gnu packages groff) + #:use-module (gnu packages image) + #:use-module (gnu packages tcl) + #:use-module (guix licenses)) + + +(define-public npiet + (package + (name "npiet") + (version "1.3f") + (source (origin + (method url-fetch) + (uri + (string-append + "https://www.bertnase.de/npiet/npiet-" + version ".tar.gz")) + (sha256 + (base32 + "0nl59fhdqqr7nslxdirdn8nvlq5wws67c7jyx2ckbmxbc9h8bv9d")))) + (build-system gnu-build-system) + (inputs + `(("gd" ,gd) + ("tk" ,tk) + ("giflib" ,giflib) + ("libpng" ,libpng))) + (native-inputs `(("groff" ,groff))) + (synopsis "Piet interpreter") + (description + "An interpreter for the piet programming language") + (home-page "https://www.bertnase.de/npiet/") + (license gpl2+))) + -- 2.28.0