guix-commits
[Top][All Lists]
Advanced

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

02/03: gnu: qtimageformats: Inherit from qtsvg.


From: Efraim Flashner
Subject: 02/03: gnu: qtimageformats: Inherit from qtsvg.
Date: Sat, 4 Jun 2016 22:39:16 +0000 (UTC)

efraim pushed a commit to branch wip-qt
in repository guix.

commit 0d1fe5110259eb2c83a7f1e19b35d0a89a1c8412
Author: Efraim Flashner <address@hidden>
Date:   Sun Jun 5 00:54:21 2016 +0300

    gnu: qtimageformats: Inherit from qtsvg.
    
    * gnu/packages/qt.scm (qtimageformats)[package]: Inherit from qtsvg.
    [inputs]: Remove field.
    [propagated-inputs]: Remove field.
    [arguments]: Inherit phases from qtsvg, remove 'replace configure'.
---
 gnu/packages/qt.scm |   38 +++++++++++++++-----------------------
 1 file changed, 15 insertions(+), 23 deletions(-)

diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm
index 34eca45..9cfda8d 100644
--- a/gnu/packages/qt.scm
+++ b/gnu/packages/qt.scm
@@ -469,7 +469,7 @@ developers using C++ or QML, a CSS & JavaScript like 
language.")
                              (string-append "INSTALL_ROOT)" out)))))))))))
 
 (define-public qtimageformats
-  (package (inherit qtbase)
+  (package (inherit qtsvg)
     (name "qtimageformats")
     (version "5.6.0")
     (source (origin
@@ -481,29 +481,21 @@ developers using C++ or QML, a CSS & JavaScript like 
language.")
              (sha256
               (base32
                "1nmsh682idxl0642q7376r9qfxkx0736q9pl4jx179c9lrsl519c"))))
-    (propagated-inputs `())
-    (inputs
-     `(("qtbase" ,qtbase)
-       ,@(package-inputs qtbase)))
     (arguments
-     `(#:phases
-       (modify-phases %standard-phases
-         (replace 'configure
-           (lambda _
-             (zero? (system* "qmake"
-                             (string-append "PREFIX="
-                                            (assoc-ref %outputs "out"))))))
-         (add-before 'install 'fix-Makefiles
-           (lambda* (#:key inputs outputs #:allow-other-keys)
-             (let ((out    (assoc-ref outputs "out"))
-                   (qtbase (assoc-ref inputs "qtbase")))
-               (for-each
-                 (lambda (format)
-                   (substitute* (string-append "src/plugins/imageformats/"
-                                               format "/Makefile")
-                                (((string-append "INSTALL_ROOT)" qtbase))
-                                 (string-append "INSTALL_ROOT)" out))))
-                 '("tiff" "wbmp" "dds" "tga" "webp" "icns" "mng"))))))))))
+      (substitute-keyword-arguments (package-arguments qtsvg)
+        ((#:phases phases)
+         `(modify-phases ,phases
+            (replace 'fix-Makefiles
+              (lambda* (#:key inputs outputs #:allow-other-keys)
+                (let ((out    (assoc-ref outputs "out"))
+                      (qtbase (assoc-ref inputs "qtbase")))
+                  (for-each
+                    (lambda (format)
+                      (substitute* (string-append "src/plugins/imageformats/"
+                                                  format "/Makefile")
+                                   (((string-append "INSTALL_ROOT)" qtbase))
+                                    (string-append "INSTALL_ROOT)" out))))
+                    '("tiff" "wbmp" "dds" "tga" "webp" "icns" "mng")))))))))))
 
 (define-public qjson
   (package



reply via email to

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