2014-04-06 19:36:40 +00:00
|
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
2021-03-27 21:42:15 +00:00
|
|
|
|
;;; Copyright © 2012, 2014, 2015, 2017, 2018, 2021 Ludovic Courtès <ludo@gnu.org>
|
2014-04-06 19:36:40 +00:00
|
|
|
|
;;; Copyright © 2014 David Thompson <dthompson2@worcester.edu>
|
2016-09-07 08:25:42 +00:00
|
|
|
|
;;; Copyright © 2015, 2016 Ricardo Wurmus <rekado@elephly.net>
|
2015-07-21 14:04:10 +00:00
|
|
|
|
;;; Copyright © 2015 Alex Kost <alezost@gmail.com>
|
2020-03-29 17:00:58 +00:00
|
|
|
|
;;; Copyright © 2015, 2016, 2020 Efraim Flashner <efraim@flashner.co.il>
|
2022-01-08 01:29:50 +00:00
|
|
|
|
;;; Copyright © 2017–2022 Tobias Geerinckx-Rice <me@tobias.gr>
|
2019-01-31 09:08:19 +00:00
|
|
|
|
;;; Copyright © 2018, 2019 Rutger Helling <rhelling@mykolab.com>
|
2019-01-17 11:27:18 +00:00
|
|
|
|
;;; Copyright © 2018, 2019 Marius Bakke <mbakke@fastmail.com>
|
2020-04-04 17:49:17 +00:00
|
|
|
|
;;; Copyright © 2020 Vincent Legoll <vincent.legoll@gmail.com>
|
2021-10-04 14:52:18 +00:00
|
|
|
|
;;; Copyright © 2021 Guillaume Le Vaillant <glv@posteo.net>
|
2021-11-21 12:25:22 +00:00
|
|
|
|
;;; Copyright © 2021 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
|
2022-03-21 20:15:29 +00:00
|
|
|
|
;;; Copyright © 2022 Maxim Cournoyer <maxim.cournoyer@gmail.com>
|
2022-11-09 05:02:01 +00:00
|
|
|
|
;;; Copyright © 2022 Imran Iqbal <imran@imraniqbal.org>
|
2014-04-06 19:36:40 +00:00
|
|
|
|
;;;
|
|
|
|
|
;;; 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 <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
|
|
(define-module (gnu packages man)
|
2022-01-08 01:29:50 +00:00
|
|
|
|
#:use-module (guix gexp)
|
2020-08-18 22:16:33 +00:00
|
|
|
|
#:use-module ((guix licenses) #:prefix license:)
|
2020-03-29 17:00:58 +00:00
|
|
|
|
#:use-module (guix git-download)
|
2014-04-06 19:36:40 +00:00
|
|
|
|
#:use-module (guix download)
|
|
|
|
|
#:use-module (guix packages)
|
2014-04-07 00:25:01 +00:00
|
|
|
|
#:use-module (guix build-system gnu)
|
2020-05-30 19:05:13 +00:00
|
|
|
|
#:use-module (guix build-system ruby)
|
2021-03-17 19:09:18 +00:00
|
|
|
|
#:use-module (guix utils)
|
2021-03-27 21:42:15 +00:00
|
|
|
|
#:use-module (gnu packages compression)
|
gnu: Move dbm databases to new module.
* gnu/packages/databases.scm (gdbm, bdb, bdb-5.3): Move from here...
* gnu/packages/dbm.scm: ...to this new module.
* gnu/local.mk (GNU_SYSTEM_MODULES): Add it.
* gnu/packages/audio.scm,
gnu/packages/avahi.scm,
gnu/packages/backup.scm,
gnu/packages/cobol.scm,
gnu/packages/cyrus-sasl.scm,
gnu/packages/databases.scm,
gnu/packages/finance.scm,
gnu/packages/game-development.scm,
gnu/packages/gnome.scm,
gnu/packages/guile.scm,
gnu/packages/ibus.scm,
gnu/packages/kerberos.scm,
gnu/packages/linux.scm,
gnu/packages/mail.scm,
gnu/packages/man.scm,
gnu/packages/nvi.scm,
gnu/packages/openldap.scm,
gnu/packages/package-management.scm,
gnu/packages/php.scm,
gnu/packages/pulseaudio.scm,
gnu/packages/python.scm,
gnu/packages/rdf.scm,
gnu/packages/ruby.scm,
gnu/packages/sawfish.scm: Update module references.
2019-01-16 13:48:47 +00:00
|
|
|
|
#:use-module (gnu packages dbm)
|
2014-04-07 00:25:01 +00:00
|
|
|
|
#:use-module (gnu packages flex)
|
2015-02-27 07:32:58 +00:00
|
|
|
|
#:use-module (gnu packages gawk)
|
2020-12-11 22:46:58 +00:00
|
|
|
|
#:use-module (gnu packages gettext)
|
2014-04-07 00:25:01 +00:00
|
|
|
|
#:use-module (gnu packages groff)
|
|
|
|
|
#:use-module (gnu packages less)
|
2014-04-07 00:30:37 +00:00
|
|
|
|
#:use-module (gnu packages perl)
|
2015-07-21 14:04:10 +00:00
|
|
|
|
#:use-module (gnu packages pkg-config)
|
2020-07-14 21:21:08 +00:00
|
|
|
|
#:use-module (gnu packages linux)
|
|
|
|
|
#:use-module (gnu packages xml))
|
|
|
|
|
|
|
|
|
|
(define-public xmltoman
|
|
|
|
|
(package
|
|
|
|
|
(name "xmltoman")
|
|
|
|
|
(version "0.4")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2021-10-04 14:52:18 +00:00
|
|
|
|
(uri (string-append "mirror://sourceforge/xmltoman/xmltoman/"
|
|
|
|
|
"xmltoman-" version ".tar.gz/"
|
|
|
|
|
"xmltoman-" version ".tar.gz"))
|
2020-07-14 21:21:08 +00:00
|
|
|
|
(sha256
|
|
|
|
|
(base32 "1c0lvzr7kdy63wbn1jv6s126ds7add3pxqb0vlxd3v5a2sir91wl"))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:tests? #f ; No tests
|
|
|
|
|
#:make-flags
|
|
|
|
|
(list
|
|
|
|
|
(string-append "PREFIX="
|
|
|
|
|
(assoc-ref %outputs "out")))
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(delete 'configure))))
|
|
|
|
|
(propagated-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list perl perl-xml-parser))
|
2020-07-14 21:21:08 +00:00
|
|
|
|
(synopsis "XML to Man converter")
|
|
|
|
|
(description "XMLtoMan and XMLMantoHTML are two small scripts to convert xml
|
|
|
|
|
to man pages in groff format or html. It features the usual man page items such
|
|
|
|
|
as description, options, see also, etc.")
|
|
|
|
|
(home-page "http://xmltoman.sourceforge.net/")
|
2020-08-18 22:16:33 +00:00
|
|
|
|
(license license:gpl2+)))
|
2014-04-06 19:36:40 +00:00
|
|
|
|
|
2020-05-30 19:05:13 +00:00
|
|
|
|
(define-public ronn
|
|
|
|
|
(package
|
|
|
|
|
(name "ronn")
|
|
|
|
|
(version "0.7.3")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri
|
|
|
|
|
(git-reference
|
gnu: Don't append '.git' to GitHub uris.
* gnu/packages/admin.scm (nmrpflash)[source]: Remove '.git' from URI.
* gnu/packages/aidc.scm (zxing-cpp),
* gnu/packages/assembly.scm (mbuild),
* gnu/packages/audio.scm (opensles, wildmidi, tinyalsa),
* gnu/packages/browser-extensions.scm (ublock-origin-chromium),
* gnu/packages/check.scm (mutest),
* gnu/packages/compression.scm (unshield),
* gnu/packages/coq.scm (subset),
* gnu/packages/dictionaries.scm (translate-shell),
* gnu/packages/disk.scm (memkind),
* gnu/packages/documentation.scm (latex2html),
* gnu/packages/emacs-xyz.scm (emacs-chronometrist,
emacs-flycheck-ledger, emacs-counsel-notmuch, emacs-spaceline,
emacs-org-generate),
* gnu/packages/embedded.scm (ebusd, ebusd-configuration),
* gnu/packages/enchant.scm (nuspell),
* gnu/packages/fontutils.scm (woff2),
* gnu/packages/geo.scm (memphis),
* gnu/packages/gimp.scm (mrg),
* gnu/packages/gnome-xyz.scm (gnome-shell-extension-appindicator),
* gnu/packages/gnome.scm (parlatype),
* gnu/packages/golang.scm (go-github-com-tv42-httpunix,
go-github-com-ayufan-golang-kardianos-service),
* gnu/packages/graphics.scm (eglexternalplatform, egl-wayland, mmm,
directfb, flux),
* gnu/packages/gstreamer.scm (openni2, ccextractor, libvisual,
graphene),
* gnu/packages/guile-xyz.scm (guile-srfi-180, guile-torrent),
* gnu/packages/image.scm (openjpeg-data),
* gnu/packages/java.scm (javacc),
* gnu/packages/language.scm (liblouis, liblouisutdml),
* gnu/packages/linux.scm (pamela, ttyebus),
* gnu/packages/lxqt.scm (lxqt-connman-applet),
* gnu/packages/mail.scm (libetpan),
* gnu/packages/man.scm (ronn),
* gnu/packages/music.scm (tascam-gtk, artyfx),
* gnu/packages/networking.scm (srt, lksctp-tools, nng, nanomsg),
* gnu/packages/python-crypto.scm (pure-python-otr),
* gnu/packages/qt.scm (qtspell),
* gnu/packages/raspberry-pi.scm (raspi-gpio, raspi-open-firmware),
* gnu/packages/rdp.scm (freerdp),
* gnu/packages/ruby.scm (ruby-prawn-templates, ruby-treetop, ruby-gimme,
ruby-standard, ruby-rubocop-ast, ruby-rexml, ruby-range-compressor,
ruby-regexp-property-values, ruby-regexp-parser, ruby-rubocop,
ruby-pdf-reader, ruby-pdf-inspector, ruby-prawn),
* gnu/packages/syncthing.scm (syncthing-gtk),
* gnu/packages/video.scm (svt-hevc, mediasdk, libvideogfx, libde265,
tslib),
* gnu/packages/xml.scm (libxmlb, libxmlplusplus)[source]: Same.
2020-11-19 18:18:54 +00:00
|
|
|
|
(url "https://github.com/rtomayko/ronn")
|
2020-05-30 19:05:13 +00:00
|
|
|
|
(commit version)))
|
|
|
|
|
(file-name
|
|
|
|
|
(git-file-name name version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32 "0fkniz7j1jp8v3i05m6hks3nsh6rzvjfi0ichpi7h4gwk5byxb94"))))
|
|
|
|
|
(build-system ruby-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:tests? #f)) ; Library hpricot not available
|
|
|
|
|
(synopsis "Manual authoring tool")
|
|
|
|
|
(description "Ronn builds manuals. It converts simple, human readable
|
|
|
|
|
textfiles to roff for terminal display, and also to HTML for the web.")
|
|
|
|
|
(home-page "https://rtomayko.github.io/ronn/")
|
2020-08-18 22:16:33 +00:00
|
|
|
|
(license license:expat)))
|
2020-05-30 19:05:13 +00:00
|
|
|
|
|
2014-04-06 19:36:40 +00:00
|
|
|
|
(define-public libpipeline
|
|
|
|
|
(package
|
|
|
|
|
(name "libpipeline")
|
2020-08-19 02:21:17 +00:00
|
|
|
|
(version "1.5.3")
|
2014-04-06 19:36:40 +00:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"mirror://savannah/libpipeline/libpipeline-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2020-08-19 02:21:17 +00:00
|
|
|
|
"1c5dl017xil2ssb6a5vg927bnsbc9vymfgi9ahvqbb8gypx0igsx"))))
|
2014-04-06 19:36:40 +00:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(home-page "http://libpipeline.nongnu.org/")
|
|
|
|
|
(synopsis "C library for manipulating pipelines of subprocesses")
|
|
|
|
|
(description
|
|
|
|
|
"libpipeline is a C library for manipulating pipelines of subprocesses in
|
|
|
|
|
a flexible and convenient way.")
|
2020-08-18 22:16:33 +00:00
|
|
|
|
(license license:gpl3+)))
|
2014-04-07 00:25:01 +00:00
|
|
|
|
|
|
|
|
|
(define-public man-db
|
|
|
|
|
(package
|
|
|
|
|
(name "man-db")
|
2022-03-21 20:15:29 +00:00
|
|
|
|
(version "2.10.2")
|
2014-04-07 00:25:01 +00:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "mirror://savannah/man-db/man-db-"
|
|
|
|
|
version ".tar.xz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2022-03-21 20:15:29 +00:00
|
|
|
|
"0kaiymd5lh4dnp6z15fnvfg0ir81kdxp5l690ccp64ra956rb5zf"))))
|
2014-04-07 00:25:01 +00:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
2022-01-08 01:29:50 +00:00
|
|
|
|
(list #:phases
|
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
|
(add-after 'patch-source-shebangs 'patch-test-shebangs
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
;; Patch shebangs in test scripts.
|
|
|
|
|
(let ((out (assoc-ref outputs "out")))
|
|
|
|
|
(for-each (lambda (file)
|
|
|
|
|
(substitute* file
|
|
|
|
|
(("#! /bin/sh")
|
|
|
|
|
(string-append "#!" (which "sh")))))
|
2022-03-22 15:29:25 +00:00
|
|
|
|
(find-files "src/tests")))))
|
2022-01-08 01:29:50 +00:00
|
|
|
|
(add-after 'unpack 'patch-absolute-paths
|
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
|
(substitute* "src/man.c"
|
|
|
|
|
(("\"iconv\"")
|
|
|
|
|
(string-append "\"" (which "iconv") "\"")))
|
|
|
|
|
;; Embed an absolute reference to "preconv", otherwise it
|
|
|
|
|
;; falls back to searching in PATH and ultimately fails
|
|
|
|
|
;; to render unicode data (see <https://bugs.gnu.org/30785>).
|
|
|
|
|
(substitute* "lib/encodings.c"
|
|
|
|
|
(("groff_preconv = NULL")
|
|
|
|
|
(string-append "groff_preconv = \""
|
|
|
|
|
(assoc-ref inputs "groff-minimal")
|
2022-03-21 20:15:29 +00:00
|
|
|
|
"/bin/preconv\""))))))
|
2022-01-08 01:29:50 +00:00
|
|
|
|
#:configure-flags
|
2022-03-21 20:15:29 +00:00
|
|
|
|
#~(cons*
|
|
|
|
|
;; Disable setuid man user.
|
|
|
|
|
"--disable-setuid"
|
|
|
|
|
;; Don't constrain ownership of system-wide cache files.
|
|
|
|
|
;; Otherwise creating the manpage database fails with
|
|
|
|
|
;; man-db > 2.7.5.
|
|
|
|
|
"--disable-cache-owner"
|
|
|
|
|
(string-append "--with-pager="
|
|
|
|
|
(search-input-file %build-inputs "bin/less"))
|
|
|
|
|
(string-append "--with-gzip="
|
|
|
|
|
(search-input-file %build-inputs "bin/gzip"))
|
|
|
|
|
(string-append "--with-bzip2="
|
|
|
|
|
(search-input-file %build-inputs "bin/bzip2"))
|
|
|
|
|
(string-append "--with-xz="
|
|
|
|
|
(search-input-file %build-inputs "bin/xz"))
|
|
|
|
|
(string-append "--with-zstd="
|
|
|
|
|
(search-input-file %build-inputs "bin/zstd"))
|
|
|
|
|
(string-append "--with-col="
|
|
|
|
|
(search-input-file %build-inputs "bin/col"))
|
|
|
|
|
;; The default systemd directories ignore --prefix.
|
|
|
|
|
(string-append "--with-systemdsystemunitdir="
|
|
|
|
|
#$output "/lib/systemd/system")
|
|
|
|
|
(string-append "--with-systemdtmpfilesdir="
|
|
|
|
|
#$output "/lib/tmpfiles.d")
|
|
|
|
|
(map (lambda (prog)
|
|
|
|
|
(string-append
|
|
|
|
|
"--with-" prog "="
|
|
|
|
|
#$(this-package-input "groff-minimal")
|
|
|
|
|
(string-append "/bin/" prog)))
|
|
|
|
|
'("nroff" "eqn" "neqn" "tbl" "refer" "pic")))
|
2022-01-08 01:29:50 +00:00
|
|
|
|
;; At run time we should refer to GROFF-MINIMAL, not GROFF (the latter
|
|
|
|
|
;; pulls in Perl.)
|
2022-03-22 15:29:25 +00:00
|
|
|
|
#:disallowed-references (list groff)))
|
2014-04-07 00:25:01 +00:00
|
|
|
|
(native-inputs
|
2022-03-21 20:15:29 +00:00
|
|
|
|
(list pkg-config flex
|
|
|
|
|
;; Groff is needed at build time for troff, grops, soelim, etc.
|
|
|
|
|
groff))
|
2014-04-07 00:25:01 +00:00
|
|
|
|
(inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list gdbm
|
|
|
|
|
groff-minimal
|
|
|
|
|
less
|
|
|
|
|
libpipeline
|
2022-03-21 20:15:29 +00:00
|
|
|
|
libseccomp
|
|
|
|
|
util-linux
|
|
|
|
|
zstd))
|
2014-04-15 20:23:12 +00:00
|
|
|
|
(native-search-paths
|
|
|
|
|
(list (search-path-specification
|
|
|
|
|
(variable "MANPATH")
|
packages: Add 'file-type' field to 'search-path-specification'.
Fixes <http://bugs.gnu.org/18033>.
* guix/packages.scm (<search-path-specification>): Rename 'directories'
field to 'files'. Add 'file-type'.
(search-path-specification->sexp): Honor 'file-type'.
* gnu/packages/autotools.scm, gnu/packages/bootstrap.scm,
gnu/packages/cross-base.scm, gnu/packages/games.scm,
gnu/packages/gcc.scm, gnu/packages/glib.scm,
gnu/packages/guile.scm, gnu/packages/man.scm,
gnu/packages/perl.scm, gnu/packages/pkg-config.scm,
gnu/packages/python.scm, gnu/packages/ruby.scm,
gnu/packages/xfce.scm: Change 'directories' to 'files'.
* tests/packages.scm ("search paths"): Change 'directories' field to
'files'.
* guix/scripts/environment.scm (for-each-search-path): Likewise.
2014-12-27 22:22:08 +00:00
|
|
|
|
(files '("share/man")))))
|
2014-04-07 00:25:01 +00:00
|
|
|
|
(home-page "http://man-db.nongnu.org/")
|
|
|
|
|
(synopsis "Standard Unix documentation system")
|
|
|
|
|
(description
|
|
|
|
|
"Man-db is an implementation of the standard Unix documentation system
|
|
|
|
|
accessed using the man command. It uses a Berkeley DB database in place of
|
|
|
|
|
the traditional flat-text whatis databases.")
|
2020-08-18 22:16:33 +00:00
|
|
|
|
(license license:gpl2+)))
|
2014-04-07 00:30:37 +00:00
|
|
|
|
|
2021-03-27 21:42:15 +00:00
|
|
|
|
(define-public mandoc
|
|
|
|
|
(package
|
|
|
|
|
(name "mandoc")
|
2021-09-24 15:47:51 +00:00
|
|
|
|
(version "1.14.6")
|
2021-03-27 21:42:15 +00:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://mandoc.bsd.lv/snapshots/mandoc-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2021-09-24 15:47:51 +00:00
|
|
|
|
"174x2x9ws47b14lm339j6rzm7mxy1j3qhh484khscw0yy1qdbw4b"))))
|
2021-03-27 21:42:15 +00:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:test-target "regress"
|
|
|
|
|
#:phases (modify-phases %standard-phases
|
|
|
|
|
(add-before 'configure 'set-prefix
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(substitute* "configure"
|
|
|
|
|
(("^CC=.*")
|
|
|
|
|
(string-append "CC=" ,(cc-for-target) "\n"))
|
|
|
|
|
(("^DEFCFLAGS=\\\\\"")
|
|
|
|
|
"DEFCFLAGS=\"-O2 ")
|
|
|
|
|
(("^UTF8_LOCALE=.*") ;used for tests
|
|
|
|
|
"UTF8_LOCALE=en_US.UTF-8\n")
|
|
|
|
|
(("^MANPATH_(BASE|DEFAULT)=.*" _ which)
|
|
|
|
|
(string-append "MANPATH_" which "="
|
|
|
|
|
"/run/current-system/profile/share/man\n"))
|
|
|
|
|
(("^PREFIX=.*")
|
|
|
|
|
(string-append "PREFIX=" (assoc-ref outputs "out")
|
|
|
|
|
"\n"))))))))
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(native-inputs (list perl)) ;used to run tests
|
|
|
|
|
(inputs (list zlib))
|
2021-09-01 23:58:53 +00:00
|
|
|
|
(native-search-paths
|
|
|
|
|
(list (search-path-specification
|
|
|
|
|
(variable "MANPATH")
|
|
|
|
|
(files '("share/man")))))
|
2021-03-27 21:42:15 +00:00
|
|
|
|
(synopsis "Tools for BSD mdoc and man pages")
|
|
|
|
|
(description
|
|
|
|
|
"mandoc is a suite of tools compiling mdoc, the roff macro language of
|
|
|
|
|
choice for BSD manual pages, and man, the predominant historical language for
|
|
|
|
|
UNIX manuals. It is small and quite fast. The main component of the toolset
|
|
|
|
|
is the @command{mandoc} utility program, based on the libmandoc validating
|
|
|
|
|
compiler, to format output for UTF-8 and ASCII UNIX terminals, HTML 5,
|
|
|
|
|
PostScript, and PDF. Additional tools include the @command{man} viewer, and
|
|
|
|
|
@command{apropos} and @command{whatis}.")
|
|
|
|
|
(home-page "https://mandoc.bsd.lv/")
|
|
|
|
|
(license license:isc)))
|
|
|
|
|
|
2014-04-12 21:46:58 +00:00
|
|
|
|
(define-public man-pages
|
|
|
|
|
(package
|
|
|
|
|
(name "man-pages")
|
2022-10-09 00:00:01 +00:00
|
|
|
|
(version "6.00")
|
2019-03-07 15:40:33 +00:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri
|
|
|
|
|
(list (string-append "mirror://kernel.org/linux/docs/man-pages/"
|
|
|
|
|
"man-pages-" version ".tar.xz")
|
|
|
|
|
(string-append "mirror://kernel.org/linux/docs/man-pages/Archive/"
|
|
|
|
|
"man-pages-" version ".tar.xz")))
|
|
|
|
|
(sha256
|
2022-10-09 00:00:01 +00:00
|
|
|
|
(base32 "1252c1356z5spya3yl0lcmmymglx3bmfwmamiz1y5l13xqpwbnwy"))))
|
2014-04-12 21:46:58 +00:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
2022-10-09 00:00:00 +00:00
|
|
|
|
(list
|
|
|
|
|
#:phases
|
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
|
(add-after 'unpack 'skip-html
|
|
|
|
|
;; As of 6.00, this package tries to convert man pages to HTML with
|
|
|
|
|
;; man2html. The only Guix package currently providing that script
|
|
|
|
|
;; is man-for-txr, but that version seems unable to handle relative
|
|
|
|
|
;; ‘.so’ statements properly. Disable HTML generation.
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* "lib/build-html.mk"
|
|
|
|
|
(("(html:) .*" _ target) (string-append target "\n")))))
|
|
|
|
|
(delete 'configure))
|
2014-11-02 22:23:43 +00:00
|
|
|
|
|
2022-10-09 00:00:00 +00:00
|
|
|
|
;; The 'all' target depends on three targets that directly populate
|
|
|
|
|
;; $(MANDIR) based on its current contents. Doing that in parallel
|
|
|
|
|
;; leads to undefined behavior (see <http://bugs.gnu.org/18701>.)
|
|
|
|
|
#:parallel-build? #f
|
2014-11-02 22:23:43 +00:00
|
|
|
|
|
2022-10-09 00:00:00 +00:00
|
|
|
|
#:tests? #f
|
|
|
|
|
#:make-flags
|
|
|
|
|
#~(list (string-append "mandir=" #$output "/share/man"))))
|
2017-03-15 15:04:06 +00:00
|
|
|
|
(home-page "https://www.kernel.org/doc/man-pages/")
|
2014-04-12 21:46:58 +00:00
|
|
|
|
(synopsis "Development manual pages from the Linux project")
|
|
|
|
|
(description
|
|
|
|
|
"This package provides traditional Unix \"man pages\" documenting the
|
|
|
|
|
Linux kernel and C library interfaces employed by user-space programs.")
|
|
|
|
|
|
|
|
|
|
;; Each man page has its own license; some are GPLv2+, some are MIT/X11.
|
2020-08-18 22:16:33 +00:00
|
|
|
|
(license license:gpl2+)))
|
2014-04-12 21:46:58 +00:00
|
|
|
|
|
2022-08-27 23:37:54 +00:00
|
|
|
|
(define-public man-pages-posix
|
|
|
|
|
(package
|
|
|
|
|
(name "man-pages-posix")
|
|
|
|
|
(version "2013-a")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "mirror://kernel.org/linux/docs/man-pages/"
|
|
|
|
|
"man-pages-posix/man-pages-posix-" version
|
|
|
|
|
".tar.xz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32 "0258j05zdrxpgdj8nndbyi7bvrs8fxdksb0xbfrylzgzfmf3lqqr"))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:tests? #f
|
|
|
|
|
;; The compress-documentation phase doesn't pick up on our manpages as
|
|
|
|
|
;; its regex doesn't support trailing letters, so manually compress.
|
|
|
|
|
#:make-flags ,#~(list (string-append "prefix=" #$output) "gz")
|
|
|
|
|
#:license-file-regexp "POSIX-COPYRIGHT"
|
|
|
|
|
#:phases (modify-phases %standard-phases (delete 'configure))))
|
|
|
|
|
(home-page "https://www.kernel.org/doc/man-pages/")
|
|
|
|
|
(synopsis "Man pages from the POSIX.1-2013 standard")
|
|
|
|
|
(description
|
|
|
|
|
"This package provides excerpts from the POSIX.1-2008 and TC1 standards
|
|
|
|
|
(collectively, POSIX.1-2013) in manual page form. While the Linux man-pages
|
|
|
|
|
project documents the system as it exists on Linux- and glibc-based systems,
|
|
|
|
|
this package documents the portable software API as nominally implemented by
|
|
|
|
|
many Unix-likes.")
|
|
|
|
|
(license (license:fsdg-compatible "file://POSIX-COPYRIGHT"
|
|
|
|
|
"Redistribution of this material is permitted so long as this
|
|
|
|
|
notice and the corresponding notices within each POSIX manual page are retained
|
|
|
|
|
on any distribution, and the nroff source is included."))))
|
|
|
|
|
|
2014-04-07 00:30:37 +00:00
|
|
|
|
(define-public help2man
|
2020-12-11 22:46:58 +00:00
|
|
|
|
;; TODO: Manual pages for languages not available from the implicit
|
|
|
|
|
;; input "locales" contain the original (English) text.
|
2014-04-07 00:30:37 +00:00
|
|
|
|
(package
|
|
|
|
|
(name "help2man")
|
2021-12-18 03:41:52 +00:00
|
|
|
|
(version "1.48.5")
|
2014-04-07 00:30:37 +00:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "mirror://gnu/help2man/help2man-"
|
|
|
|
|
version ".tar.xz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2021-12-18 03:41:52 +00:00
|
|
|
|
"1gl24n9am3ivhql1gs9lffb415irg758fhxyk4ryssiflk5f8fb7"))))
|
2014-04-07 00:30:37 +00:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments `(;; There's no `check' target.
|
2020-12-11 22:46:58 +00:00
|
|
|
|
#:tests? #f
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-after 'unpack 'patch-help2man-with-perl-gettext
|
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
|
(let ((lib (assoc-ref inputs "perl-gettext"))
|
|
|
|
|
(fmt "use lib '~a/lib/perl5/site_perl';~%~a"))
|
|
|
|
|
(substitute* "help2man.PL"
|
|
|
|
|
(("^use Locale::gettext.*$" load)
|
|
|
|
|
(format #f fmt lib load))))
|
|
|
|
|
#t)))))
|
2014-04-07 00:30:37 +00:00
|
|
|
|
(inputs
|
|
|
|
|
`(("perl" ,perl)
|
2021-11-21 12:25:22 +00:00
|
|
|
|
,@(if (%current-target-system)
|
|
|
|
|
'()
|
|
|
|
|
`(("perl-gettext" ,perl-gettext)))))
|
2019-07-05 08:58:04 +00:00
|
|
|
|
(native-inputs
|
2020-12-11 22:46:58 +00:00
|
|
|
|
`(("perl" ,perl)
|
|
|
|
|
("gettext" ,gettext-minimal)))
|
2017-03-29 22:48:16 +00:00
|
|
|
|
(home-page "https://www.gnu.org/software/help2man/")
|
2014-04-07 00:30:37 +00:00
|
|
|
|
(synopsis "Automatically generate man pages from program --help")
|
|
|
|
|
(description
|
|
|
|
|
"GNU help2man is a program that converts the output of standard
|
|
|
|
|
\"--help\" and \"--version\" command-line arguments into a manual page
|
|
|
|
|
automatically.")
|
2020-08-18 22:16:33 +00:00
|
|
|
|
(license license:gpl3+)))
|
2015-02-27 07:32:58 +00:00
|
|
|
|
|
2018-12-20 07:53:05 +00:00
|
|
|
|
(define-public scdoc
|
|
|
|
|
(package
|
|
|
|
|
(name "scdoc")
|
2022-11-09 05:02:01 +00:00
|
|
|
|
(version "1.11.2")
|
2018-12-20 07:53:05 +00:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
2021-03-17 18:56:59 +00:00
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://git.sr.ht/~sircmpwn/scdoc")
|
|
|
|
|
(commit version)))
|
|
|
|
|
(file-name (git-file-name name version))
|
2018-12-20 07:53:05 +00:00
|
|
|
|
(sha256
|
2022-11-09 05:02:01 +00:00
|
|
|
|
(base32 "07c2vmdgqifbynm19zjnrk7h102pzrriv73izmx8pmd7b3xl5mfq"))))
|
2018-12-20 07:53:05 +00:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
2019-10-28 15:46:33 +00:00
|
|
|
|
`(#:make-flags
|
2021-03-17 19:09:18 +00:00
|
|
|
|
(list (string-append "CC=" ,(cc-for-target))
|
|
|
|
|
(string-append "PREFIX=" (assoc-ref %outputs "out")))
|
2018-12-20 07:53:05 +00:00
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
2019-10-28 15:46:33 +00:00
|
|
|
|
(delete 'configure))))
|
2018-12-20 07:53:05 +00:00
|
|
|
|
(home-page "https://git.sr.ht/~sircmpwn/scdoc")
|
|
|
|
|
(synopsis "Simple man page generator")
|
|
|
|
|
(description "scdoc is a simple man page generator written for POSIX systems
|
|
|
|
|
in C99.")
|
|
|
|
|
;; MIT license, see /share/doc/scdoc-1.6.0/COPYING.
|
2020-08-18 22:16:33 +00:00
|
|
|
|
(license license:expat)))
|
2018-12-20 07:53:05 +00:00
|
|
|
|
|
2015-02-27 07:32:58 +00:00
|
|
|
|
(define-public txt2man
|
|
|
|
|
(package
|
|
|
|
|
(name "txt2man")
|
2017-03-01 06:05:03 +00:00
|
|
|
|
(version "1.6.0")
|
2015-02-27 07:32:58 +00:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
2020-03-29 17:00:58 +00:00
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://github.com/mvertes/txt2man")
|
|
|
|
|
(commit (string-append "txt2man-" version))))
|
|
|
|
|
(file-name (git-file-name name version))
|
2015-02-27 07:32:58 +00:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2020-03-29 17:00:58 +00:00
|
|
|
|
"1razjpvlcp85hqli77mwr9nmn5jnv3lm1fxbbqjpx1brv3h1lvm5"))))
|
2015-02-27 07:32:58 +00:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:tests? #f ; no "check" target
|
|
|
|
|
#:make-flags (list (string-append "prefix=" (assoc-ref %outputs "out")))
|
gnu: Use 'modify-phases' syntax.
* gnu/packages/admin.scm (mingetty, clusterssh, wpa-supplicant-minimal,
wpa-supplicant, wakelan, acpica, tree, direvent, dstat)[arguments]: Use
'modify-phases' syntax.
* gnu/packages/algebra.scm (arb)[arguments]: Likewise.
* gnu/packages/apr.scm (apr-util)[arguments]: Likewise.
* gnu/packages/audio.scm (clalsadrv, fluidsynth, faad2, lv2-mda-piano,
lv2-mda-epiano, timidity++, vamp, soundtouch, portaudio, rsound,
zita-convolver, zita-alsa-pcmi)[arguments]: Likewise.
* gnu/packages/backup.scm (rdup, btar)[arguments]: Likewise.
* gnu/packages/bioinformatics.scm (bedops, bwa, crossmap, express,
flexbar, grit, hisat, ngs-sdk, subread)[arguments]: Likewise.
* gnu/packages/bittorrent.scm (transmission)[arguments]: Likewise.
* gnu/packages/cdrom.scm (cd-discid)[arguments]: Likewise.
* gnu/packages/compression.scm (sharutils)[arguments]: Likewise.
* gnu/packages/conky.scm (conky)[arguments]: Likewise.
* gnu/packages/databases.scm (bdb, bdb-5.3)[arguments]: Likewise.
* gnu/packages/debug.scm (delta, c-reduce)[arguments]: Likewise.
* gnu/packages/display-managers.scm (slim)[arguments]: Likewise.
* gnu/packages/dns.scm (dnsmasq)[arguments]: Likewise.
* gnu/packages/emacs.scm (geiser, emacs-wget, bbdb)[arguments]: Likewise.
* gnu/packages/engineering.scm (pcb)[arguments]: Likewise.
* gnu/packages/firmware.scm (ath9k-htc-firmware)[arguments]: Likewise.
* gnu/packages/flashing-tools.scm (flashrom)[arguments]: Likewise.
* gnu/packages/fltk.scm (fltk)[arguments]: Likewise.
* gnu/packages/freedesktop.scm (python-pyxdg)[arguments]: Likewise.
* gnu/packages/gd.scm (perl-gd)[arguments]: Likewise.
* gnu/packages/gkrellm.scm (gkrellm)[arguments]: Likewise.
* gnu/packages/glib.scm (glibmm)[arguments]: Likewise.
* gnu/packages/gl.scm (glew)[arguments]: Likewise.
* gnu/packages/gnome.scm (icon-naming-utils, orbit2, libbonobo, gnome-vfs,
libgnome, libbonoboui, goffice-0.8, dconf)[arguments]: Likewise.
* gnu/packages/gprolog.scm (gprolog)[arguments]: Likewise.
* gnu/packages/gps.scm (gpscorrelate)[arguments]: Likewise.
* gnu/packages/graphics.scm (agg)[arguments]: Likewise.
* gnu/packages/gtk.scm (ganv, girara, gtksourceview-2, guile-present,
python2-pycairo)[arguments]: Likewise.
* gnu/packages/guile.scm (guile-1.8)[arguments]: Likewise.
* gnu/packages/guile-wm.scm (guile-wm)[arguments]: Likewise.
* gnu/packages/hugs.scm (hugs)[arguments]: Likewise.
* gnu/packages/hurd.scm (gnumach-headers, hurd-headers, hurd-minimal)
[arguments]: Likewise.
* gnu/packages/image-viewers.scm (feh, sxiv)[arguments]: Likewise.
* gnu/packages/libcanberra.scm (libcanberra)[arguments]: Likewise.
* gnu/packages/linux.scm (bridge-utils, iw, fuse, unionfs-fuse/static,
lm-sensors, i2c-tools, xsensors, perf, mdadm, libaio, module-init-tools)
[arguments]: Likewise.
* gnu/packages/lisp.scm (ccl)[arguments]: Likewise.
* gnu/packages/lout.scm (lout)[arguments]: Likewise.
* gnu/packages/lua.scm (luajit)[arguments]: Likewise.
* gnu/packages/machine-learning.scm (shogun)[arguments]: Likewise.
* gnu/packages/mail.scm (exim)[arguments]: Likewise.
* gnu/packages/man.scm (man-pages, txt2man)[arguments]: Likewise.
* gnu/packages/maths.scm (lapack, superlu-dist, openlibm, openspecfun)
[arguments]: Likewise.
* gnu/packages/messaging.scm (bitlbee)[arguments]: Likewise.
* gnu/packages/mp3.scm (libmad, id3lib, mp3info)[arguments]: Likewise.
* gnu/packages/music.scm (solfege)[arguments]: Likewise.
* gnu/packages/noweb.scm (noweb)[arguments]: Likewise.
* gnu/packages/patchutils.scm (patchutils, quilt, colordiff)[arguments]:
Likewise.
* gnu/packages/pdf.scm (xpdf, zathura-cb, zathura-ps, zathura-djvu,
zathura-pdf-poppler, zathura, podofo, fbida)[arguments]: Likewise.
* gnu/packages/perl.scm (perl-file-list, perl-test-harness)[arguments]:
Likewise.
* gnu/packages/photo.scm (gphoto2)[arguments]: Likewise.
* gnu/packages/popt.scm (popt)[arguments]: Likewise.
* gnu/packages/pretty-print.scm (source-highlight, astyle)[arguments]:
Likewise.
* gnu/packages/pumpio.scm (pumpa)[arguments]: Likewise.
* gnu/packages/python.scm (python-passlib, python-pycrypto, python2-empy,
python-sqlalchemy, python-docopt)[arguments]: Likewise.
* gnu/packages/rdf.scm (lrdf)[arguments]: Likewise.
* gnu/packages/regex.scm (tre)[arguments]: Likewise.
* gnu/packages/rrdtool.scm (rrdtool)[arguments]: Likewise.
* gnu/packages/ruby.scm (ruby-2.1, ruby-1.8)[arguments]: Likewise.
* gnu/packages/sawfish.scm (sawfish)[arguments]: Likewise.
* gnu/packages/scheme.scm (racket)[arguments]: Likewise.
* gnu/packages/sdl.scm (guile-sdl)[arguments]: Likewise.
* gnu/packages/serveez.scm (serveez)[arguments]: Likewise.
* gnu/packages/skribilo.scm (skribilo)[arguments]: Likewise.
* gnu/packages/smalltalk.scm (smalltalk)[arguments]: Likewise.
* gnu/packages/suckless.scm (dmenu, slock)[arguments]: Likewise.
* gnu/packages/tcl.scm (expect)[arguments]: Likewise.
* gnu/packages/telephony.scm (commoncpp)[arguments]: Likewise.
* gnu/packages/textutils.scm (recode, libgtextutils)[arguments]:
Likewise.
* gnu/packages/time.scm (time)[arguments]: Likewise.
* gnu/packages/tor.scm (privoxy)[arguments]: Likewise.
* gnu/packages/uucp.scm (uucp)[arguments]: Likewise.
* gnu/packages/video.scm (libdvdnav-4)[arguments]: Likewise.
* gnu/packages/web-browsers.scm (lynx)[arguments]: Likewise.
* gnu/packages/web.scm (tinyproxy)[arguments]: Likewise.
* gnu/packages/wicd.scm (wicd)[arguments]: Likewise.
* gnu/packages/wm.scm (bspwm)[arguments]: Likewise.
* gnu/packages/xdisorg.scm (sxhkd, xcape)[arguments]: Likewise.
* gnu/packages/xfce.scm (xfconf)[arguments]: Likewise.
* gnu/packages/xfig.scm (transfig)[arguments]: Likewise.
* gnu/packages/xorg.scm (imake)[arguments]: Likewise.
2017-07-29 15:28:42 +00:00
|
|
|
|
#:phases (modify-phases %standard-phases (delete 'configure))))
|
2015-02-27 07:32:58 +00:00
|
|
|
|
(inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list gawk))
|
2015-02-27 07:32:58 +00:00
|
|
|
|
(home-page "https://github.com/mvertes/txt2man")
|
|
|
|
|
(synopsis "Convert text to man page")
|
|
|
|
|
(description "Txt2man converts flat ASCII text to man page format.")
|
2020-08-18 22:16:33 +00:00
|
|
|
|
(license license:gpl2+)))
|