[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/13: gnu: image: Return #t from all phases.
From: |
Mark H. Weaver |
Subject: |
02/13: gnu: image: Return #t from all phases. |
Date: |
Wed, 14 Nov 2018 23:45:18 -0500 (EST) |
mhw pushed a commit to branch core-updates
in repository guix.
commit fccacffbf46ca51e76f67e4c51eb0fb081e12576
Author: Mark H Weaver <address@hidden>
Date: Wed Jun 27 20:42:35 2018 -0400
gnu: image: Return #t from all phases.
* gnu/packages/image.scm (libpng-apng, pngcrush, leptonica, zimg)
(perceptualdiff): Return #t from all phases.
---
gnu/packages/image.scm | 25 ++++++++++++++-----------
1 file changed, 14 insertions(+), 11 deletions(-)
diff --git a/gnu/packages/image.scm b/gnu/packages/image.scm
index 6436d7e..11e1b15 100644
--- a/gnu/packages/image.scm
+++ b/gnu/packages/image.scm
@@ -136,15 +136,15 @@ library. It supports almost all PNG features and is
extensible.")
(add-after 'unpack 'patch-apng
(lambda* (#:key inputs #:allow-other-keys)
(define (apply-patch file)
- (zero? (system* "patch" "-p1" "--force"
- "--input" file)))
+ (invoke "patch" "-p1" "--force"
+ "--input" file))
(let ((apng.gz (assoc-ref inputs "apng")))
(format #t "Applying APNG patch '~a'...~%"
apng.gz)
- (and
- (zero?
- (system (string-append "gunzip < " apng.gz " > the-patch")))
- (apply-patch "the-patch")))))
+ (invoke "sh" "-c"
+ (string-append "gunzip < " apng.gz " > the-patch"))
+ (apply-patch "the-patch")
+ #t)))
(add-before 'configure 'no-checks
(lambda _
(substitute* "Makefile.in"
@@ -239,7 +239,8 @@ in-memory raw vectors.")
(string-append vardef (assoc-ref inputs "zlib") "/"))
;; The Makefile is written by hand and not using $PREFIX
(("\\$\\(DESTDIR\\)/usr/")
- (string-append (assoc-ref outputs "out") "/"))))))))
+ (string-append (assoc-ref outputs "out") "/")))
+ #t)))))
(inputs
`(("libpng" ,libpng)
("zlib" , zlib)))
@@ -473,14 +474,15 @@ collection of tools for doing simple manipulations of
TIFF images.")
(modify-phases %standard-phases
(add-after 'unpack 'autogen
(lambda _
- (zero? (system* "sh" "autobuild"))))
+ (invoke "sh" "autobuild")))
(add-after 'unpack 'patch-reg-wrapper
(lambda _
(substitute* "prog/reg_wrapper.sh"
((" /bin/sh ")
(string-append " " (which "sh") " "))
(("which gnuplot")
- "true")))))))
+ "true"))
+ #t)))))
(home-page "http://www.leptonica.com/")
(synopsis "Library and tools for image processing and analysis")
(description
@@ -1083,7 +1085,7 @@ ISO/IEC 15444-1).")
(modify-phases %standard-phases
(add-after 'unpack 'autogen
(lambda _
- (zero? (system* "sh" "autogen.sh")))))))
+ (invoke "sh" "autogen.sh"))))))
(synopsis "Scaling, colorspace conversion, and dithering library")
(description "Zimg implements the commonly required image processing basics
of scaling, colorspace conversion, and depth conversion. A simple API enables
@@ -1116,7 +1118,8 @@ the programmer.")
;; of the source tree, one level higher than expected
(lambda _
(substitute* "test/run_tests.bash"
- (("../build") "../../build")))))))
+ (("../build") "../../build"))
+ #t)))))
(home-page "https://github.com/myint/perceptualdiff")
(synopsis "Perceptual image comparison utility")
(description "PerceptualDiff visually compares two images to determine
- branch core-updates updated (21f7d88 -> 2e0f690), Mark H. Weaver, 2018/11/14
- 02/13: gnu: image: Return #t from all phases.,
Mark H. Weaver <=
- 03/13: gnu: linux: Return #t from all phases., Mark H. Weaver, 2018/11/14
- 07/13: gnu: xml: Return #t from all phases., Mark H. Weaver, 2018/11/14
- 01/13: gnu: admin: Return #t from all phases., Mark H. Weaver, 2018/11/14
- 04/13: gnu: networking: Return #t from all phases., Mark H. Weaver, 2018/11/14
- 05/13: gnu: perl: Return #t from all phases., Mark H. Weaver, 2018/11/14
- 06/13: gnu: video: Return #t from all phases., Mark H. Weaver, 2018/11/14
- 08/13: gnu: xorg: Return #t from all phases., Mark H. Weaver, 2018/11/14
- 09/13: gnu: audio: Return #t from all phases., Mark H. Weaver, 2018/11/14
- 10/13: gnu: check: Return #t from all phases., Mark H. Weaver, 2018/11/14
- 11/13: gnu: compression: Return #t from all phases., Mark H. Weaver, 2018/11/14