From patchwork Tue Nov 30 00:24:54 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Blake Shaw X-Patchwork-Id: 34880 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 5B26827BBEB; Tue, 30 Nov 2021 00:27:11 +0000 (GMT) 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=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 74A5E27BBEA for ; Tue, 30 Nov 2021 00:27:10 +0000 (GMT) Received: from localhost ([::1]:52594 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mrqzF-0000O3-Hp for patchwork@mira.cbaines.net; Mon, 29 Nov 2021 19:27:09 -0500 Received: from eggs.gnu.org ([209.51.188.92]:49682) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mrqz8-0000Nj-Aw for guix-patches@gnu.org; Mon, 29 Nov 2021 19:27:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:56507) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mrqz8-0002vm-1a for guix-patches@gnu.org; Mon, 29 Nov 2021 19:27:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mrqz7-0006fR-TM for guix-patches@gnu.org; Mon, 29 Nov 2021 19:27:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#52189] [PATCH] gnu: Add notcurses Resent-From: Blake Shaw Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 30 Nov 2021 00:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 52189 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 52189@debbugs.gnu.org Cc: Blake Shaw X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.163823200225593 (code B ref -1); Tue, 30 Nov 2021 00:27:01 +0000 Received: (at submit) by debbugs.gnu.org; 30 Nov 2021 00:26:42 +0000 Received: from localhost ([127.0.0.1]:39818 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mrqyo-0006ej-FV for submit@debbugs.gnu.org; Mon, 29 Nov 2021 19:26:42 -0500 Received: from lists.gnu.org ([209.51.188.17]:54212) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mrqxs-0006d1-UV for submit@debbugs.gnu.org; Mon, 29 Nov 2021 19:25:45 -0500 Received: from eggs.gnu.org ([209.51.188.92]:49508) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mrqxs-0000Dg-PI for guix-patches@gnu.org; Mon, 29 Nov 2021 19:25:44 -0500 Received: from out2.migadu.com ([188.165.223.204]:43239) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mrqxo-0002kd-MG for guix-patches@gnu.org; Mon, 29 Nov 2021 19:25:44 -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=1638231935; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=UOTPXTO3tXEobN9BzQ/NrnrwaLQA23ud0CH0+G1LspM=; b=XrXSOPoWGk16q9eKKoqSyguAcpzmuRdkIJ4qEUzcBfrPBUC5ORc5dSno4XisuXYSGrVnY0 Cegg2lwZFHjL4CIBCfVUy81srNn6Ylds3Xf0w/BUi3qX0tL0hJ2Zad1JrrKFNoS/EDwrVS Z6JClijr92MYlg02rsKXV6twnpyYc0g= Date: Tue, 30 Nov 2021 07:24:54 +0700 Message-Id: <6a6031ead6f9f61bc8eed976374638089efdaf3f.1638231894.git.blake@nonconstructivism.com> MIME-Version: 1.0 Received-SPF: pass client-ip=188.165.223.204; envelope-from=blake@nonconstructivism.com; helo=out2.migadu.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 29 Nov 2021 19:26:41 -0500 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: Blake Shaw X-ACL-Warn: , Blake Shaw via Guix-patches X-Patchwork-Original-From: Blake Shaw via Guix-patches via From: Blake Shaw X-getmail-retrieved-from-mailbox: Patches --- gnu/packages/notcurses.scm | 71 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 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..898903628c --- /dev/null +++ b/gnu/packages/notcurses.scm @@ -0,0 +1,71 @@ +(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 + (let ((commit "d15eb6003cbd65f11163916261cf6cd5600c77fa")) + (package + (name "notcurses") + (version "2.4.9") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/dankamongmen/notcurses") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "10jf6iai1r0xafrgaz978y9bqlaw1gvd11gc0yynwwp6rcs97g17")))) + (build-system cmake-build-system) + (arguments + `(#:tests? #f + #:build-type "-DVAR=val" + #:make-flags + (list + (string-append "prefix=" + (assoc-ref %outputs "out")) + "CC=gcc") + #:configure-flags + (map (lambda (s) + (string-append "-D" s)) + '("USE_CPP=off" "USE_COVERAGE=off" + "USE_DOXYGEN=off" "USE_DOCTEST=off" + "USE_GPM=off" "USE_MULTIMEDIA=ffmpeg" + "USE_PANDOC=off" "FSG_BUILD=ON")) + #:phases + (modify-phases %standard-phases + (add-before 'build 'patch-makefile-shell + (lambda _ + (setenv "HOME" "/tmp"))) + (add-before 'build 'set-prefix-in-makefile + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (substitute* "Makefile" + (("PREFIX =.*") + (string-append "PREFIX = " out "\n"))) + #true)))))) + (native-inputs + `(("ncurses" ,ncurses) + ("gcc-toolchain" ,gcc-10) + ("pkg-config" ,pkg-config))) + (inputs + `(("zlib" ,zlib) + ("ffmpeg" ,ffmpeg) + ("libunistring" ,libunistring))) + (synopsis "Not-ncurses: A library facilitating complex TUIs on modern terminals") + (description "Supporting vivid colors, multimedia, threads, & Unicode to the max.") + (home-page "https://notcurses.com/html/") + (license license:asl2.0))))