dev-libs/qcustomplot: Port to Qt6 (as 2.1.1-r10)

Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
This commit is contained in:
Andreas Sturmlechner
2024-12-30 21:55:34 +01:00
parent 2e8404ccfd
commit 00364bcc0f
2 changed files with 62 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
From 4c7cf0dfcccf2aa31d6117bb811b7baed84f8f4a Mon Sep 17 00:00:00 2001
From: Andreas Sturmlechner <asturm@gentoo.org>
Date: Tue, 28 Jan 2025 00:18:46 +0100
Subject: [PATCH] Fix source paths
---
qcustomplot.pro | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/qcustomplot.pro b/qcustomplot.pro
index a437355..779e8e6 100755
--- a/qcustomplot.pro
+++ b/qcustomplot.pro
@@ -31,5 +31,5 @@ CONFIG(debug, debug|release) {
QMAKE_TARGET_COMPANY = "www.qcustomplot.com"
QMAKE_TARGET_COPYRIGHT = "Copyright (C) by Emanuel Eichhammer"
-SOURCES += ../../qcustomplot.cpp
-HEADERS += ../../qcustomplot.h
+SOURCES += qcustomplot.cpp
+HEADERS += qcustomplot.h
--
2.48.1

View File

@@ -0,0 +1,38 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit qmake-utils
DESCRIPTION="Qt C++ widget for plotting and data visualization"
HOMEPAGE="https://www.qcustomplot.com/"
SRC_URI="
https://www.qcustomplot.com/release/${PV}/QCustomPlot-sharedlib.tar.gz -> ${PN}-sharedlib-${PV}.tar.gz
https://www.qcustomplot.com/release/${PV}/QCustomPlot-source.tar.gz -> ${PN}-source-${PV}.tar.gz"
S=${WORKDIR}/${PN}-source
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
IUSE=""
RDEPEND="dev-qt/qtbase:6[gui,widgets]"
DEPEND="${RDEPEND}"
PATCHES=( "${FILESDIR}/${P}-qmake.patch" )
src_prepare() {
cp -a ../${PN}-sharedlib/sharedlib-compilation/sharedlib-compilation.pro ${PN}.pro || die
default
}
src_configure() {
eqmake6
}
src_install() {
dolib.so lib${PN}*
doheader ${PN}.h
dodoc changelog.txt
}