diff options
| author | Bruno Victal <mirai@makinata.eu> | 2023-04-26 01:56:57 +0100 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2024-08-31 10:42:04 +0200 |
| commit | 8f7b7f285be7748e729be4ae615430afa3bd8676 (patch) | |
| tree | e4deb2b8e166f29f200e22d47f0f9aea3e21baaa /gnu/packages/docbook.scm | |
| parent | 860d17d70b4451fe9da063553a5773071ae452c8 (diff) | |
gnu: docbook-utils: Refactor package.
* gnu/packages/docbook.scm (docbook-utils)[description]: Fix description.
[source]: Patch source in snippet.
[arguments]: Remove.
Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Diffstat (limited to 'gnu/packages/docbook.scm')
| -rw-r--r-- | gnu/packages/docbook.scm | 96 |
1 files changed, 49 insertions, 47 deletions
diff --git a/gnu/packages/docbook.scm b/gnu/packages/docbook.scm index 8c2aade7362..49e53a1d14e 100644 --- a/gnu/packages/docbook.scm +++ b/gnu/packages/docbook.scm | |||
| @@ -687,45 +687,40 @@ DB2LaTeX.") | |||
| 687 | version ".orig.tar.gz")) | 687 | version ".orig.tar.gz")) |
| 688 | (sha256 | 688 | (sha256 |
| 689 | (base32 | 689 | (base32 |
| 690 | "1scj5vgw1xz872pq54a89blcxqqm11p90yzv8a9mqq57x27apyj8")))) | 690 | "1scj5vgw1xz872pq54a89blcxqqm11p90yzv8a9mqq57x27apyj8")) |
| 691 | (modules '((guix build utils))) | ||
| 692 | (snippet | ||
| 693 | #~(begin | ||
| 694 | ;; Patch build system. | ||
| 695 | (substitute* (find-files "." "\\.in$") | ||
| 696 | ;; Do not hard-code SGML_CATALOG_FILES. | ||
| 697 | ((".*SGML_CATALOG_FILES=/etc/sgml/catalog.*") "") | ||
| 698 | ;; Use OpenSP and OpenJade. | ||
| 699 | (("\\bjade\\b") | ||
| 700 | "openjade") | ||
| 701 | (("\\bnsgmls\\b") | ||
| 702 | "onsgmls")) | ||
| 703 | |||
| 704 | ;; Do not override the SGML_CATALOG_FILES environment | ||
| 705 | ;; variable. | ||
| 706 | (substitute* "bin/jw.in" | ||
| 707 | ((".*SGML_CATALOG_FILES=`find.*") | ||
| 708 | "") | ||
| 709 | (("SGML_CATALOG_FILES=`echo.*") | ||
| 710 | ":\n") | ||
| 711 | (("SGML_CATALOG_FILES=\"\"") | ||
| 712 | ":") | ||
| 713 | (("\\bwhich\\b") | ||
| 714 | "command -v")) | ||
| 715 | |||
| 716 | ;; Locate lynx, links or w3m from the PATH, not from | ||
| 717 | ;; /usr/bin. | ||
| 718 | (substitute* "backends/txt" | ||
| 719 | (("CONVERT=/usr/bin/") | ||
| 720 | "CONVERT=") | ||
| 721 | (("\\[ -x /usr/bin/([^ ]+) \\]" _ command) | ||
| 722 | (format #f "command -v ~a > /dev/null" command))))))) | ||
| 691 | (build-system gnu-build-system) | 723 | (build-system gnu-build-system) |
| 692 | (arguments | ||
| 693 | `(#:phases (modify-phases %standard-phases | ||
| 694 | (add-after 'unpack 'patch-build-system | ||
| 695 | (lambda _ | ||
| 696 | (substitute* (find-files "." "\\.in$") | ||
| 697 | ;; Do not hard-code SGML_CATALOG_FILES. | ||
| 698 | ((".*SGML_CATALOG_FILES=/etc/sgml/catalog.*") "") | ||
| 699 | ;; Use OpenSP and OpenJade. | ||
| 700 | (("\\bjade\\b") | ||
| 701 | "openjade") | ||
| 702 | (("\\bnsgmls\\b") | ||
| 703 | "onsgmls")) | ||
| 704 | #t)) | ||
| 705 | (add-after 'unpack 'patch-jw.in | ||
| 706 | ;; Do not override the SGML_CATALOG_FILES environment | ||
| 707 | ;; variable. | ||
| 708 | (lambda _ | ||
| 709 | (substitute* "bin/jw.in" | ||
| 710 | ((".*SGML_CATALOG_FILES=`find.*") | ||
| 711 | "") | ||
| 712 | (("SGML_CATALOG_FILES=`echo.*") | ||
| 713 | ":\n") | ||
| 714 | (("SGML_CATALOG_FILES=\"\"") | ||
| 715 | ":") | ||
| 716 | (("\\bwhich\\b") | ||
| 717 | "command -v")) | ||
| 718 | #t)) | ||
| 719 | (add-after 'unpack 'patch-txt-backend | ||
| 720 | (lambda _ | ||
| 721 | ;; Locate lynx, links or w3m from the PATH, not from | ||
| 722 | ;; /usr/bin. | ||
| 723 | (substitute* "backends/txt" | ||
| 724 | (("CONVERT=/usr/bin/") | ||
| 725 | "CONVERT=") | ||
| 726 | (("\\[ -x /usr/bin/([^ ]+) \\]" dummy command) | ||
| 727 | (string-append "command -v " command " > /dev/null"))) | ||
| 728 | #t))))) | ||
| 729 | ;; Propagated for convenience. All these tools are used at run time to | 724 | ;; Propagated for convenience. All these tools are used at run time to |
| 730 | ;; provide the complete functionality of the docbook-utils commands. | 725 | ;; provide the complete functionality of the docbook-utils commands. |
| 731 | (propagated-inputs | 726 | (propagated-inputs |
| @@ -746,15 +741,22 @@ Convert a SGML DocBook file to other formats such as Hyper Text Markup | |||
| 746 | Language (HTML), Rich Text Format (RTF), PostScript (PS), man, Portable | 741 | Language (HTML), Rich Text Format (RTF), PostScript (PS), man, Portable |
| 747 | Document Format (PDF), TeX, Texinfo or plain text (txt). It can be used | 742 | Document Format (PDF), TeX, Texinfo or plain text (txt). It can be used |
| 748 | more conveniently via the following wrappers: | 743 | more conveniently via the following wrappers: |
| 749 | @itemx docbook2dvi Convert a SGML DocBook file to the DVI format. | 744 | @table @command |
| 750 | @itemx docbook2html Convert a SGML DocBook file to an HTML document. | 745 | @item docbook2dvi |
| 751 | @itemx docbook2man Convert a SGML DocBook file a man page. | 746 | Convert a SGML DocBook file to the DVI format. |
| 752 | @itemx docbook2pdf Convert a SGML DocBook file to a PDF document. | 747 | @item docbook2html |
| 753 | @itemx docbook2ps Convert a SGML DocBook file to a PS document. | 748 | Convert a SGML DocBook file to an HTML document. |
| 754 | @itemx docbook2rtf Convert a SGML DocBook file to a RTF document. | 749 | @item docbook2man |
| 755 | @itemx docbook2tex Convert a SGML DocBook file to a TeX document. | 750 | Convert a SGML DocBook file a man page. |
| 756 | @itemx docbook2texi Convert a SGML DocBook file to a Texinfo document. | 751 | @item docbook2pdf |
| 757 | @itemx docbook2txt Convert a SGML DocBook file to a plain text document. | 752 | @itemx docbook2ps |
| 753 | @itemx docbook2rtf | ||
| 754 | @itemx docbook2tex | ||
| 755 | @itemx docbook2texi | ||
| 756 | Convert a SGML DocBook file to a PDF/PS/RTF/TeX document. | ||
| 757 | @item docbook2txt | ||
| 758 | Convert a SGML DocBook file to a plain text document. | ||
| 759 | @end table | ||
| 758 | @item sgmldiff | 760 | @item sgmldiff |
| 759 | Detect the differences in markup between two SGML files. | 761 | Detect the differences in markup between two SGML files. |
| 760 | @end table") | 762 | @end table") |
