From patchwork Thu Jun 16 21:53:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Antero Mejr X-Patchwork-Id: 40059 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 3C71927BBEA; Thu, 16 Jun 2022 22:55:21 +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=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,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 DBAF727BBE9 for ; Thu, 16 Jun 2022 22:55:20 +0100 (BST) Received: from localhost ([::1]:50200 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o1xSS-0005Sw-2h for patchwork@mira.cbaines.net; Thu, 16 Jun 2022 17:55:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50910) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o1xSB-0005Jf-4R for guix-patches@gnu.org; Thu, 16 Jun 2022 17:55:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49397) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o1xSA-0000BT-SC for guix-patches@gnu.org; Thu, 16 Jun 2022 17:55:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o1xSA-0005fx-RB for guix-patches@gnu.org; Thu, 16 Jun 2022 17:55:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55922] [PATCH 1/2] gnu: Add guile-termios. References: <20220612100404.3388-1-antero@mailbox.org> In-Reply-To: <20220612100404.3388-1-antero@mailbox.org> Resent-From: Antero Mejr Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 16 Jun 2022 21:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55922 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 55922@debbugs.gnu.org Received: via spool by 55922-submit@debbugs.gnu.org id=B55922.165541646021753 (code B ref 55922); Thu, 16 Jun 2022 21:55:02 +0000 Received: (at 55922) by debbugs.gnu.org; 16 Jun 2022 21:54:20 +0000 Received: from localhost ([127.0.0.1]:43293 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o1xRT-0005en-IU for submit@debbugs.gnu.org; Thu, 16 Jun 2022 17:54:19 -0400 Received: from mout-p-102.mailbox.org ([80.241.56.152]:47502) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o1xRN-0005eG-IX for 55922@debbugs.gnu.org; Thu, 16 Jun 2022 17:54:15 -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 ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4LPGCd1b4yz9sSh for <55922@debbugs.gnu.org>; Thu, 16 Jun 2022 23:54:05 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1655416445; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=G+cQmEARDFSr4V7Kh+UmpIocShcc3Ajn0fFy8MuQVJE=; b=oqJvJ7su2kxzkDd96j6DEcqrP/bG7MkAvlDjSgOiHskQkHKzG1yOGaVIiRtd7sNap5R08q La6M774q4SQmTrIXOHygKAqaMXM0mazziZFQIQdVcWsL/TU1FYIH7FJvcafOGHy+GMJJZp PvK6MxaFSkDKhhFjJICgMQlZS0OAJY9y+CJThncjrcEr/79HOrXe8Zg3iF3YlPtITyELlb /hbMB+dUI5hHKf5st+zdyQyWTlP8dG2SDdKmFTV3IR1ud0pbw44TaPmdErChZQrypmcpZm Fv3xWTrvubOslVu1WxTimHEn+xtH8xZ+QQbJcN8Y17zR3uuYlFCJnhxqGn4WnA== Date: Thu, 16 Jun 2022 21:53:55 +0000 Message-Id: <20220616215356.2831-1-antero@mailbox.org> MIME-Version: 1.0 X-MBO-RS-ID: 656998bd0bee533d058 X-MBO-RS-META: t6iu83s5p97zdcjhzg1zm8rngg7t7tju 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" Reply-to: Antero Mejr X-ACL-Warn: , Antero Mejr via Guix-patches X-Patchwork-Original-From: Antero Mejr via Guix-patches via From: Antero Mejr X-getmail-retrieved-from-mailbox: Patches * gnu/packages/guile-xyz.scm (guile-termios): New variable. --- gnu/packages/guile-xyz.scm | 44 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/gnu/packages/guile-xyz.scm b/gnu/packages/guile-xyz.scm index c6f73a38e9..10065ff1da 100644 --- a/gnu/packages/guile-xyz.scm +++ b/gnu/packages/guile-xyz.scm @@ -41,6 +41,7 @@ ;;; Copyright © 2021, 2022 Artyom V. Poptsov ;;; Copyright © 2022 Maxime Devos ;;; Copyright © 2022 Zhu Zihao +;;; Copyright © 2022 Antero Mejr ;;; ;;; This file is part of GNU Guix. ;;; @@ -83,6 +84,7 @@ (define-module (gnu packages guile-xyz) #:use-module (gnu packages gstreamer) #:use-module (gnu packages gtk) #:use-module (gnu packages guile) + #:use-module (gnu packages haskell-xyz) #:use-module (gnu packages hurd) #:use-module (gnu packages image) #:use-module (gnu packages imagemagick) @@ -5019,3 +5021,45 @@ (define-public lokke in two different guises.") ;; Dual license: LGPLv2.1+ or EPLv1.0+ at the user's option. (license (list license:lgpl2.1+ license:epl1.0))))) + +(define-public guile-termios + (package + (name "guile-termios") + (version "0.6.4") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ft/guile-termios") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "020p3c84z09wyyb6gfzj2x6q2rfmvas7c92fcm2hhg8z1q60sqkg")))) + (build-system gnu-build-system) + (arguments + (list #:phases + #~(modify-phases %standard-phases + (replace 'configure + (lambda _ + (substitute* "Makefile" + (("CC = cc") (string-append "CC=" + #$(cc-for-target))) + (("PREFIX = /usr/local") (string-append "PREFIX=" + #$output))))) + (replace 'build + (lambda _ + (invoke "make") + (invoke "make" "-C" "doc" "man") + (invoke "make" "install"))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "make" "test"))))))) + (native-inputs (list guile-3.0 guile-tap pandoc perl perl-io-tty)) + (home-page "https://github.com/ft/guile-termios") + (synopsis "POSIX termios interface for GNU Guile") + (description + "To query and change settings of serial devices on POSIX systems, the +termios API is used. GNU Guile doesn't have an interface for that built in. +This module implements this interface by use of Guile's dynamic FFI.") + (license license:bsd-2))) From patchwork Thu Jun 16 21:53:56 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antero Mejr X-Patchwork-Id: 40058 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 AF84D27BBEA; Thu, 16 Jun 2022 22:55:13 +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=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,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 394FD27BBE9 for ; Thu, 16 Jun 2022 22:55:13 +0100 (BST) Received: from localhost ([::1]:49756 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o1xSK-0005KJ-CU for patchwork@mira.cbaines.net; Thu, 16 Jun 2022 17:55:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50908) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o1xSA-0005JY-P3 for guix-patches@gnu.org; Thu, 16 Jun 2022 17:55:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49396) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o1xSA-00006b-GI for guix-patches@gnu.org; Thu, 16 Jun 2022 17:55:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o1xSA-0005fn-Cg for guix-patches@gnu.org; Thu, 16 Jun 2022 17:55:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55922] [PATCH 2/2] gnu: Add guile-tap. Resent-From: Antero Mejr Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 16 Jun 2022 21:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55922 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 55922@debbugs.gnu.org Received: via spool by 55922-submit@debbugs.gnu.org id=B55922.165541645621742 (code B ref 55922); Thu, 16 Jun 2022 21:55:02 +0000 Received: (at 55922) by debbugs.gnu.org; 16 Jun 2022 21:54:16 +0000 Received: from localhost ([127.0.0.1]:43291 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o1xRQ-0005ec-81 for submit@debbugs.gnu.org; Thu, 16 Jun 2022 17:54:16 -0400 Received: from mout-p-101.mailbox.org ([80.241.56.151]:47564) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o1xRO-0005eI-3l for 55922@debbugs.gnu.org; Thu, 16 Jun 2022 17:54:15 -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 ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4LPGCf1Jdbz9sQD for <55922@debbugs.gnu.org>; Thu, 16 Jun 2022 23:54:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1655416446; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3V23YSVIZ2wXExUbbh/flaIJ8L7Wg8TUq4jybLi+fqw=; b=QdmGerZaZifSNEpxpRQ6xKf0bienDGGgSinN8dmH138VIkV07JlrYGugyMeTBpX5PE8z3I cabIQzxUlN27SO03i3uhcj0KK23K7r7C7CIrBAHoqttIuKPK8lDCUxaCubG2xHyIcjTLYE 2fas3t+2MFH6n/9+G5mSPgHjRexhw0I0kGM6QdAfmLW7lfIDbmHd75gR+r7S7hQSZkSZHq X/fAGzvqlKTQTJpwd11g/bKFR4LQ5M0UdQEvEfRnEUH1TaTkkupcLI82YKH7wFavdyzKEi VvmgBhrcbCOrLaD12vIWaKOt3MUIlPxIM4mdEqEFsWZn92wNGZ3vc01nmEJ89A== Date: Thu, 16 Jun 2022 21:53:56 +0000 Message-Id: <20220616215356.2831-2-antero@mailbox.org> In-Reply-To: <20220616215356.2831-1-antero@mailbox.org> References: <20220616215356.2831-1-antero@mailbox.org> MIME-Version: 1.0 X-MBO-RS-META: po68b3a6yp3gfrhmbwbkir5tpqxpaph1 X-MBO-RS-ID: 39432df1dfa9adb44e3 X-Rspamd-Queue-Id: 4LPGCf1Jdbz9sQD 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" Reply-to: Antero Mejr X-ACL-Warn: , Antero Mejr via Guix-patches X-Patchwork-Original-From: Antero Mejr via Guix-patches via From: Antero Mejr X-getmail-retrieved-from-mailbox: Patches * gnu/packages/guile-xyz.scm (guile-tap): New variable. --- gnu/packages/guile-xyz.scm | 40 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/gnu/packages/guile-xyz.scm b/gnu/packages/guile-xyz.scm index 10065ff1da..7afc429d00 100644 --- a/gnu/packages/guile-xyz.scm +++ b/gnu/packages/guile-xyz.scm @@ -5063,3 +5063,43 @@ (define-public guile-termios termios API is used. GNU Guile doesn't have an interface for that built in. This module implements this interface by use of Guile's dynamic FFI.") (license license:bsd-2))) + +(define-public guile-tap + (package + (name "guile-tap") + (version "0.4.6") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ft/guile-tap") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "04ip5cbvsjjcicsri813f4711yh7db6fvc2px4788rl8p1iqvi6x")))) + (build-system gnu-build-system) + (arguments + (list #:phases + #~(modify-phases %standard-phases + (replace 'configure + (lambda _ + (substitute* "Makefile" + (("PREFIX = /usr/local") (string-append "PREFIX=" + #$output))))) + (replace 'build + (lambda _ + (invoke "make") + (invoke "make" "-C" "doc" "man") + (invoke "make" "install"))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "make" "test"))))))) + (native-inputs (list guile-3.0 pandoc)) + (home-page "https://github.com/ft/guile-tap") + (synopsis "Guile test framework that emits TAP output") + (description + "guile-tap is a library for GNU Guile that implements a framework for +specifying test cases that emit output that adheres to the Test Anything +Protocol (TAP). It comes with an experimental harness (tap-harness).") + (license license:bsd-2)))