From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: [PATCH] gnu: Add fluid. Date: Mon, 9 Jan 2017 12:44:13 +0000 Message-ID: <20170109124413.2448-2-ng0@libertad.pw> References: <87r34c7cw6.fsf@wasp.i-did-not-set--mail-host-address--so-tickle-me> <20170109124413.2448-1-ng0@libertad.pw> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48217) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cQZIX-000530-OJ for guix-devel@gnu.org; Mon, 09 Jan 2017 07:43:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cQZIW-0006XC-73 for guix-devel@gnu.org; Mon, 09 Jan 2017 07:43:37 -0500 Received: from aibo.runbox.com ([91.220.196.211]:41746) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cQZIW-0006Wk-04 for guix-devel@gnu.org; Mon, 09 Jan 2017 07:43:36 -0500 Received: from [10.9.9.212] (helo=mailfront12.runbox.com) by bars.runbox.com with esmtp (Exim 4.71) (envelope-from ) id 1cQZIU-0006QT-Qi for guix-devel@gnu.org; Mon, 09 Jan 2017 13:43:34 +0100 In-Reply-To: <20170109124413.2448-1-ng0@libertad.pw> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org * gnu/packages/kde-frameworks.scm (fluid): New variable. --- gnu/packages/kde-frameworks.scm | 57 +++++++++++++++++++++++++++++++++++++++++ gnu/packages/qt.scm | 1 + 2 files changed, 58 insertions(+) diff --git a/gnu/packages/kde-frameworks.scm b/gnu/packages/kde-frameworks.scm index 94145fb95..224b35666 100644 --- a/gnu/packages/kde-frameworks.scm +++ b/gnu/packages/kde-frameworks.scm @@ -3,6 +3,7 @@ ;;; Copyright © 2016 Efraim Flashner ;;; Copyright © 2016 Hartmut Goebel ;;; Copyright © 2016 David Craven +;;; Copyright © 2017 ng0 ;;; ;;; This file is part of GNU Guix. ;;; @@ -2896,3 +2897,59 @@ script engines.") (define kinit-bootstrap ((package-input-rewriting `((,kdbusaddons . ,kdbusaddons-bootstrap))) kinit)) + +(define-public fluid + (package + (name "fluid") + (version "0.9.0") + (source + (origin + (method url-fetch) + (uri (string-append "https://github.com/lirios/fluid/releases/download/" + "v" version "/" name "-" version ".tar.xz")) + (file-name (string-append name "-" version ".tar.xz")) + (sha256 + (base32 + "0m6mijlnizgvmh0z2wcrmkfl5cdrylxz3d7bqii8dasmm0q8f68y")))) + (build-system cmake-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-before 'check 'set-path-for-check + ;; The tests do not find the fluid module. + (lambda* (#:key inputs outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (bin (string-append out "/bin")) + (qtb (assoc-ref inputs "qtbase")) + (qtd (assoc-ref inputs "qtdeclarative")) + (qts (assoc-ref inputs "qtsvg")) + (qtq (assoc-ref inputs "qtquickcontrol2"))) + (setenv "PATH" (string-append (getenv "PATH") + ":" bin ":" qtb ":" + qtd ":" qtd ":" qts + ":" qtq)) + (setenv "QML2_IMPORT_PATH" + (string-append (getcwd) + "/test_root/usr/lib/" + "qt5/qml")) + (setenv "LD_LIBRARY_PATH" (string-append (getcwd) "/lib")) + (setenv "HOME" (getcwd)) + (setenv "CTEST_OUTPUT_ON_FAILURE" "1") ; Enable debug output + (setenv "QT_QPA_PLATFORM" "offscreen")) + #t)) + (add-after 'install 'check + ;; Swap check and install phases and set paths to installed binaries. + (assoc-ref %standard-phases 'check))))) + (native-inputs + `(("extra-cmake-modules" ,extra-cmake-modules))) + (inputs + `(("qtbase" ,qtbase) + ("qtdeclarative" ,qtdeclarative) + ("qtsvg" ,qtsvg) + ("qtquickcontrols2" ,qtquickcontrols2))) + (home-page "https://github.com/lirios/fluid") + (synopsis "Library for QtQuick applications") + (description + "Fluid is a collection of cross-platform QtQuick components for +building fluid and dynamic applications.") + (license license:mpl2.0))) diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm index df6fe168a..0846e5f89 100644 --- a/gnu/packages/qt.scm +++ b/gnu/packages/qt.scm @@ -46,6 +46,7 @@ #:use-module (gnu packages gtk) #:use-module (gnu packages icu4c) #:use-module (gnu packages image) + #:use-module (gnu packages kde-frameworks) #:use-module (gnu packages linux) #:use-module (gnu packages databases) #:use-module (gnu packages pciutils) -- 2.11.0