guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

05/06: gnu: arandr: Remove timestamps from gzipped man pages.


From: Ludovic Courtès
Subject: 05/06: gnu: arandr: Remove timestamps from gzipped man pages.
Date: Tue, 24 Jan 2017 22:11:35 +0000 (UTC)

civodul pushed a commit to branch master
in repository guix.

commit 04fa4cdf95a004bda4d63b6578b53e154a4d4679
Author: Ludovic Courtès <address@hidden>
Date:   Tue Jan 24 22:53:43 2017 +0100

    gnu: arandr: Remove timestamps from gzipped man pages.
    
    * gnu/packages/xdisorg.scm (arandr)[source](modules, snippet): New
    fields.
---
 gnu/packages/xdisorg.scm |   11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/xdisorg.scm b/gnu/packages/xdisorg.scm
index 7771b16..02d0c94 100644
--- a/gnu/packages/xdisorg.scm
+++ b/gnu/packages/xdisorg.scm
@@ -3,7 +3,7 @@
 ;;; Copyright © 2014, 2015, 2016 Mark H Weaver <address@hidden>
 ;;; Copyright © 2014 Eric Bavier <address@hidden>
 ;;; Copyright © 2014, 2015, 2016 Alex Kost <address@hidden>
-;;; Copyright © 2013, 2015 Ludovic Courtès <address@hidden>
+;;; Copyright © 2013, 2015, 2017 Ludovic Courtès <address@hidden>
 ;;; Copyright © 2015, 2016 Mathieu Lirzin <address@hidden>
 ;;; Copyright © 2015 Alexander I.Grafov <address@hidden>
 ;;; Copyright © 2015 Andy Wingo <address@hidden>
@@ -75,7 +75,14 @@
                                   "/files/" name "-" version ".tar.gz"))
               (sha256
                (base32
-                "1i3f1agixxbfy4kxikb2b241p7c2lg73cl9wqfvlwz3q6zf5faxv"))))
+                "1i3f1agixxbfy4kxikb2b241p7c2lg73cl9wqfvlwz3q6zf5faxv"))
+              (modules '((guix build utils)))
+              (snippet
+               ;; Do not record a timestamp and file name in gzipped man
+               ;; pages (this is equivalent to 'gzip --no-name'.)
+               '(substitute* "setup.py"
+                  (("gzip\\.open\\(gzfile, 'w', 9\\)")
+                   "gzip.GzipFile('', 'wb', 9, open(gzfile, 'wb'), 0.)")))))
     (build-system python-build-system)
     (arguments
      `(#:python ,python-2     ;incompatible with python 3



reply via email to

[Prev in Thread] Current Thread [Next in Thread]