From: Guillaume Le Vaillant <glv@posteo.net>
To: 48411@debbugs.gnu.org
Cc: Guillaume Le Vaillant <glv@posteo.net>
Subject: [bug#48411] [PATCH 1/2] gnu: Add qcustomplot.
Date: Fri, 14 May 2021 07:31:38 +0000 [thread overview]
Message-ID: <20210514073139.5906-1-glv@posteo.net> (raw)
In-Reply-To: <87h7j5hj1f.fsf@kitej>
* gnu/packages/qt.scm (qcustomplot): New variable.
---
gnu/packages/qt.scm | 51 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 51 insertions(+)
diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm
index b206deaeba..55855fb68a 100644
--- a/gnu/packages/qt.scm
+++ b/gnu/packages/qt.scm
@@ -21,6 +21,7 @@
;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de>
;;; Copyright © 2020 Maxim Cournoyer <maxim.cournoyer@gmail.com>
;;; Copyright © 2021 Brendan Tildesley <mail@brendan.scot>
+;;; Copyright © 2021 Guillaume Le Vaillant <glv@posteo.net>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -2604,6 +2605,56 @@ color-related widgets.")
;; Includes a license exception for combining with GPL2 code.
(license license:lgpl3+))))
+(define-public qcustomplot
+ (package
+ (name "qcustomplot")
+ (version "2.1.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append "https://www.qcustomplot.com/release/"
+ version "fixed" "/QCustomPlot.tar.gz"))
+ (sha256
+ (base32 "1324kqyj1v1f8k8d7b15gc3apwz9qxx52p86hvchg33hjdlqhskx"))))
+ (native-inputs
+ `(("qcustomplot-sharedlib"
+ ,(origin
+ (method url-fetch)
+ (uri (string-append "https://www.qcustomplot.com/release/"
+ version "fixed" "/QCustomPlot-sharedlib.tar.gz"))
+ (sha256
+ (base32 "0vp8lpxvd1nlp4liqrlvslpqrgfn0wpiwizzdsjbj22zzb8vxikc"))))))
+ (inputs
+ `(("qtbase" ,qtbase)))
+ (build-system gnu-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'unpack-extra-files
+ (lambda* (#:key inputs #:allow-other-keys)
+ (invoke "tar" "-xvf" (assoc-ref inputs "qcustomplot-sharedlib"))))
+ (replace 'configure
+ (lambda* (#:key outputs #:allow-other-keys)
+ (chdir "qcustomplot-sharedlib/sharedlib-compilation")
+ (substitute* "sharedlib-compilation.pro"
+ ;; Don't build debug library.
+ (("debug_and_release")
+ "release"))
+ (invoke "qmake"
+ (string-append "DESTDIR="
+ (assoc-ref outputs "out")
+ "/lib"))))
+ (add-after 'install 'install-header
+ (lambda* (#:key outputs #:allow-other-keys)
+ (install-file "../../qcustomplot.h"
+ (string-append (assoc-ref outputs "out")
+ "/include")))))))
+ (home-page "https://www.qcustomplot.com/")
+ (synopsis "Qt widget for plotting and data visualization")
+ (description
+ "QCustomPlot is a Qt C++ widget providing 2D plots, graphs and charts.")
+ (license license:gpl3+)))
+
(define-public python-shiboken-2
(package
(name "python-shiboken-2")
--
2.31.1
next prev parent reply other threads:[~2021-05-14 7:33 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-14 7:27 [bug#48411] [PATCH 0/2] Add wfview Guillaume Le Vaillant
2021-05-14 7:31 ` Guillaume Le Vaillant [this message]
2021-05-14 7:31 ` [bug#48411] [PATCH 2/2] gnu: " Guillaume Le Vaillant
2021-05-19 8:07 ` bug#48411: [PATCH 1/2] gnu: Add qcustomplot Guillaume Le Vaillant
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210514073139.5906-1-glv@posteo.net \
--to=glv@posteo.net \
--cc=48411@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.