From e81fd90e2f8a38248b4b0c6b883305528acc9a9e Mon Sep 17 00:00:00 2001 From: ng0 Date: Sat, 20 May 2017 09:07:27 +0000 Subject: gnu: surfraw: Fix broken symlinks in manpages. * gnu/packages/web.scm (surfraw)[arguments]: Add new 'compress-elvi.1sr' phase. Signed-off-by: Kei Kebreau --- gnu/packages/web.scm | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'gnu/packages') diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index 3a6e20d1bd..3625a1034e 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -13,7 +13,7 @@ ;;; Copyright © 2016 Rene Saavedra ;;; Copyright © 2016 Ben Woodcroft ;;; Copyright © 2016 Clément Lassieur -;;; Copyright © 2016, 2017 ng0 +;;; Copyright © 2016, 2017 ng0 ;;; Copyright © 2016, 2017 Arun Isaac ;;; Copyright © 2016 Tobias Geerinckx-Rice ;;; Copyright © 2016 Bake Timmons @@ -4259,6 +4259,17 @@ (define-public surfraw (base32 "1fy4ph5h9kp0jzj1m6pfylxnnmgdk0mmdppw76z9jhna4jndk5xa")))) (build-system gnu-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'install 'compress-elvi.1sr + (lambda* (#:key outputs #:allow-other-keys) + ;; The manpages of the elvis are symlinks to elvi.1sr.gz + ;; but elvi.1sr does not get compressed by our manpage phase. + (let* ((out (assoc-ref %outputs "out")) + (man (string-append out "/share/man/man1"))) + (with-directory-excursion man + (zero? (system* "gzip" "elvi.1sr"))))))))) (inputs `(("perl" ,perl) ("perl-www-opensearch" ,perl-www-opensearch) -- cgit v1.2.3