From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id qLPTIBxermETJAAAgWs5BA (envelope-from ) for ; Mon, 06 Dec 2021 20:01:48 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id WERgHBxermHbOAAAbx9fmQ (envelope-from ) for ; Mon, 06 Dec 2021 19:01:48 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 4670B2CE8D for ; Mon, 6 Dec 2021 20:01:48 +0100 (CET) Received: from localhost ([::1]:54064 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1muJFD-0002jk-BR for larch@yhetil.org; Mon, 06 Dec 2021 14:01:47 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42018) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1muJEV-00026x-Vn for guix-patches@gnu.org; Mon, 06 Dec 2021 14:01:10 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:52109) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1muJEU-0006Tn-4d for guix-patches@gnu.org; Mon, 06 Dec 2021 14:01:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1muJEU-0003jA-3e for guix-patches@gnu.org; Mon, 06 Dec 2021 14:01:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#52335] [PATCH 2/2] gnu: add package notcurses.scm Resent-From: Blake Shaw Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 06 Dec 2021 19:01:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 52335 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 52335@debbugs.gnu.org Cc: Blake Shaw X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.163881723114262 (code B ref -1); Mon, 06 Dec 2021 19:01:01 +0000 Received: (at submit) by debbugs.gnu.org; 6 Dec 2021 19:00:31 +0000 Received: from localhost ([127.0.0.1]:35419 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1muJDy-0003hx-O6 for submit@debbugs.gnu.org; Mon, 06 Dec 2021 14:00:31 -0500 Received: from lists.gnu.org ([209.51.188.17]:54472) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1muJDx-0003hq-WD for submit@debbugs.gnu.org; Mon, 06 Dec 2021 14:00:30 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41846) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1muJDx-0001qx-M0 for guix-patches@gnu.org; Mon, 06 Dec 2021 14:00:29 -0500 Received: from [2001:41d0:2:aacc::] (port=53227 helo=out2.migadu.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1muJDt-0006IJ-4A for guix-patches@gnu.org; Mon, 06 Dec 2021 14:00:29 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nonconstructivism.com; s=key1; t=1638817221; 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: in-reply-to:in-reply-to:references:references; bh=LUL8OCocBoLQ+ED/3VuS/ML5lkA7NhD09etCBMEBKJ8=; b=gP1fPl7xr8kplF5F64x2HGfu/BdMHAevbkrYb8Wsz+LGb3I6JpL58ScHRjhBJdc264g+Of +aHxGSBq+1H8UQtdiNF93UVyBKBFKOqDvnGm1sNJXdxSzxceTt/ExgnEBnY8yg2lm6Y+zQ AIaBqnSYJq+P1vFj4OeXjtM+/KywmXo= Date: Tue, 7 Dec 2021 02:00:02 +0700 Message-Id: <1aa737a8cdcbe9c0e95052fd3187b059355f86f9.1638817174.git.blake@nonconstructivism.com> In-Reply-To: <5ccbd4e534f4f6fcfb3f8c8814ad59e51377cb7a.1638817174.git.blake@nonconstructivism.com> References: <5ccbd4e534f4f6fcfb3f8c8814ad59e51377cb7a.1638817174.git.blake@nonconstructivism.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 2001:41d0:2:aacc:: (failed) Received-SPF: pass client-ip=2001:41d0:2:aacc::; envelope-from=blake@nonconstructivism.com; helo=out2.migadu.com X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 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, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" Reply-to: Blake Shaw X-ACL-Warn: , Blake Shaw via Guix-patches From: Blake Shaw via Guix-patches via Authentication-Results: aspmx1.migadu.com; none X-Migadu-Scanner: scn0.migadu.com X-TUID: wffS6rqY9eM1 Signed-off-by: Blake Shaw --- gnu/packages/notcurses.scm | 73 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 gnu/packages/notcurses.scm diff --git a/gnu/packages/notcurses.scm b/gnu/packages/notcurses.scm new file mode 100644 index 0000000000..00e2fd92db --- /dev/null +++ b/gnu/packages/notcurses.scm @@ -0,0 +1,73 @@ +;;; Copyright © 2021 Blake Shaw +;;; +;;; 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 notcurses) + #:use-module (guix utils) + #:use-module (gnu packages) + #:use-module (guix packages) + #:use-module (guix build utils) + #:use-module (guix git-download) + #:use-module (guix build-system cmake) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (gnu packages gcc) + #:use-module (gnu packages video) + #:use-module (gnu packages ncurses) + #:use-module (gnu packages pkg-config) + #:use-module (gnu packages compression) + #:use-module (gnu packages libunistring) + #:use-module (ice-9 match)) + +(define-public notcurses + (package + (name "notcurses") + (version "3.0.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/dankamongmen/notcurses") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1y9s77m1pp6syfml559d8dvif61y6zjldrdx1zri18q9sr0zqm9m")))) + (build-system cmake-build-system) + (arguments + `(#:tests? #f + #:make-flags + (list ,(string-append "CC=" (cc-for-target)) + (string-append "prefix=")) + #:configure-flags + (map (lambda (s) + (string-append "-D" s)) + '("USE_CPP=off" "USE_COVERAGE=off" ;;here we set the default cmake + "USE_DOXYGEN=off" "USE_DOCTEST=off" ;;configuration. FSG=FSF approved only + "USE_GPM=off" "USE_MULTIMEDIA=ffmpeg" ;;other choices based on + "USE_PANDOC=off" "FSG_BUILD=ON")))) ;;reducing package footprint + (native-inputs + `(("gcc-toolchain" ,gcc) + ("ncurses" ,ncurses) + ("pkg-config" ,pkg-config))) + (inputs + `(("ffmpeg" ,ffmpeg) + ("libdeflate" ,libdeflate) + ("libunistring" ,libunistring) + ("zlib" ,zlib))) + (synopsis "Library facilitating complex textual user interfaces on modern terminals") + (description "Notcurses is a library for building complex +textual user interfaces on modern terminals. It does not use ncurses, while it does make use of libtinfo from that package.") + (home-page "https://notcurses.com/html/") + (license license:asl2.0))) -- 2.33.1