labplot, bump to 2.12.0 (#12260)

This commit is contained in:
Schrijvers Luc
2025-04-27 14:31:23 +00:00
committed by GitHub
parent 675ed1f91b
commit 03a77474fe
2 changed files with 36 additions and 17 deletions

View File

@@ -10,12 +10,13 @@ Feature highlights:
* Smooth data import and export to and from multiple formats
* Available for Windows, macOS, Linux and FreeBSD."
HOMEPAGE="https://invent.kde.org/education/labplot"
COPYRIGHT="2010-2024 KDE Organisation"
COPYRIGHT="2010-2025 KDE Organisation"
LICENSE="GNU GPL v2"
REVISION="3"
REVISION="1"
SOURCE_URI="https://download.kde.org/stable/labplot/labplot-$portVersion.tar.xz"
CHECKSUM_SHA256="53aa6ac8df39324d99463e60d88de25346b3928da5bb0f210b0563489046679d"
CHECKSUM_SHA256="25f1751261ec2d11312f0179049ea1f16db33b3a89800dc572d68ad8d267afe7"
SOURCE_DIR="labplot-$portVersion"
PATCHES="labplot-$portVersion.patchset"
ADDITIONAL_FILES="labplot2.rdef.in"
ARCHITECTURES="all !x86_gcc2"
@@ -23,7 +24,7 @@ SECONDARY_ARCHITECTURES="x86"
PROVIDES="
labplot$secondaryArchSuffix = $portVersion
cmd:labplot2$secondaryArchSuffix = $portVersion
cmd:labplot$secondaryArchSuffix = $portVersion
lib:liblabplot$secondaryArchSuffix
"
REQUIRES="
@@ -46,6 +47,7 @@ REQUIRES="
lib:libspectre$secondaryArchSuffix
lib:libxcb$secondaryArchSuffix
lib:libz$secondaryArchSuffix
lib:libzstd$secondaryArchSuffix
# KF6
lib:libKF6Archive$secondaryArchSuffix
lib:libKF6Attica$secondaryArchSuffix
@@ -111,6 +113,7 @@ BUILD_REQUIRES="
devel:libssp_nonshared$secondaryArchSuffix
devel:libxcb$secondaryArchSuffix
devel:libz$secondaryArchSuffix
devel:libzstd$secondaryArchSuffix
# KF6
extra_cmake_modules$secondaryArchSuffix
devel:libKF6Archive$secondaryArchSuffix
@@ -150,7 +153,7 @@ BUILD_PREREQUIRES="
cmd:bison
cmd:cmake
cmd:g++$secondaryArchSuffix
cmd:make
cmd:ninja
cmd:msgfmt$secondaryArchSuffix
cmd:msgmerge$secondaryArchSuffix
cmd:pkg_config$secondaryArchSuffix
@@ -160,29 +163,23 @@ TEST_REQUIRES="
qthaikuplugins$secondaryArchSuffix
"
PATCH()
{
# disable docs
sed -e '/ DocTools/ s/^#*/#/' -i CMakeLists.txt
sed -e '/add_subdirectory(doc)/ s/^#*/#/' -i CMakeLists.txt
}
BUILD()
{
cmake -B build -S . -DCMAKE_BUILD_TYPE=Release \
cmake -B build -S . -G Ninja -DCMAKE_BUILD_TYPE=Release \
$cmakeDirArgs \
-DECM_DIR=/system/data/cmake/Modules/ECM/cmake \
-DCMAKE_SKIP_RPATH=YES \
-DENABLE_READSTAT=OFF \
-DBUILD_TESTING=OFF \
-DENABLE_TESTS=OFF \
-Wno-dev
make -C build $jobArgs
ninja -v -C build $jobArgs
}
INSTALL()
{
make -C build install
ninja -v -C build install
# don't mess with shared_mime_info files
rm -rf $dataDir/mime/{aliases,generic-icons,globs,globs2,icons,magic}
@@ -205,9 +202,9 @@ INSTALL()
-e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \
$portDir/additional-files/labplot2.rdef.in > labplot2.rdef
addResourcesToBinaries labplot2.rdef $binDir/labplot2
addResourcesToBinaries labplot2.rdef $binDir/labplot
addAppDeskbarSymlink $binDir/labplot2 LabPlot
addAppDeskbarSymlink $binDir/labplot LabPlot
}
TEST()

View File

@@ -0,0 +1,22 @@
From 4589008cc71aa2d086d0ec9b2c44bc19816f4be7 Mon Sep 17 00:00:00 2001
From: Luc Schrijvers <begasus@gmail.com>
Date: Sat, 26 Apr 2025 19:12:21 +0200
Subject: Don't default to xcb qt plugin on Haiku
diff --git a/src/frontend/LabPlot.cpp b/src/frontend/LabPlot.cpp
index 23bab67..50cf6dd 100644
--- a/src/frontend/LabPlot.cpp
+++ b/src/frontend/LabPlot.cpp
@@ -42,7 +42,7 @@
#endif
int main(int argc, char* argv[]) {
-#if defined(Q_OS_UNIX) && !defined(Q_OS_DARWIN)
+#if defined(Q_OS_UNIX) && !defined(Q_OS_DARWIN) && !defined(Q_OS_HAIKU)
// the qads library has issues on wayland so we force qt to use x11 instead
// see https://invent.kde.org/education/labplot/-/issues/1067
QByteArray xcbQtQpaEnvVar("xcb");
--
2.48.1