[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/06: gnu: splix: Compress PPDs.
From: |
guix-commits |
Subject: |
04/06: gnu: splix: Compress PPDs. |
Date: |
Wed, 18 Nov 2020 12:08:47 -0500 (EST) |
nckx pushed a commit to branch master
in repository guix.
commit 359a195eff63d16f36e411409abe6cd71c13a4d1
Author: Tobias Geerinckx-Rice <me@tobias.gr>
AuthorDate: Wed Nov 18 15:52:26 2020 +0100
gnu: splix: Compress PPDs.
* gnu/packages/cups.scm (splix)[arguments]: Import SRFI-26 and add a
‘compress-PPDs’ phase.
---
gnu/packages/cups.scm | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/cups.scm b/gnu/packages/cups.scm
index 3f0cdb7..cdfb964 100644
--- a/gnu/packages/cups.scm
+++ b/gnu/packages/cups.scm
@@ -819,7 +819,10 @@ language.")
;; PPDs have been obsolete since CUPS 1.2 and make up 90% of total size.
(outputs (list "out" "ppd"))
(arguments
- '(#:make-flags
+ `(#:modules
+ ((srfi srfi-26)
+ ,@%gnu-build-system-modules)
+ #:make-flags
(list (string-append "CUPSDRV="
(assoc-ref %outputs "out") "/share/cups/drv")
(string-append "CUPSFILTER="
@@ -841,7 +844,12 @@ language.")
(apply invoke "make" "drv" make-flags)))
(add-after 'install 'install-.drv-files
(lambda* (#:key make-flags #:allow-other-keys)
- (apply invoke "make" "install" "DRV_ONLY=1" make-flags))))
+ (apply invoke "make" "install" "DRV_ONLY=1" make-flags)))
+ (add-after 'install 'compress-PPDs
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((ppd (assoc-ref outputs "ppd")))
+ (for-each (cut invoke "gzip" "-9" <>)
+ (find-files ppd "\\.ppd$"))))))
#:tests? #f)) ; no test suite
(inputs
`(("cups" ,cups-minimal)
- branch master updated (b3a63d4 -> a45f822), guix-commits, 2020/11/18
- 02/06: gnu: xlockmore: Update to 5.66., guix-commits, 2020/11/18
- 05/06: gnu: fldigi: Update to 4.1.16., guix-commits, 2020/11/18
- 01/06: gnu: zabbix-agentd, zabbix-server: Update to 5.2.1., guix-commits, 2020/11/18
- 03/06: gnu: splix: Update to 2.0.0-315.76268c4., guix-commits, 2020/11/18
- 04/06: gnu: splix: Compress PPDs.,
guix-commits <=
- 06/06: Merge remote-tracking branch 'upstream/version-1.2.0', guix-commits, 2020/11/18