From: Blake Shaw via Guix-patches via <guix-patches@gnu.org>
To: 52189@debbugs.gnu.org
Cc: Blake Shaw <blake@nonconstructivism.com>
Subject: [bug#52189] [PATCH] gnu: Add notcurses
Date: Tue, 30 Nov 2021 07:24:54 +0700 [thread overview]
Message-ID: <6a6031ead6f9f61bc8eed976374638089efdaf3f.1638231894.git.blake@nonconstructivism.com> (raw)
---
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))))
--
2.33.1
next reply other threads:[~2021-11-30 0:27 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-30 0:24 Blake Shaw via Guix-patches via [this message]
2021-12-01 16:01 ` [bug#52189] [PATCH] gnu: Add notcurses Nicolas Goaziou
2021-12-02 21:04 ` Blake Shaw via Guix-patches via
2021-12-03 20:47 ` Nicolas Goaziou
2021-12-02 22:20 ` Blake Shaw via Guix-patches via
2021-12-02 22:30 ` Blake Shaw via Guix-patches via
2023-09-01 21:43 ` bug#52189: " Vagrant Cascadian
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6a6031ead6f9f61bc8eed976374638089efdaf3f.1638231894.git.blake@nonconstructivism.com \
--to=guix-patches@gnu.org \
--cc=52189@debbugs.gnu.org \
--cc=blake@nonconstructivism.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.