diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2016-05-20 13:14:50 +0300 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2016-06-15 11:11:56 +0300 |
commit | 19c1763113a0dd832eb8a5d6b7d0e83171deb35b (patch) | |
tree | bdae247a63e896b45465f52f10eaad656a4493d8 /gnu/packages/qt.scm | |
parent | 266785d21e9ed3fcbecebea302231cf35e303d66 (diff) | |
download | guix-19c1763113a0dd832eb8a5d6b7d0e83171deb35b.tar guix-19c1763113a0dd832eb8a5d6b7d0e83171deb35b.tar.gz |
gnu: Add qtsvg.
* gnu/packages/qt.scm (qtsvg): New variable.
Diffstat (limited to 'gnu/packages/qt.scm')
-rw-r--r-- | gnu/packages/qt.scm | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm index c79160f05c..7c3f480000 100644 --- a/gnu/packages/qt.scm +++ b/gnu/packages/qt.scm @@ -431,6 +431,40 @@ developers using C++ or QML, a CSS & JavaScript like language.") developers using C++ or QML, a CSS & JavaScript like language.") (license (list lgpl2.1 lgpl3)))) +(define-public qtsvg + (package (inherit qtbase) + (name "qtsvg") + (version "5.6.1") + (source (origin + (method url-fetch) + (uri (string-append "https://download.qt.io/official_releases/qt/" + (version-major+minor version) "/" version + "/submodules/" name "-opensource-src-" + version ".tar.xz")) + (sha256 + (base32 + "08ca5g46g75acy27jfnvnalmcias5hxmjp7491v3y4k9y7a4ybpi")))) + (propagated-inputs `()) + (native-inputs `(("perl" ,perl))) + (inputs + `(("mesa" ,mesa) + ("qtbase" ,qtbase) + ("zlib" ,zlib))) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'configure + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (zero? (system* "qmake" (string-append "PREFIX=" out)))))) + (add-before 'install 'fix-Makefiles + (lambda* (#:key inputs outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out")) + (qtbase (assoc-ref inputs "qtbase"))) + (substitute* (find-files "." "Makefile") + (((string-append "INSTALL_ROOT)" qtbase)) + (string-append "INSTALL_ROOT)" out))))))))))) + (define-public qjson (package (name "qjson") |