From patchwork Fri May 14 07:31:38 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Guillaume Le Vaillant X-Patchwork-Id: 29289 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 3F18D27BC81; Fri, 14 May 2021 08:33:38 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 3432F27BC78 for ; Fri, 14 May 2021 08:33:37 +0100 (BST) Received: from localhost ([::1]:55858 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lhSKG-0000WR-Eh for patchwork@mira.cbaines.net; Fri, 14 May 2021 03:33:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50146) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lhSJi-0000W9-RA for guix-patches@gnu.org; Fri, 14 May 2021 03:33:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33318) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lhSJi-00082x-Jb for guix-patches@gnu.org; Fri, 14 May 2021 03:33:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lhSJi-0007T2-Gt for guix-patches@gnu.org; Fri, 14 May 2021 03:33:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#48411] [PATCH 1/2] gnu: Add qcustomplot. Resent-From: Guillaume Le Vaillant Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 14 May 2021 07:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48411 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 48411@debbugs.gnu.org Cc: Guillaume Le Vaillant Received: via spool by 48411-submit@debbugs.gnu.org id=B48411.162097753728638 (code B ref 48411); Fri, 14 May 2021 07:33:02 +0000 Received: (at 48411) by debbugs.gnu.org; 14 May 2021 07:32:17 +0000 Received: from localhost ([127.0.0.1]:44859 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lhSIy-0007Rq-Kk for submit@debbugs.gnu.org; Fri, 14 May 2021 03:32:16 -0400 Received: from mout02.posteo.de ([185.67.36.66]:53771) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lhSIv-0007Rb-O0 for 48411@debbugs.gnu.org; Fri, 14 May 2021 03:32:15 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 50FB22400FC for <48411@debbugs.gnu.org>; Fri, 14 May 2021 09:32:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1620977527; bh=ncY06xcPmlXmSezQ8bDoildYYVAbRFNvTYFwJX+IzgE=; h=From:To:Cc:Subject:Date:From; b=oe1sbf3NqdKEcho9yt/7BboyQd9T8xyT/5XF/WOAqeZGBp7nMKYA6IVJxARvARONG dU2VsbTmEIt/g/9AcgKTOqxRo8RhoPacJilG+F0pnDgeQc0KqEKPyqWMJFCJwRpfcv fWEcRBQftBafxD6xHe5WSN65UzMnjzIdd9urGghoucwv7lX8O4m+HTge6qyG2LSgrl vqVkDIUB3XmcxHpmyPT6KOtP9xVJ0pO9UtD9WIM3N3719w20nVdeWk5UibaUDJbMPS uIYwPnRl0qpM3trMcVNk6H4zKyfU606kS7vTMWEJPcQ5WIUUh5KGwgC6ak14yPayLW Y/lL7gJCsIHZA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4FhKwk38X0z6tmL; Fri, 14 May 2021 09:32:05 +0200 (CEST) From: Guillaume Le Vaillant Date: Fri, 14 May 2021 07:31:38 +0000 Message-Id: <20210514073139.5906-1-glv@posteo.net> In-Reply-To: <87h7j5hj1f.fsf@kitej> References: <87h7j5hj1f.fsf@kitej> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * 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 ;;; Copyright © 2020 Maxim Cournoyer ;;; Copyright © 2021 Brendan Tildesley +;;; Copyright © 2021 Guillaume Le Vaillant ;;; ;;; 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")