From 230e5db71ef53e03aa623940225cc6f0b0f23440 Mon Sep 17 00:00:00 2001 From: Guillaume Le Vaillant Date: Fri, 10 Jan 2020 09:52:20 +0100 Subject: gnu: monero-gui: Update to 0.15.0.3. * gnu/packages/finance.scm (monero-gui): Update to 0.15.0.3. [build-system]: Use qt-build-system. [inputs]: Remove qtwebchannel and qtx11extras. [arguments]: Merge fix-library-paths, fix-monerod-path, fix-qt-paths and fix-install-path phases into a fix-paths phase. Remove custom build, change-dir and wrap-program phases. Add configure and build-zxcvbn-c phases. --- gnu/packages/finance.scm | 95 ++++++++++++++++++++---------------------------- 1 file changed, 39 insertions(+), 56 deletions(-) (limited to 'gnu') diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm index b24a9bfbf1..19f990848c 100644 --- a/gnu/packages/finance.scm +++ b/gnu/packages/finance.scm @@ -11,7 +11,7 @@ ;;; Copyright © 2018 Adriano Peluso ;;; Copyright © 2018, 2019 Nicolas Goaziou ;;; Copyright © 2018 Arun Isaac -;;; Copyright © 2019 Guillaume Le Vaillant +;;; Copyright © 2019, 2020 Guillaume Le Vaillant ;;; Copyright © 2019 Tanguy Le Carrour ;;; Copyright © 2019 Martin Becze ;;; Copyright © 2019 Sebastian Schott @@ -41,6 +41,7 @@ (define-module (gnu packages finance) #:use-module (guix build-system python) #:use-module (guix build-system glib-or-gtk) #:use-module (guix build-system go) + #:use-module (guix build-system qt) #:use-module (guix utils) #:use-module (gnu packages) #:use-module (gnu packages aidc) @@ -603,7 +604,7 @@ (define-public monero (define-public monero-gui (package (name "monero-gui") - (version "0.15.0.1") + (version "0.15.0.3") (source (origin (method git-fetch) @@ -613,8 +614,8 @@ (define-public monero-gui (file-name (git-file-name name version)) (sha256 (base32 - "08j8kkncdn57xql0bhmlzjpjkdfhqbpda1p07r797q8qi0nl4w8n")))) - (build-system gnu-build-system) + "1v2mk6qp7dfdj4j4cilxp0s0phfwwnmjvpvjrz6jzzlpvbnavkr0")))) + (build-system qt-build-system) (native-inputs `(("pkg-config" ,pkg-config) ("qttools" ,qttools))) @@ -634,53 +635,45 @@ (define-public monero-gui ("qtquickcontrols" ,qtquickcontrols) ("qtquickcontrols2",qtquickcontrols2) ("qtsvg" ,qtsvg) - ("qtwebchannel" ,qtwebchannel) - ("qtx11extras" ,qtx11extras) ("qtxmlpatterns" ,qtxmlpatterns) ("unbound" ,unbound))) (propagated-inputs `(("monero" ,monero))) (arguments - `(#:modules ((guix build gnu-build-system) - (guix build qt-utils) - (guix build utils)) - #:imported-modules (,@%gnu-build-system-modules - (guix build qt-utils)) + `(#:tests? #f ; No tests #:phases (modify-phases %standard-phases - (delete 'configure) - (delete 'check) - (add-before 'build 'fix-makefile-vars + (add-after 'unpack 'fix-makefile-vars (lambda _ (substitute* "src/zxcvbn-c/makefile" (("\\?=") "=")) #t)) - (add-after 'fix-makefile-vars 'fix-library-paths - (lambda* (#:key inputs #:allow-other-keys) - (substitute* "monero-wallet-gui.pro" - (("-L/usr/local/lib") - "") - (("-L/usr/local/opt/openssl/lib") - (string-append "-L" (assoc-ref inputs "openssl") "/lib")) - (("-L/usr/local/opt/boost/lib") - (string-append "-L" (assoc-ref inputs "boost") "/lib"))) - #t)) - (add-after 'fix-library-paths 'fix-monerod-path - (lambda* (#:key inputs #:allow-other-keys) - (substitute* "src/daemon/DaemonManager.cpp" - (("QApplication::applicationDirPath\\(\\) \\+ \"/monerod") - (string-append "\"" (assoc-ref inputs "monero") - "/bin/monerod"))) - #t)) - (add-after 'fix-monerod-path 'fix-qt-paths - (lambda* (#:key inputs #:allow-other-keys) - (substitute* "monero-wallet-gui.pro" - (("\\$\\$\\[QT_INSTALL_BINS\\]/lrelease") - (string-append (assoc-ref inputs "qttools") "/bin/lrelease")) - (("\\$\\$\\[QT_INSTALL_BINS\\]/lupdate") - (string-append (assoc-ref inputs "qttools") "/bin/lupdate"))) - #t)) - (add-after 'fix-qt-paths 'make-qt-deterministic + (add-after 'fix-makefile-vars 'fix-paths + (lambda* (#:key inputs outputs #:allow-other-keys) + (let ((boost (assoc-ref inputs "boost")) + (monero (assoc-ref inputs "monero")) + (openssl (assoc-ref inputs "openssl")) + (qttools (assoc-ref inputs "qttools")) + (out (assoc-ref outputs "out"))) + (substitute* "monero-wallet-gui.pro" + (("-L/usr/local/lib") + "") + (("-L/usr/local/opt/openssl/lib") + (string-append "-L" openssl "/lib")) + (("-L/usr/local/opt/boost/lib") + (string-append "-L" boost "/lib")) + (("\\$\\$\\[QT_INSTALL_BINS\\]/lrelease") + (string-append qttools "/bin/lrelease")) + (("\\$\\$\\[QT_INSTALL_BINS\\]/lupdate") + (string-append qttools "/bin/lupdate"))) + (substitute* "deployment.pri" + (("/opt/\\$\\$\\{TARGET\\}/bin") + (string-append out "/bin"))) + (substitute* "src/daemon/DaemonManager.cpp" + (("QApplication::applicationDirPath\\(\\) \\+ \"/monerod") + (string-append "\"" monero "/bin/monerod"))) + #t))) + (add-after 'fix-paths 'make-qt-deterministic (lambda _ (setenv "QT_RCC_SOURCE_DATE_OVERRIDE" "1") #t)) @@ -697,24 +690,14 @@ (define-public monero-gui ,version ,(package-version monero)))) #t)) - (replace 'build - (lambda _ - (invoke "./build.sh"))) - (add-after 'build 'fix-install-path - (lambda* (#:key outputs #:allow-other-keys) - (substitute* "build/Makefile" - (("/opt/monero-wallet-gui") - (assoc-ref outputs "out"))) - #t)) - (add-before 'install 'change-dir + (replace 'configure (lambda _ + (mkdir-p "build") (chdir "build") - #t)) - (add-after 'install 'wrap-program - (lambda* (#:key outputs #:allow-other-keys) - (let ((out (assoc-ref outputs "out"))) - (wrap-qt-program out "monero-wallet-gui")) - #t))))) + (invoke "qmake" "../monero-wallet-gui.pro" "CONFIG+=release"))) + (add-before 'build 'build-zxcvbn-c + (lambda _ + (invoke "make" "-C" "../src/zxcvbn-c")))))) (home-page "https://web.getmonero.org/") (synopsis "Graphical user interface for the Monero currency") (description -- cgit v1.2.3