[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
25/49: gnu: ncurses: Update to 6.2.20210619.
From: |
guix-commits |
Subject: |
25/49: gnu: ncurses: Update to 6.2.20210619. |
Date: |
Fri, 23 Jul 2021 11:33:08 -0400 (EDT) |
mbakke pushed a commit to branch core-updates
in repository guix.
commit 17747d1135c7fea2e0a1d35665096c3373f13376
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Mon Jul 19 20:39:28 2021 +0200
gnu: ncurses: Update to 6.2.20210619.
* gnu/packages/ncurses.scm (ncurses)[version]: Set to 6.2.20210619.
[source](uri): Adjust accordingly.
[arguments]: Remove trailing #t's. Rewrite apply-rollup-patch phase to work
in the absence of the patch. Run the phase.
[native-inputs]: Add "rollup-patch".
---
gnu/packages/ncurses.scm | 47 ++++++++++++++++++++++++++++++-----------------
1 file changed, 30 insertions(+), 17 deletions(-)
diff --git a/gnu/packages/ncurses.scm b/gnu/packages/ncurses.scm
index 2e63565..edf475a 100644
--- a/gnu/packages/ncurses.scm
+++ b/gnu/packages/ncurses.scm
@@ -5,7 +5,7 @@
;;; Copyright © 2016 Nikita <nikita@n0.is>
;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2016 Jan Nieuwenhuizen <janneke@gnu.org>
-;;; Copyright © 2017, 2019, 2020 Marius Bakke <mbakke@fastmail.com>
+;;; Copyright © 2017, 2019, 2020, 2021 Marius Bakke <marius@gnu.org>
;;; Copyright © 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de>
;;;
@@ -36,16 +36,17 @@
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages swig)
#:use-module (gnu packages linux)
- #:use-module (guix utils))
+ #:use-module (guix utils)
+ #:use-module (ice-9 match))
(define-public ncurses
(package
(name "ncurses")
- (version "6.2")
+ (version "6.2.20210619")
(source (origin
(method url-fetch)
(uri (string-append "mirror://gnu/ncurses/ncurses-"
- (car (string-split version #\-))
+ (version-major+minor version)
".tar.gz"))
(sha256
(base32
@@ -57,8 +58,7 @@
(let ((patch-makefile-phase
'(lambda _
(for-each patch-makefile-SHELL
- (find-files "." "Makefile.in"))
- #t))
+ (find-files "." "Makefile.in"))))
(configure-phase
;; The 'configure' script does not understand '--docdir', so we
must
;; override that and use '--mandir' instead.
@@ -74,18 +74,20 @@
(if target
(cons (string-append "--host=" target)
configure-flags)
- configure-flags))
- #t)))
+ configure-flags)))))
(apply-rollup-patch-phase
;; Ncurses distributes "stable" patchsets to be applied on top
;; of the release tarball. These are only available as shell
;; scripts(!) so we decompress and apply them in a phase.
;; See <https://invisible-mirror.net/archives/ncurses/6.1/README>.
'(lambda* (#:key inputs native-inputs #:allow-other-keys)
- (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")))
+ (let ((rollup-patch (assoc-ref (or native-inputs inputs)
+ "rollup-patch")))
+ (when rollup-patch
+ (copy-file rollup-patch
+ (string-append (getcwd) "/rollup-patch.sh.bz2"))
+ (invoke "bzip2" "-d" "rollup-patch.sh.bz2")
+ (invoke "sh" "rollup-patch.sh")))))
(remove-shebang-phase
'(lambda _
;; To avoid retaining a reference to the bootstrap Bash via the
@@ -98,8 +100,7 @@
(("@SHELL@ \\$0")
"$0")
(("mandir=.*$")
- "mandir=share/man"))
- #t))
+ "mandir=share/man"))))
(post-install-phase
`(lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out")))
@@ -156,13 +157,12 @@
(when (file-exists? packagew.pc)
(symlink packagew.pc
package.pc))))
'())))
- '("curses" "ncurses" "form" "panel" "menu")))
- #t))))
+ '("curses" "ncurses" "form" "panel" "menu")))))))
`(#:configure-flags
,(cons*
'quasiquote
`(("--with-shared" "--without-debug" "--enable-widec"
-
+
"--enable-pc-files"
,(list 'unquote '(string-append "--with-pkg-config-libdir="
(assoc-ref %outputs "out")
@@ -195,6 +195,8 @@
,@(if (target-mingw?) '("--enable-term-driver") '()))))
#:tests? #f ; no "check" target
#:phases (modify-phases %standard-phases
+ (add-after 'unpack 'apply-rollup-patch
+ ,apply-rollup-patch-phase)
(replace 'configure ,configure-phase)
(add-after 'install 'post-install
,post-install-phase)
@@ -206,6 +208,17 @@
`(,@(if (%current-target-system)
`(("self" ,this-package)) ;for `tic'
'())
+ ("rollup-patch"
+ ,(origin
+ (method url-fetch)
+ (uri (match (string-split (version-major+minor+point version) #\.)
+ ((major minor point)
+ (string-append "https://invisible-mirror.net/archives"
+ "/ncurses/" major "." minor "/ncurses-"
+ major "." minor "-" point "-patch.sh.bz2"))))
+ (sha256
+ (base32
+ "1b6522cvi4066bgh9lp93q8lk93zcjjssvnw1512z447xvazy2y6"))))
("pkg-config" ,pkg-config)))
(native-search-paths
(list (search-path-specification
- 17/49: gnu: RHash: Update to 1.4.2., (continued)
- 17/49: gnu: RHash: Update to 1.4.2., guix-commits, 2021/07/23
- 20/49: gnu: coreutils-minimal: Do not build documentation., guix-commits, 2021/07/23
- 21/49: gnu: Perl: Resolve TODO., guix-commits, 2021/07/23
- 22/49: build-system/cmake: Define '%build-inputs' when cross-compiling., guix-commits, 2021/07/23
- 23/49: gnu: nghttp2: Update to 1.44.0., guix-commits, 2021/07/23
- 10/49: gnu: glib-networking: Remove unused input., guix-commits, 2021/07/23
- 16/49: gnu: RHash: Turn arguments into gexp., guix-commits, 2021/07/23
- 24/49: gnu: libuv: Update to 1.41.1., guix-commits, 2021/07/23
- 27/49: gnu: attr: Update to 2.5.1., guix-commits, 2021/07/23
- 29/49: gnu: fontconfig: Update to 2.13.94., guix-commits, 2021/07/23
- 25/49: gnu: ncurses: Update to 6.2.20210619.,
guix-commits <=
- 30/49: gnu: libspectre: Update to 0.2.9., guix-commits, 2021/07/23
- 33/49: gnu: util-linux: Update to 2.37., guix-commits, 2021/07/23
- 34/49: gnu: poppler: Update to 21.07.0., guix-commits, 2021/07/23
- 38/49: gnu: libgcrypt: Update to 1.8.8., guix-commits, 2021/07/23
- 18/49: gnu: Perl: Update to 5.34.0., guix-commits, 2021/07/23
- 19/49: gnu: Perl: Update cross-compilation code., guix-commits, 2021/07/23
- 26/49: gnu: acl: Update to 2.3.1., guix-commits, 2021/07/23
- 28/49: gnu: binutils: Update to 2.37., guix-commits, 2021/07/23
- 31/49: gnu: harfbuzz: Update to 2.8.2., guix-commits, 2021/07/23
- 32/49: gnu: pango: Update to 1.48.7., guix-commits, 2021/07/23