From patchwork Mon Jul 8 23:04:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Antero Mejr X-Patchwork-Id: 66013 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 CD63D27BBEA; Tue, 9 Jul 2024 00:05:27 +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=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 AD83627BBE9 for ; Tue, 9 Jul 2024 00:05:24 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sQxPn-0001IG-JK; Mon, 08 Jul 2024 19:04:59 -0400 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 1sQxPl-0001Hj-Pm for guix-patches@gnu.org; Mon, 08 Jul 2024 19:04:57 -0400 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 1sQxPl-0000DM-HY for guix-patches@gnu.org; Mon, 08 Jul 2024 19:04:57 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sQxPq-0005sa-CS for guix-patches@gnu.org; Mon, 08 Jul 2024 19:05:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#72001] [PATCH 1/2] gnu: Add icon. Resent-From: Antero Mejr Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 08 Jul 2024 23:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 72001 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 72001@debbugs.gnu.org Cc: iyzsong@envs.net, liliana.prikler@gmail.com, adam.faiz@disroot.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.172047989122575 (code B ref -1); Mon, 08 Jul 2024 23:05:02 +0000 Received: (at submit) by debbugs.gnu.org; 8 Jul 2024 23:04:51 +0000 Received: from localhost ([127.0.0.1]:51669 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sQxPe-0005s0-DV for submit@debbugs.gnu.org; Mon, 08 Jul 2024 19:04:50 -0400 Received: from lists.gnu.org ([209.51.188.17]:42886) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sQxPc-0005rr-CU for submit@debbugs.gnu.org; Mon, 08 Jul 2024 19:04:49 -0400 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 1sQxPW-0001EC-HA for guix-patches@gnu.org; Mon, 08 Jul 2024 19:04:42 -0400 Received: from mout-p-103.mailbox.org ([80.241.56.161]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1sQxPU-0000C3-4W for guix-patches@gnu.org; Mon, 08 Jul 2024 19:04:42 -0400 Received: from smtp202.mailbox.org (smtp202.mailbox.org [IPv6:2001:67c:2050:b231:465::202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-103.mailbox.org (Postfix) with ESMTPS id 4WJ07L1DTgz9sc4; Tue, 9 Jul 2024 01:04:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=antr.me; s=MBO0001; t=1720479870; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=lyktGBoqkgRn9nOCK6Z3be+UlgQWYV7NchSEgsF/ymE=; b=OUwjFjHLD0Jatt6QvfoTV3TOq2xH060aJEJqd58/mCgrgg0Jm3XB66sZiutfzFtaYdELU7 BOpoO859xtcGZgubXL6RPDYesoznfHCJeVTR+oBQ1ggKmOPHYgCy6HGejYBmNuUbfXmiYX fKPig4p3UxcHLuOmLPo2zrA8bCWWJx96xCIclw7pFujt3Xq0TbqB28I1K2IQ5BzZkIafL7 8TbPwxRRw8G5s0xA/yOgPTEn2Guu6DYWk90lFXC3NiOSSliF8LyN//NVfmo6xIUhpKIIaR 8kVi+YNIb0t/02u4HwWkeW23dgp7iGZUCvQMX0rHzUI+pJxb01UXHfEZzGSdkA== From: Antero Mejr Date: Mon, 08 Jul 2024 23:04:26 +0000 Message-ID: <87v81fjxj9.fsf@antr.me> MIME-Version: 1.0 X-Rspamd-Queue-Id: 4WJ07L1DTgz9sc4 Received-SPF: pass client-ip=80.241.56.161; envelope-from=mail@antr.me; helo=mout-p-103.mailbox.org X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URI_DOTEDU=1 autolearn=no autolearn_force=no X-Spam_action: no action 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 * gnu/packages/esolangs.scm (icon): New variable. Change-Id: Ibd61e5431a2a57b89b94391be87a9ca36a40c58b --- gnu/packages/esolangs.scm | 60 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) base-commit: 13f0f52314244f08eb9fdd626d907c0c3976e06a diff --git a/gnu/packages/esolangs.scm b/gnu/packages/esolangs.scm index 0651dda1b0..59790812f0 100644 --- a/gnu/packages/esolangs.scm +++ b/gnu/packages/esolangs.scm @@ -4,6 +4,7 @@ ;;; Copyright © 2020 Hendursaga ;;; Copyright © 2020 Liliana Marie Prikler ;;; Copyright © 2022 jgart +;;; Copyright © 2024 Antero Mejr ;;; ;;; This file is part of GNU Guix. ;;; @@ -22,16 +23,19 @@ (define-module (gnu packages esolangs) #:use-module (gnu packages) + #:use-module (gnu packages bash) #:use-module (gnu packages bison) #:use-module (gnu packages flex) #:use-module (gnu packages ncurses) #:use-module (gnu packages python) #:use-module (gnu packages readline) + #:use-module (gnu packages xorg) #:use-module (guix build-system cmake) #:use-module (guix build-system copy) #:use-module (guix build-system gnu) #:use-module (guix build-system python) #:use-module (guix download) + #:use-module (guix gexp) #:use-module (guix git-download) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages)) @@ -156,3 +160,59 @@ (define-public shakespeare-spl If you want to assign a character, let's say Juliet, a positive value, you put her and another character on the stage and let that character praise Juliet.") (license license:gpl2+))) + +(define-public icon + (package + (name "icon") + (version "9.5.24a") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/gtownsend/icon") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0im1ikjyg14qvn4d31lpkhynaspws25m6whhb5xqwscq7xh4dy4p")))) + (build-system gnu-build-system) + (arguments + (list #:parallel-build? #f ;non-deterministic errors + #:phases #~(modify-phases %standard-phases + (add-before 'configure 'patch + (lambda _ + (substitute* "Makefile" + (("mkdir \\$D$") "")) + (substitute* "tests/general/Test-opts" + (("/usr/bin/env icon") + "../../bin/icon")) + (for-each + (lambda (x) + (substitute* x + (("/bin/sh") + (string-append + #$(this-package-input "bash-minimal") + "/bin/bash")))) + '("ipl/progs/shar.icn" + "ipl/progs/ipatch.icn" + "src/icont/link.c")))) + (replace 'configure + (lambda _ + (invoke "make" "X-Configure" "name=linux"))) + (replace 'install + (lambda _ + (invoke "make" "Install" + (string-append "dest=" #$output)))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "make" "Test"))))))) + (inputs (list bash-minimal libx11 libxpm libxt libxaw)) + (home-page "https://www2.cs.arizona.edu/icon/") + (synopsis "String-processing programming language") + (description + "Icon is a high-level programming language with facilities for processing +strings and structures, expressions that may produce sequences of results, +goal-directed evaluation that automatically searches for a successful result, +and string scanning that allows operations on strings to be formulated at a +conceptual level. Icon also provides high-level graphics facilities.") + (license license:public-domain)))