From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 08 19:04:50 2024 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 To: guix-patches@gnu.org Subject: [PATCH 1/2] gnu: Add icon. Date: Mon, 08 Jul 2024 23:04:26 +0000 Message-ID: <87v81fjxj9.fsf@antr.me> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit Cc: iyzsong@envs.net, liliana.prikler@gmail.com, adam.faiz@disroot.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) * gnu/packages/esolangs.scm (icon): New variable. Change-Id: Ibd61e5431a2a57b89b94391be87a9ca36a40c58b --- gnu/packages/esolangs.scm | 60 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) 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 =C2=A9 2020 Hendursaga ;;; Copyright =C2=A9 2020 Liliana Marie Prikler ;;; Copyright =C2=A9 2022 jgart +;;; Copyright =C2=A9 2024 Antero Mejr ;;; ;;; This file is part of GNU Guix. ;;; @@ -22,16 +23,19 @@ =20 (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 Julie= t.") (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=3Dlinux"))) + (replace 'install + (lambda _ + (invoke "make" "Install" + (string-append "dest=3D" #$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 proces= sing +strings and structures, expressions that may produce sequences of results, +goal-directed evaluation that automatically searches for a successful resu= lt, +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))) base-commit: 13f0f52314244f08eb9fdd626d907c0c3976e06a --=20 2.45.2 From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 08 19:08:49 2024 Received: (at 72001) by debbugs.gnu.org; 8 Jul 2024 23:08:49 +0000 Received: from localhost ([127.0.0.1]:51680 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sQxTU-0005yz-Ml for submit@debbugs.gnu.org; Mon, 08 Jul 2024 19:08:49 -0400 Received: from mout-p-103.mailbox.org ([80.241.56.161]:59730) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sQxTR-0005yk-2L for 72001@debbugs.gnu.org; Mon, 08 Jul 2024 19:08:47 -0400 Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:b231:465::2]) (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 4WJ0CQ1Kmtz9sbL for <72001@debbugs.gnu.org>; Tue, 9 Jul 2024 01:08:02 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=antr.me; s=MBO0001; t=1720480082; 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; bh=0KkV5LMZ6/yv7cPmGvFq2/5LEnho2IP96k7p7csM7Po=; b=PwLcZGq5lSRdbQ7D3Fn/HkHlm6QM0F0o6qt7JvOgpFAl+wkUgqfbGBNH88O0x2tvE4KVnH E93Pjnkd8sThfp0duUypCE7W7K4K5RGq/aR1YbHO8ONQwGH2IisoV+B6qNH3dPYNsSQjEF qz/b8Xy/8/Eoo9uuniUy2XMnugbO0h00Xetf9bX8LeAItxB8piiUgy3A/qgZ/6A83KFOV6 nJRP1ZkG3zV4Q3xLx9iK81bOvdkQGxz5xn7jZR3+OOm2h3Fir0S3PVugkmxuPVtDTXz7m2 bcMZDUEEY8OU1x6wz6aWc944MFBGC+7eL05noTG4GCawckHRMYZwgJjmmTy2HQ== From: Antero Mejr To: 72001@debbugs.gnu.org Subject: [PATCH 2/2] mailmap: Add alias for Antero Mejr. Date: Mon, 08 Jul 2024 23:07:59 +0000 Message-ID: <87r0c3jxdc.fsf@antr.me> MIME-Version: 1.0 Content-Type: text/plain X-Rspamd-Queue-Id: 4WJ0CQ1Kmtz9sbL X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 72001 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) * .mailmap: Map old emails for Antero Mejr to current address. Change-Id: Ifb4a3b9ad2e08b9d6ddbab7508586e8ece75fda8 --- .mailmap | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.mailmap b/.mailmap index 39b01335ee..833976fe79 100644 --- a/.mailmap +++ b/.mailmap @@ -11,6 +11,8 @@ Amirouche Boubekki Andreas Enge Andreas Enge Andy Wingo +Antero Mejr +Antero Mejr Ben Woodcroft Ben Woodcroft Ben Woodcroft -- 2.45.2 From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 09 05:03:25 2024 Received: (at 72001) by debbugs.gnu.org; 9 Jul 2024 09:03:25 +0000 Received: from localhost ([127.0.0.1]:52141 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sR6ku-00075r-VG for submit@debbugs.gnu.org; Tue, 09 Jul 2024 05:03:25 -0400 Received: from mail-wm1-f52.google.com ([209.85.128.52]:48587) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sR6kt-00075d-02 for 72001@debbugs.gnu.org; Tue, 09 Jul 2024 05:03:23 -0400 Received: by mail-wm1-f52.google.com with SMTP id 5b1f17b1804b1-426685732dcso13810515e9.1 for <72001@debbugs.gnu.org>; Tue, 09 Jul 2024 02:03:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720515732; x=1721120532; darn=debbugs.gnu.org; h=mime-version:message-id:date:subject:to:from:from:to:cc:subject :date:message-id:reply-to; bh=galIPFP4QaGl26CwdRITNaMlGM0VTa2G+iH26sfQ6Sg=; b=A/LgW3QETBruDl8wOgyWrBy61PKtFp/NiV43LfI7BEO1wliHRnBJsn+/vJYTaLTWR+ I/dSCktdpG+gGyYQZ/yqdW+7Ct0ctQTYqnlXNwiPkhSUNqLelTw2xNQh26uFQmo5dKDQ HCkWBYBDgEPin8XdsWwUZk3lMWdxVTEm/YF5obONHJc9tE7NUszT8vaO/arWczRqic9o Xu6DRcoxQmTWi5JJAjxJfznLabsOuddav3IfdPEGBqZoBEO6bh79V0tgVHHg9i3SuHEL 29BzCe7o/cnzp8ERmVP1e2ScGzd4HVgDtmh5GQbTLmncH6Ar2GU60p6Sr6HHBJfA/aPu cLIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720515732; x=1721120532; h=mime-version:message-id:date:subject:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=galIPFP4QaGl26CwdRITNaMlGM0VTa2G+iH26sfQ6Sg=; b=P+OQ2nBJb9vVrxmzXgKFQzh/2tyco6B96D8Ek7yLATcJpc3qkKnDM0cdSk8SciQou5 hzUXhyf3zOPtCfaktMzqgQBfSG1KmTI0LnxU3GUYO+1jkhSLXFRZbszPgQwTTFRlvAWw 0vyBSR0HnSSHjVYzACMJFXungKj1kFguMKB+YsZS0LN1tA2Ghc1jhnKny1ruVNEx18NI YZLSaQ7j9tdLNJ3w+5z9bl01REflujIq5m3Cg3y6fy7A4/T0lXkzSYenGfCTom5MLnYC RhQoG7cmoipMrGecep2BKnffRDhGoLzeqQlnP0cIRlKNDW33CKoNeCIJ6f9tZctMicrn NfMQ== X-Gm-Message-State: AOJu0Ywni/uTrifsKbUwMwj6zjcYS7RqAQFFcYWGkClcES/fDsxZfTEH DwDFwzj/gg/Pf431BXYHDMEy8qAPCVegCJ+/og+z1It9S9DiVvDczAceZPmO X-Google-Smtp-Source: AGHT+IHy2dH53nfWwVcnO8VYrP/AG/RBTYVh7mqJ0Pkhaa4Nc4Q9k6plAt0ee/ue1E5ss0F0cVSBPw== X-Received: by 2002:a05:600c:4797:b0:426:6945:75b8 with SMTP id 5b1f17b1804b1-426708f14ccmr13360475e9.31.1720515731450; Tue, 09 Jul 2024 02:02:11 -0700 (PDT) Received: from guxtil (bagu-15-b2-v4wan-170076-cust245.vm21.cable.virginm.net. [77.98.0.246]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4266f7416dbsm30991435e9.39.2024.07.09.02.02.10 for <72001@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jul 2024 02:02:10 -0700 (PDT) From: Sharlatan Hellseher To: 72001@debbugs.gnu.org Subject: [PATCH 1/2] gnu: Add icon. Date: Tue, 09 Jul 2024 10:02:08 +0100 Message-ID: <87bk376ir3.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 72001 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain Hi, Thank you for the patches. QA looks happy on most systems. There are some adjustment which may be applied: --8<---------------cut here---------------start------------->8--- + (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")))) --8<---------------cut here---------------end--------------->8--- SUBSTITUTE* supports a list of files and this part may be simplified e.g. --8<---------------cut here---------------start------------->8--- (substitute* '("ipl/progs/shar.icn" "ipl/progs/ipatch.icn" "src/icont/link.c") (("/bin/sh") (string-append #$(this-package-input "bash-minimal") "/bin/bash"))) --8<---------------cut here---------------end--------------->8--- It looks like upstream prefers esoteric approach in Makefile as well, IMHO the standard phases may be preserved with patching Makefile targets while providing <#:configure-flags> or <#:make-flags>: --8<---------------cut here---------------start------------->8--- + (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"))))))) --8<---------------cut here---------------end--------------->8--- Is Bash required during runtime as well? If not we may place it in NATIVE-INPUTS: --8<---------------cut here---------------start------------->8--- + (inputs (list bash-minimal libx11 libxpm libxt libxaw)) --8<---------------cut here---------------end--------------->8--- Looking forward for v2! -- Oleg --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEmEeB3micIcJkGAhndtcnv/Ys0rUFAmaM/JAACgkQdtcnv/Ys 0rXq0Q//RoP6hasNx+VSDrOZZC6oqWDc194m79r7B5I76mLZrz5+sPshxPTXz8xp niECu075iLTdWdZQgWe6BWbpClsYagYyr7dbHZXAma1PMiRzWLybEUcGUlM6rNob /MBb2muKcGrRJ4mxMeo9vxrzU0Pz1r+v+V8yRbJcBosgW+Q7jVk0So8jAwIcALzt SxgIySGIK3lDJaix4mHUu+QhvY2rOymxIboxNdzAOVM3XkEYa3E6mPR7ch9fXrvE tHaftqf/hUQ+7tlRwoH+T1qK/kuN7zMm7rmG2tOLhYL7QoRz34jn6JcFZjLYvB1p PeZJ42bbIxXpgmm/fHzRaHF9p5ho7TkFGDplTbYavghy5IA14Ys/XZH5bQn6+gK8 4J3vvNV/9idePinn+Y2yYq7d3wR3Fxmh5Fsqt2l2xg6uE8nuxkypHcNJzTjLQJST lUzDbb+OAMM6+W8OeXBAGxSRdlRsmGf6owfMVJFpMPgAJoyggge5+20OUL9/5YKs 1a37uRUfp8TO0s7lBxOw0h/06hxvu7uqmKzzolQbv8vansXpFk5HJWiFHJTwClcQ gmquMnsBkNAp/nPSywJwcFZoOGqLO8cMWiwbWbTduhWSPFqt2mKZ/gh8vLni9N7p OTMHQyGp5hVTmTEamMUh182wJAgSCyVacSCVpLbw2PHMN81achQ= =voCM -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 09 10:33:23 2024 Received: (at 72001) by debbugs.gnu.org; 9 Jul 2024 14:33:23 +0000 Received: from localhost ([127.0.0.1]:53880 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sRBuE-0001uO-Cu for submit@debbugs.gnu.org; Tue, 09 Jul 2024 10:33:22 -0400 Received: from mout-p-202.mailbox.org ([80.241.56.172]:48294) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sRBuB-0001u2-8Y for 72001@debbugs.gnu.org; Tue, 09 Jul 2024 10:33:21 -0400 Received: from smtp202.mailbox.org (smtp202.mailbox.org [10.196.197.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-202.mailbox.org (Postfix) with ESMTPS id 4WJNkn1CjXz9sbL; Tue, 9 Jul 2024 16:33:05 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=antr.me; s=MBO0001; t=1720535585; 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=jizr/aKHdfJkAT6cJ7BU5eh+6rrP4jNeVWbxwAQLU5g=; b=agFUNe5An24a13u8HBAqJfsNs+Iphs/xoq0Th+n0Ug3tiUGqy+cGeu14/nLd24gB+Qft0H xS1Ab/zBgs/EEXJR+Ga6e8HQgRL0bcbxf8p6TLoa98xuqAm/M1a92z1NM+T62FmkFoFEv6 YT6HszkiySlxtROr5O/FIulEHA+FBPbQL4RGzTEfjer0hasc3wbJpxjBSqhW+e55Fbprwy vZ0Cbsh38fPVWi5iXir8uVeXD2gmYih0ZWtPbwcJM98OAb3rrkISnj17IQq2/UcrIdR23C 3QF8N+F4Niv6NX0ERjfKPHrZTmAreZYdvAbtYvtrAmp2tPmSm2PiW4T1qfyEPQ== From: Antero Mejr To: 72001@debbugs.gnu.org Subject: [PATCH v2] gnu: Add icon. Date: Tue, 09 Jul 2024 14:33:00 +0000 Message-ID: <87zfqqprdv.fsf@antr.me> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: * gnu/packages/esolangs.scm (icon): New variable. Change-Id: Ibd61e5431a2a57b89b94391be87a9ca36a40c58b --- Changes in v2: - use #:test-target instead of replacing test phase. - patch Makefile more to avoid phase modifications. - use #:make-flags argu [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [80.241.56.172 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 2.0 URI_DOTEDU Has .edu URI X-Debbugs-Envelope-To: 72001 Cc: sharlatanus@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) * gnu/packages/esolangs.scm (icon): New variable. Change-Id: Ibd61e5431a2a57b89b94391be87a9ca36a40c58b --- Changes in v2: - use #:test-target instead of replacing test phase. - patch Makefile more to avoid phase modifications. - use #:make-flags argument. - organize output directory hierachy correctly. Oleg: bash-minimal is required at runtime because icon does an unusual thing where it embeds code into a shell script. Also please merge the mailmap patch sent earlier along with this one. Thanks. gnu/packages/esolangs.scm | 57 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/gnu/packages/esolangs.scm b/gnu/packages/esolangs.scm index 0651dda1b0..f89bc875b9 100644 --- a/gnu/packages/esolangs.scm +++ b/gnu/packages/esolangs.scm @@ -4,6 +4,7 @@ ;;; Copyright =C2=A9 2020 Hendursaga ;;; Copyright =C2=A9 2020 Liliana Marie Prikler ;;; Copyright =C2=A9 2022 jgart +;;; Copyright =C2=A9 2024 Antero Mejr ;;; ;;; This file is part of GNU Guix. ;;; @@ -22,16 +23,19 @@ =20 (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,56 @@ (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 Julie= t.") (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 #:make-flags #~(list "name=3Dlinux" (string-append "dest=3D" #$= output)) + #:parallel-build? #f ;non-deterministic errors + #:test-target "Test" + #:phases #~(modify-phases %standard-phases + (add-before 'configure 'patch + (lambda _ + (substitute* "Makefile" + (("Install:") "install:") + (("mkdir \\$D$") "") + (("mkdir \\$D/bin") "mkdir -p $D/bin") + (("\\$D/doc") "$D/share/doc/icon") + (("cp README \\$D") + "cp README $D/share/doc/icon")) + (substitute* "tests/general/Test-opts" + (("/usr/bin/env icon") + "../../bin/icon")) + (substitute* '("ipl/progs/shar.icn" + "ipl/progs/ipatch.icn" + "src/icont/link.c") + (("/bin/sh") + (string-append + #$(this-package-input "bash-minimal") + "/bin/bash"))))) + (replace 'configure + (lambda* (#:key make-flags #:allow-other-keys) + (apply invoke "make" "X-Configure" + make-flags)))))) + (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 proces= sing +strings and structures, expressions that may produce sequences of results, +goal-directed evaluation that automatically searches for a successful resu= lt, +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))) base-commit: 13f0f52314244f08eb9fdd626d907c0c3976e06a prerequisite-patch-id: f51bc060af7f806eb590f28f45d1f06c26b02812 --=20 2.45.2