[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
18/19: gnu: Add most.
From: |
guix-commits |
Subject: |
18/19: gnu: Add most. |
Date: |
Wed, 20 Jul 2022 06:42:33 -0400 (EDT) |
nckx pushed a commit to branch master
in repository guix.
commit 3928f69d0017d66f4676846b2bade1378f5ac560
Author: Tobias Geerinckx-Rice <me@tobias.gr>
AuthorDate: Sun Jun 19 02:00:09 2022 +0200
gnu: Add most.
* gnu/packages/slang.scm (most): New public variable.
---
gnu/packages/slang.scm | 48 +++++++++++++++++++++++++++++++++++++++++++++++-
1 file changed, 47 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/slang.scm b/gnu/packages/slang.scm
index c8de04667f..90945dd7c3 100644
--- a/gnu/packages/slang.scm
+++ b/gnu/packages/slang.scm
@@ -2,7 +2,7 @@
;;; Copyright © 2015 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2015 Mark H Weaver <mhw@netris.org>
;;; Copyright © 2015 Eric Bavier <bavier@member.fsf.org>
-;;; Copyright © 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr>
+;;; Copyright © 2018, 2019, 2022 Tobias Geerinckx-Rice <me@tobias.gr>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -22,6 +22,7 @@
(define-module (gnu packages slang)
#:use-module (guix packages)
#:use-module (guix download)
+ #:use-module (guix gexp)
#:use-module (guix utils)
#:use-module (guix build-system gnu)
#:use-module ((guix licenses) #:prefix license:)
@@ -87,6 +88,51 @@ interpreter, it may also be used in a stand-alone fashion
through the use of
slsh, which is part of the S-Lang distribution.")
(license license:gpl2+)))
+(define-public most
+ (package
+ (name "most")
+ (version "5.1.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append "http://www.jedsoft.org/releases/most/most-"
+ version ".tar.gz"))
+ (sha256
+ (base32 "008537ns659pw2aag15imwjrxj73j26aqq90h285is6kz8gmv06v"))
+ (modules '((guix build utils)))
+ (snippet
+ #~(begin
+ (substitute* "src/Makefile.in"
+ (("/bin/cp") "cp"))))))
+ (build-system gnu-build-system)
+ (arguments
+ (list #:configure-flags
+ #~(list (string-append "--with-slang="
+ #$(this-package-input "slang")))
+ #:tests? #f ; no test suite
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'configure 'fix-configure-script
+ ;; Don't try to link to the long-obsolete (and gone)
-ltermcap.
+ (lambda _
+ (substitute* "configure"
+ (("(MISC_TERMINFO_DIRS)=.*" _ variable)
+ (format #f "~a=\"~a/share/terminfo\"\n" variable
+ #$(this-package-input "ncurses")))))))))
+ (inputs
+ (list ncurses slang))
+ (home-page "https://www.jedsoft.org/most/")
+ (synopsis
+ "@dfn{Pager} (terminal text viewer) with multiple windows and filters")
+ (description
+ "Most is a paging text viewer. It displays the contents of a file or the
+output of a command on the terminal, one screenful at a time, and lets you
+scroll up and down to (re)view the entire text.
+
+You can open multiple windows within @command{most} to view different files, or
+to inspect different parts of the same file, at the same time.")
+ (license license:gpl2+)))
+
(define-public newt
(package
(name "newt")
- 15/19: gnu: libdeflate: Update to 1.12., (continued)
- 15/19: gnu: libdeflate: Update to 1.12., guix-commits, 2022/07/20
- 17/19: gnu: hdparm: Update to 9.64., guix-commits, 2022/07/20
- 05/19: gnu: dmidecode: Use G-expressions., guix-commits, 2022/07/20
- 08/19: gnu: diffoscope: Update to 219., guix-commits, 2022/07/20
- 11/19: gnu: hwinfo: Update to 21.82., guix-commits, 2022/07/20
- 16/19: gnu: libdeflate: Use G-expressions., guix-commits, 2022/07/20
- 19/19: gnu: slang: Update code style., guix-commits, 2022/07/20
- 09/19: gnu: libdmtx: Update to 0.7.7., guix-commits, 2022/07/20
- 10/19: gnu: libdmtx: Omit static library., guix-commits, 2022/07/20
- 12/19: gnu: inxi-minimal: Update to 3.3.19-1., guix-commits, 2022/07/20
- 18/19: gnu: Add most.,
guix-commits <=