aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2022-12-06 10:44:04 +0200
committerEfraim Flashner <efraim@flashner.co.il>2022-12-06 10:44:04 +0200
commitb5b55bbedde306b06eb71ee3030f17dc693a555d (patch)
tree66b41a7981bb366e762b0fb08fdcf982ba840359 /gnu/packages
parent5b3623e6fdc66c736a3bf6f2f2c6c90a9958abc5 (diff)
downloadguix-b5b55bbedde306b06eb71ee3030f17dc693a555d.tar
guix-b5b55bbedde306b06eb71ee3030f17dc693a555d.tar.gz
gnu: parallel: Generate most PDFs from source.
* gnu/packages/parallel.scm (parallel)[source]: Adjust snippet to remove most PDFs. [native-inputs]: Add pod2pdf.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/parallel.scm12
1 files changed, 9 insertions, 3 deletions
diff --git a/gnu/packages/parallel.scm b/gnu/packages/parallel.scm
index 9dd702df65..410f7321e0 100644
--- a/gnu/packages/parallel.scm
+++ b/gnu/packages/parallel.scm
@@ -45,6 +45,7 @@
#:use-module (gnu packages base)
#:use-module (gnu packages bash)
#:use-module (gnu packages check)
+ #:use-module (gnu packages documentation)
#:use-module (gnu packages flex)
#:use-module (gnu packages freeipmi)
#:use-module (gnu packages linux)
@@ -75,8 +76,13 @@
'(begin
(use-modules (guix build utils))
;; Delete pre-generated manpages and documents.
- ;; TODO: Add pod2pdf for pdfs, generate rst files.
- (for-each delete-file (find-files "src" "\\.(1|7|html)$"))))))
+ ;; TODO: generate rst files.
+ ;; parallel_cheat_bw.pdf uses libreoffice to be generated.
+ (rename-file "src/parallel_cheat_bw.pdf"
+ "src/parallel_cheat_bw.pdf-keep")
+ (for-each delete-file (find-files "src" "\\.(1|7|html|pdf)$"))
+ (rename-file "src/parallel_cheat_bw.pdf-keep"
+ "src/parallel_cheat_bw.pdf")))))
(build-system gnu-build-system)
(arguments
`(#:phases
@@ -111,7 +117,7 @@
"echo"
":::" "1" "2" "3"))))))
(native-inputs
- (list perl))
+ (list perl pod2pdf))
(inputs
(list bash-minimal perl procps))
(home-page "https://www.gnu.org/software/parallel/")