gnu: sc-im: Update to 0.8.3.

* gnu/packages/networking.scm (sc-im): Update to 0.8.3.
[arguments]: Use modern style, patch bash path, and enable tests.
[native-inputs]: Add bash-minimal and valgrind.
This commit is contained in:
jgart 2023-06-13 01:12:33 -05:00
parent dcca13ed73
commit 3070297839
No known key found for this signature in database
GPG key ID: A52AA2B477B6DD35

View file

@ -1,7 +1,7 @@
;;; GNU Guix --- Functional package management for GNU ;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2020, 2021 Ryan Prior <rprior@protonmail.com> ;;; Copyright © 2020, 2021 Ryan Prior <rprior@protonmail.com>
;;; Copyright © 2020 Ekaitz Zarraga <ekaitz@elenq.tech> ;;; Copyright © 2020 Ekaitz Zarraga <ekaitz@elenq.tech>
;;; Copyright © 2021 Jorge Gomez <jgart@dismail.de> ;;; Copyright © 2021, 2023 jgart <jgart@dismail.de>
;;; ;;;
;;; This file is part of GNU Guix. ;;; This file is part of GNU Guix.
;;; ;;;
@ -20,6 +20,7 @@
(define-module (gnu packages spreadsheet) (define-module (gnu packages spreadsheet)
#:use-module (guix packages) #:use-module (guix packages)
#:use-module (guix gexp)
#:use-module (guix git-download) #:use-module (guix git-download)
#:use-module (guix download) #:use-module (guix download)
#:use-module (guix utils) #:use-module (guix utils)
@ -27,6 +28,7 @@ (define-module (gnu packages spreadsheet)
#:use-module (guix build-system python) #:use-module (guix build-system python)
#:use-module (guix licenses) #:use-module (guix licenses)
#:use-module (gnu packages base) #:use-module (gnu packages base)
#:use-module (gnu packages bash)
#:use-module (gnu packages bison) #:use-module (gnu packages bison)
#:use-module (gnu packages check) #:use-module (gnu packages check)
#:use-module (gnu packages compression) #:use-module (gnu packages compression)
@ -37,12 +39,13 @@ (define-module (gnu packages spreadsheet)
#:use-module (gnu packages python-web) #:use-module (gnu packages python-web)
#:use-module (gnu packages python-xyz) #:use-module (gnu packages python-xyz)
#:use-module (gnu packages statistics) #:use-module (gnu packages statistics)
#:use-module (gnu packages valgrind)
#:use-module (gnu packages xml)) #:use-module (gnu packages xml))
(define-public sc-im (define-public sc-im
(package (package
(name "sc-im") (name "sc-im")
(version "0.8.2") (version "0.8.3")
(home-page "https://github.com/andmarti1424/sc-im") (home-page "https://github.com/andmarti1424/sc-im")
(source (origin (source (origin
(method git-fetch) (method git-fetch)
@ -53,20 +56,26 @@ (define-public sc-im
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"1nrjnw8sg75i0hkcbvjv7gydjddxjm27d5m1qczpg29fk9991q8z")))) "10x50smn0xl9k6m0bgfcvpwgvivmjkysawvc4zyibc8nxlqz2na2"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
;; There are no tests at the moment. (list
;; https://github.com/andmarti1424/sc-im/issues/537 #:make-flags
;; https://github.com/andmarti1424/sc-im/pull/385 #~(list "-C" "src"
`(#:tests? #f (string-append "CC=" #$(cc-for-target))
#:make-flags (list "-C" "src" (string-append "prefix=" #$output))
(string-append "CC=" ,(cc-for-target))
(string-append "prefix=" %output))
#:phases #:phases
(modify-phases #~(modify-phases %standard-phases
%standard-phases (delete 'configure)
(delete 'configure)))) (add-after 'unpack 'fix-bash-path-declaration-in-script
(lambda _
(substitute* "tests/run_all_tests.sh"
(("/bin/bash") (string-append "#!" (which "bash"))))))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(with-directory-excursion "tests"
(when tests?
(invoke "bash" "run_all_tests.sh"))))))))
(inputs (inputs
(list gnuplot (list gnuplot
libxls libxls
@ -75,7 +84,11 @@ (define-public sc-im
libzip libzip
ncurses)) ncurses))
(native-inputs (native-inputs
(list pkg-config which bison)) (list bash-minimal
bison
pkg-config
valgrind
which))
(synopsis "Spreadsheet program with vim-like keybindings") (synopsis "Spreadsheet program with vim-like keybindings")
(description (description
"@code{sc-im} is a highly configurable spreadsheet program "@code{sc-im} is a highly configurable spreadsheet program