X-Git-Url: https://git.hcoop.net/jackhill/guix/guix.git/blobdiff_plain/f605eef2d4716023ccd127ca4910e5ccbd7cdfb0..6e05adbb8f0396ef2bffef9cf56248e68aa8a3df:/gnu/packages/man.scm diff --git a/gnu/packages/man.scm b/gnu/packages/man.scm index e0019d4c6e..b44b66b42c 100644 --- a/gnu/packages/man.scm +++ b/gnu/packages/man.scm @@ -3,10 +3,11 @@ ;;; Copyright © 2014 David Thompson ;;; Copyright © 2015, 2016 Ricardo Wurmus ;;; Copyright © 2015 Alex Kost -;;; Copyright © 2015, 2016 Efraim Flashner +;;; Copyright © 2015, 2016, 2020 Efraim Flashner ;;; Copyright © 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice ;;; Copyright © 2018, 2019 Rutger Helling ;;; Copyright © 2018, 2019 Marius Bakke +;;; Copyright © 2020 Vincent Legoll ;;; ;;; This file is part of GNU Guix. ;;; @@ -24,10 +25,12 @@ ;;; along with GNU Guix. If not, see . (define-module (gnu packages man) - #:use-module (guix licenses) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (guix git-download) #:use-module (guix download) #:use-module (guix packages) #:use-module (guix build-system gnu) + #:use-module (guix build-system ruby) #:use-module (gnu packages dbm) #:use-module (gnu packages flex) #:use-module (gnu packages gawk) @@ -35,12 +38,70 @@ #:use-module (gnu packages less) #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) - #:use-module (gnu packages linux)) + #:use-module (gnu packages linux) + #:use-module (gnu packages xml)) + +(define-public xmltoman + (package + (name "xmltoman") + (version "0.4") + (source + (origin + (method url-fetch) + (uri + (string-append "https://sourceforge.net/projects/xmltoman/files/" + "xmltoman/xmltoman-" version ".tar.gz/xmltoman-" + version ".tar.gz/download")) + (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 + `(("perl" ,perl) + ("perl-xml-parser" ,perl-xml-parser))) + (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/") + (license license:gpl2+))) + +(define-public ronn + (package + (name "ronn") + (version "0.7.3") + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/rtomayko/ronn.git") + (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/") + (license license:expat))) (define-public libpipeline (package (name "libpipeline") - (version "1.5.2") + (version "1.5.3") (source (origin (method url-fetch) (uri (string-append @@ -48,26 +109,26 @@ version ".tar.gz")) (sha256 (base32 - "1ysrn22ixd4nmggy6f7qcsm7waadmlbg2i0n9mh6g7dfq54wcngx")))) + "1c5dl017xil2ssb6a5vg927bnsbc9vymfgi9ahvqbb8gypx0igsx")))) (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.") - (license gpl3+))) + (license license:gpl3+))) (define-public man-db (package (name "man-db") - (version "2.9.1") + (version "2.9.3") (source (origin (method url-fetch) (uri (string-append "mirror://savannah/man-db/man-db-" version ".tar.xz")) (sha256 (base32 - "0ky7aq8313xa1y0zdwdbz5yvjfjb3xy0xymbimd2d9q9bky8lgds")))) + "1f4palf5bdyf3f8sa0981cqxn9cjcr2pz53ngrrsybb9n0da2nps")))) (build-system gnu-build-system) (arguments `(#:phases @@ -136,10 +197,10 @@ a flexible and convenient way.") (srfi srfi-1)))) (native-inputs `(("pkg-config" ,pkg-config) + ("flex" ,flex) ("groff" ,groff))) ;needed at build time (troff, grops, soelim, etc.) (inputs - `(("flex" ,flex) - ("gdbm" ,gdbm) + `(("gdbm" ,gdbm) ("groff-minimal" ,groff-minimal) ("less" ,less) ("libpipeline" ,libpipeline) @@ -157,12 +218,12 @@ a flexible and convenient way.") "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.") - (license gpl2+))) + (license license:gpl2+))) (define-public man-pages (package (name "man-pages") - (version "5.05") + (version "5.08") (source (origin (method url-fetch) @@ -172,7 +233,7 @@ the traditional flat-text whatis databases.") (string-append "mirror://kernel.org/linux/docs/man-pages/Archive/" "man-pages-" version ".tar.xz"))) (sha256 - (base32 "0izb6shcczvg37cyd3kzxsfsrffqj1qw9nqhhq9mi4kd36qkbcfm")))) + (base32 "1xzp3f6wvw3wplk1a1x09zfv0jp0pdc9wh95czndh3h8z0qwv9yf")))) (build-system gnu-build-system) (arguments '(#:phases (modify-phases %standard-phases (delete 'configure)) @@ -193,7 +254,7 @@ the traditional flat-text whatis databases.") 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. - (license gpl2+))) + (license license:gpl2+))) (define-public help2man (package @@ -224,12 +285,12 @@ Linux kernel and C library interfaces employed by user-space programs.") "GNU help2man is a program that converts the output of standard \"--help\" and \"--version\" command-line arguments into a manual page automatically.") - (license gpl3+))) + (license license:gpl3+))) (define-public scdoc (package (name "scdoc") - (version "1.9.4") + (version "1.10.1") (source (origin (method url-fetch) @@ -238,7 +299,7 @@ automatically.") (file-name (string-append name "-" version ".tar.gz")) (sha256 (base32 - "00zc3rzj97gscby31djlqyczvqpyhrl66i44czwzmmn7rc5j03m1")))) + "13x7g1r56bshvfmlvapvz35ywnbgsh337kywb5kcv8nc6b3j3q40")))) (build-system gnu-build-system) (arguments `(#:make-flags @@ -251,7 +312,7 @@ automatically.") (description "scdoc is a simple man page generator written for POSIX systems in C99.") ;; MIT license, see /share/doc/scdoc-1.6.0/COPYING. - (license expat))) + (license license:expat))) (define-public txt2man (package @@ -259,13 +320,14 @@ in C99.") (version "1.6.0") (source (origin - (method url-fetch) - (uri (string-append - "https://github.com/mvertes/txt2man/archive/txt2man-" - version ".tar.gz")) + (method git-fetch) + (uri (git-reference + (url "https://github.com/mvertes/txt2man") + (commit (string-append "txt2man-" version)))) + (file-name (git-file-name name version)) (sha256 (base32 - "168cj96974n2z0igin6j1ic1m45zyic7nm5ark7frq8j78rrx4zn")))) + "1razjpvlcp85hqli77mwr9nmn5jnv3lm1fxbbqjpx1brv3h1lvm5")))) (build-system gnu-build-system) (arguments `(#:tests? #f ; no "check" target @@ -276,4 +338,4 @@ in C99.") (home-page "https://github.com/mvertes/txt2man") (synopsis "Convert text to man page") (description "Txt2man converts flat ASCII text to man page format.") - (license gpl2+))) + (license license:gpl2+)))