@@ -23,13 +23,13 @@ (define-module (gnu packages notcurses)
#: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 check)
+ #:use-module (gnu packages haskell-xyz)
#: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))
+ #:use-module (gnu packages libunistring))
(define-public notcurses
(package
@@ -46,28 +46,33 @@ (define-public notcurses
(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
+ `(#:make-flags
+ (list (string-append "CC=" ,(cc-for-target)))
+ ;; These flags are documented in 'INSTALL.md' in the source distribution.
+ #:configure-flags
+ '(;; Do not build "coverage"
+ "-DUSE_COVERAGE=off"
+ ;; Do not build HTML documentation
+ "-DUSE_DOXYGEN=off"
+ ;; Don't include mouse support
+ "-DUSE_GPM=off"
+ ;; Use FFmpeg for multimedia support
+ "-DUSE_MULTIMEDIA=ffmpeg"
+ ;; Follow the Debian Free Software Guidelines
+ ;; Yes, 'INSTALL.md' says that "OFF" means to omit non-free code.
+ "-DFSG_BUILD=OFF")))
(native-inputs
- `(("gcc-toolchain" ,gcc)
- ("ncurses" ,ncurses)
- ("pkg-config" ,pkg-config)))
+ `(("pkg-config" ,pkg-config)
+ ("pandoc" ,pandoc)
+ ("doctest" ,doctest)))
(inputs
`(("ffmpeg" ,ffmpeg)
("libdeflate" ,libdeflate)
("libunistring" ,libunistring)
+ ("ncurses" ,ncurses)
("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/")
+ (synopsis "Textual user interfaces")
+ (description "Notcurses is a library for building complex textual user
+interfaces on modern terminals.")
+ (home-page "https://notcurses.com")
(license license:asl2.0)))