;;; Copyright © 2021 Blake Shaw ;;; Copyright © 2022 Marius Bakke ;;; Copyright © 2023 Efraim Flashner ;;; ;;; 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 download) #:use-module (guix build-system cmake) #:use-module ((guix licenses) #:prefix license:) #: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)) (define-public notcurses (package (name "notcurses") (version "3.0.9") (source (origin (method url-fetch) ;; Note: the upstream git repository contains non-free media (see the ;; documentation for DFSG_BUILD; but the project provides a sanitized ;; tarball for distributions. If switching to a git source, we need ;; to find a way to elide the non-free demos with a source 'snippet'. (uri (string-append "https://github.com/dankamongmen/notcurses/releases" "/download/v" version "/notcurses_" version "+dfsg.1.orig.tar.xz")) (file-name (string-append name "-" version ".tar.xz")) (sha256 (base32 "1sj2m7sil2i3yw73z15947kypsp0rnapwpwanwzam15lbicc8c3y")))) (build-system cmake-build-system) (arguments `(#: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" ;; Unfortunately this disables the manpages. ,@(if (supported-package? pandoc) '() '("-DUSE_PANDOC=off")) ;; Don't include mouse support "-DUSE_GPM=off" ;; Use FFmpeg for multimedia support "-DUSE_MULTIMEDIA=ffmpeg" ;; Follow the Debian Free Software Guidelines, omitting nonfree content. "-DDFSG_BUILD=ON"))) (native-inputs (append (list pkg-config) (if (supported-package? pandoc) (list pandoc) '()) (list doctest))) (inputs (list ffmpeg libdeflate libunistring ncurses zlib)) (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))) cv64-linux. (%bootstrap-guile-hash, %bootstrap-coreutils&co, %bootstrap-binutils, %bootstrap-glibc, %bootstrap-gcc): Add entry for riscv64-linux. (raw-build-guile3): New procedure. (make-raw-bag): Use raw-build-guile3 for riscv64-linux. * guix/packages.scm (%supported-systems): Add riscv64-linux. (%cuirass-supported-systems): Remove riscv64-linux. * guix/utils.scm (target-64bit?): Add riscv64-linux. * m4/guix.m4: Add riscv64-linux as a supported system. * doc/guix.texi (GNU Distribution): Add riscv64-linux. Efraim Flashner 2021-12-14build: Adjust 'courage level' of different systems....* m4/guix.m4 (GUIX_ASSERT_SUPPORTED_SYSTEM): Add i586-gnu. Move powerpc-linux to unsupported but not needing courage. Add mips64el-linux to unsupported. Efraim Flashner 2021-05-23gnu: bootstrap: Add support for powerpc-linux....On 923bb70a1bff657125c3008f119a477e5cb57c2b gnu:glibc-for-bootstrap: Fix patch. Run ./pre-inst-env guix build --target=powerpc-linux-gnu bootstrap-tarballs Producing /gnu/store/dyj1wvayyp1ihaknkxniz1xamcf4yrhl-bootstrap-tarballs-0 With guix hash -rx /gnu/store/dyj1wvayyp1ihaknkxniz1xamcf4yrhl-bootstrap-tarballs-0 02xx2ydj28pwv3vflqffinpq1icj09gzi9icm8j4bwc4lca9irxn * gnu/packages/bootstrap.scm (%bootstrap-executables): Add entries for powerpc-linux. (%bootstrap-guile-hash, %bootstrap-coreutils&co, %bootstrap-binutils, %bootstrap-glibc, %bootstrap-gcc): Add entry for powerpc-linux. * gnu/packages.scm (%supported-systems): Add powerpc-linux. (%hydra-supported-systems): Remove powerpc-linux. * m4/guix.m4: Add powerpc-linux as a supported system. Efraim Flashner 2021-03-23Add powerpc64le-linux as a supported Guix architecture....This makes powerpc64le-linux a supported architecture for Guix, but not for Guix System. * Makefile.am (SUPPORTED_SYSTEMS): Add an entry for powerpc64le-linux. * etc/guix-install.sh (chk_sys_arch): Same. * guix/packages.scm (%supported-systems): Same. * m4/guix.m4 (GUIX_ASSERT_SUPPORTED_SYSTEM): Same. * tests/guix-build.sh (all_systems): Same. Chris Marusich 2021-03-17maint: Check whether Guile-zlib is recent enough....This is a followup to a04aef2430645357d7796969d4b6453478ff8a3f. * m4/guix.m4 (GUIX_CHECK_GUILE_ZLIB): New macro. * configure.ac: Use it when checking for Guile-zlib. Ludovic Courtès 2021-02-04build: Add '--with-channel-commit' and related configure flags....Partially fixes <https://bugs.gnu.org/45896>. * m4/guix.m4 (GUIX_CHANNEL_METADATA): New macro. * configure.ac: Use it. * guix/config.scm.in (%channel-metadata): Adjust accordingly. Ludovic Courtès