unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* bug#27004: [PATCH] * gnu: surfraw: Fix broken symlinks in manpages.
@ 2017-05-20  9:07 ng0
  2017-06-22 14:47 ` Kei Kebreau
  0 siblings, 1 reply; 2+ messages in thread
From: ng0 @ 2017-05-20  9:07 UTC (permalink / raw)
  To: 27004; +Cc: ng0

From: ng0 <ng0@no-reply.pragmatique.xyz>

* gnu/packages/web.scm (surfraw)[arguments]: Add new 'compress-elvi.1sr' phase.
---
 gnu/packages/web.scm | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index bcc20bfdd..2fb3144cd 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -13,7 +13,7 @@
 ;;; Copyright © 2016 Rene Saavedra <rennes@openmailbox.org>
 ;;; Copyright © 2016 Ben Woodcroft <donttrustben@gmail.com>
 ;;; Copyright © 2016 Clément Lassieur <clement@lassieur.org>
-;;; Copyright © 2016, 2017 ng0 <contact.ng0@cryptolab.net>
+;;; Copyright © 2016, 2017 ng0 <ng0@no-reply.pragmatique.xyz>
 ;;; Copyright © 2016, 2017 Arun Isaac <arunisaac@systemreboot.net>
 ;;; Copyright © 2016 Tobias Geerinckx-Rice <me@tobias.gr>
 ;;; Copyright © 2016 Bake Timmons <b3timmons@speedymail.org>
@@ -4229,6 +4229,17 @@ handling many of the web standards in use today.")
                (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 compress 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)
-- 
2.13.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#27004: [PATCH] * gnu: surfraw: Fix broken symlinks in manpages.
  2017-05-20  9:07 bug#27004: [PATCH] * gnu: surfraw: Fix broken symlinks in manpages ng0
@ 2017-06-22 14:47 ` Kei Kebreau
  0 siblings, 0 replies; 2+ messages in thread
From: Kei Kebreau @ 2017-06-22 14:47 UTC (permalink / raw)
  To: ng0; +Cc: 27004-done

[-- Attachment #1: Type: text/plain, Size: 948 bytes --]

ng0@pragmatique.xyz writes:

> * gnu/packages/web.scm (surfraw)[arguments]: Add new 'compress-elvi.1sr' phase.

Nice catch.

>      (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 compress by our manpage phase.

Changed "compress" to "compressed".

> +             (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)

LGTM otherwise.
Pushed to master as e81fd90e2f8a38248b4b0c6b883305528acc9a9e.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-06-22 14:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-20  9:07 bug#27004: [PATCH] * gnu: surfraw: Fix broken symlinks in manpages ng0
2017-06-22 14:47 ` Kei Kebreau

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).