X-Git-Url: https://git.hcoop.net/jackhill/guix/guix.git/blobdiff_plain/f89aa1521af69b0e1a1350c2380579788b0f8945..3c986a7dc268756c097212de958f046b29b76c1b:/gnu/packages/ncurses.scm diff --git a/gnu/packages/ncurses.scm b/gnu/packages/ncurses.scm index daa146b217..7b2ab991cf 100644 --- a/gnu/packages/ncurses.scm +++ b/gnu/packages/ncurses.scm @@ -1,12 +1,13 @@ ;;; GNU Guix --- Functional package management for GNU -;;; Copyright © 2012, 2013, 2014, 2015, 2017 Ludovic Courtès +;;; Copyright © 2012, 2013, 2014, 2015, 2017, 2018, 2019 Ludovic Courtès ;;; Copyright © 2014, 2016 Mark H Weaver ;;; Copyright © 2015, 2017 Leo Famulari -;;; Copyright © 2016 Nils Gillmann +;;; Copyright © 2016 Nikita ;;; Copyright © 2016 Efraim Flashner ;;; Copyright © 2016 Jan Nieuwenhuizen -;;; Copyright © 2017 Marius Bakke -;;; Copyright © 2018 Tobias Geerinckx-Rice +;;; Copyright © 2017, 2019, 2020 Marius Bakke +;;; Copyright © 2018, 2019 Tobias Geerinckx-Rice +;;; Copyright © 2020 Michael Rohleder ;;; ;;; This file is part of GNU Guix. ;;; @@ -40,7 +41,7 @@ (define-public ncurses (package (name "ncurses") - (version "6.1") + (version "6.2") (source (origin (method url-fetch) (uri (string-append "mirror://gnu/ncurses/ncurses-" @@ -48,7 +49,7 @@ ".tar.gz")) (sha256 (base32 - "05qdmbmrrn88ii9f66rkcmcyzp1kb1ymkx7g040lfkd1nkp7w1da")))) + "17bcm2z1rdx5gmzj5fb8cp7f28aw5b4g2z4qvvqg3yg0fq66wc1h")))) (build-system gnu-build-system) (outputs '("out" "doc")) ;1 MiB of man pages @@ -84,8 +85,7 @@ (copy-file (assoc-ref (or native-inputs inputs) "rollup-patch") (string-append (getcwd) "/rollup-patch.sh.bz2")) (invoke "bzip2" "-d" "rollup-patch.sh.bz2") - (invoke "sh" "rollup-patch.sh") - #t)) + (invoke "sh" "rollup-patch.sh"))) (remove-shebang-phase '(lambda _ ;; To avoid retaining a reference to the bootstrap Bash via the @@ -178,6 +178,19 @@ ;; correct RUNPATH. ,(list 'unquote '(string-append "LDFLAGS=-Wl,-rpath=" (assoc-ref %outputs "out") "/lib")) + + ;; Starting from ncurses 6.1, "make install" runs "install -s" + ;; by default, which doesn't work for cross-compiled binaries + ;; because it invokes 'strip' instead of 'TRIPLET-strip'. Work + ;; around this. + ,@(if (%current-target-system) '("--disable-stripping") '()) + + ;; Do not assume a default search path in ld, even if it is only to + ;; filter it out in ncurses-config. Mainly because otherwise it ends + ;; up using the libdir from binutils, which makes little sense and + ;; causes an unnecessary runtime dependency. + "cf_cv_ld_searchpath=/no-ld-searchpath" + ;; MinGW: Use term-driver created for the MinGW port. ,@(if (target-mingw?) '("--enable-term-driver") '())))) #:tests? #f ; no "check" target @@ -187,11 +200,13 @@ ,post-install-phase) (add-before 'configure 'patch-makefile-SHELL ,patch-makefile-phase) - (add-after 'unpack 'remove-unneeded-shebang + (add-before 'patch-source-shebangs 'remove-unneeded-shebang ,remove-shebang-phase))))) - (self-native-input? #t) ; for `tic' (native-inputs - `(("pkg-config" ,pkg-config))) + `(,@(if (%current-target-system) + `(("self" ,this-package)) ;for `tic' + '()) + ("pkg-config" ,pkg-config))) (native-search-paths (list (search-path-specification (variable "TERMINFO_DIRS") @@ -222,18 +237,18 @@ ncursesw library provides wide character support.") (define-public dialog (package (name "dialog") - (version "1.3-20171209") + (version "1.3-20200228") (source (origin (method url-fetch) (uri (string-append - "http://invisible-mirror.net/archives/dialog/dialog-" + "https://invisible-mirror.net/archives/dialog/dialog-" version ".tgz")) (sha256 (base32 - "1rk72as52f5br3wcr74d00wib41w65g8wvi36mfgybly251984r0")))) + "1n8zbkigbzxw8gkw7qhzwzdyc7rbc7a0jcfy9z8ib7pf3qfw9y4z")))) (build-system gnu-build-system) (arguments - `(#:tests? #f)) ; no test suite + `(#:tests? #f)) ; no test suite (inputs `(("ncurses" ,ncurses))) (synopsis "Curses widgets") @@ -278,7 +293,7 @@ curses widgets, such as dialog boxes.") (setenv "CURSES_MENU_LDFLAGS" (string-append "-L" lib " -lmenu")) (setenv "CURSES_FORM_LDFLAGS" (string-append "-L" lib " -lform")) #t)))))) - (home-page "http://search.cpan.org/dist/Curses") + (home-page "https://metacpan.org/release/Curses") (synopsis "Terminal screen handling and optimization") (description "@code{Curses} is the interface between Perl and the curses library