mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
kasts, bump to 25.04.0 (#12235)
This commit is contained in:
@@ -12,7 +12,8 @@ COPYRIGHT="2010-2025 KDE Organisation"
|
||||
LICENSE="GNU GPL v2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://download.kde.org/stable/release-service/$portVersion/src/kasts-$portVersion.tar.xz"
|
||||
CHECKSUM_SHA256="45351ce35d2188e732544cc14b48d3589dfe5e5206884502e9695f5bdee37570"
|
||||
CHECKSUM_SHA256="49e0983cf70d17e1771255c0321d74602c54e28cf7d14d3143286d9a22c898fe"
|
||||
PATCHES="276.patch"
|
||||
ADDITIONAL_FILES="kasts.rdef.in"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
@@ -75,6 +76,7 @@ BUILD_REQUIRES="
|
||||
devel:libKF6CoreAddons$secondaryArchSuffix
|
||||
devel:libKF6Crash$secondaryArchSuffix
|
||||
devel:libKF6I18n$secondaryArchSuffix
|
||||
devel:libKF6IconThemes$secondaryArchSuffix
|
||||
devel:libKF6Syndication$secondaryArchSuffix
|
||||
devel:libKF6ThreadWeaver$secondaryArchSuffix
|
||||
devel:libKirigami$secondaryArchSuffix
|
||||
@@ -93,6 +95,12 @@ BUILD_PREREQUIRES="
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PATCH()
|
||||
{
|
||||
# use Haiku's icon theme
|
||||
sed -e 's,\ KIconTheme::initTheme();,\// KIconTheme::initTheme();,g' -i src/main.cpp
|
||||
}
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cmake -B build -S . -DCMAKE_BUILD_TYPE=Release \
|
||||
47
media-sound/kasts/patches/276.patch
Normal file
47
media-sound/kasts/patches/276.patch
Normal file
@@ -0,0 +1,47 @@
|
||||
From 8a14a01f49c973a4ee119028ff1090cbd8e2eea1 Mon Sep 17 00:00:00 2001
|
||||
From: Bart De Vries <bart@mogwai.be>
|
||||
Date: Tue, 22 Apr 2025 21:56:47 +0200
|
||||
Subject: [PATCH] Anchor header depending on qt version
|
||||
|
||||
BUG: 503154
|
||||
---
|
||||
src/main.cpp | 7 +++++++
|
||||
src/qml/Main.qml | 4 ++--
|
||||
2 files changed, 9 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/src/main.cpp b/src/main.cpp
|
||||
index 009c95bdb..75d8f8dfd 100644
|
||||
--- a/src/main.cpp
|
||||
+++ b/src/main.cpp
|
||||
@@ -117,6 +117,13 @@ int main(int argc, char *argv[])
|
||||
// pass name of style to qml
|
||||
engine.rootContext()->setContextProperty(QStringLiteral("styleName"), QQuickStyle::name());
|
||||
|
||||
+ // pass to qml whether qt version is higher or equal to 6.9
|
||||
+#if (QT_VERSION >= QT_VERSION_CHECK(6, 9, 0))
|
||||
+ engine.rootContext()->setContextProperty(QStringLiteral("qtAbove69"), true);
|
||||
+#else
|
||||
+ engine.rootContext()->setContextProperty(QStringLiteral("qtAbove69"), false);
|
||||
+#endif
|
||||
+
|
||||
QCommandLineParser parser;
|
||||
parser.setApplicationDescription(i18n("Podcast Application"));
|
||||
QCommandLineOption addFeedOption(QStringList() << QStringLiteral("a") << QStringLiteral("add"),
|
||||
diff --git a/src/qml/Main.qml b/src/qml/Main.qml
|
||||
index ae634bdee..74e254a39 100644
|
||||
--- a/src/qml/Main.qml
|
||||
+++ b/src/qml/Main.qml
|
||||
@@ -142,8 +142,8 @@ Kirigami.ApplicationWindow {
|
||||
id: headerLoader
|
||||
active: !Kirigami.Settings.isMobile
|
||||
visible: active
|
||||
- anchors.left: parent.left
|
||||
- anchors.right: parent.right
|
||||
+ anchors.left: qtAbove69 ? parent.left : undefined
|
||||
+ anchors.right: qtAbove69 ? parent.right : undefined
|
||||
|
||||
sourceComponent: HeaderBar {
|
||||
focus: true
|
||||
--
|
||||
GitLab
|
||||
|
||||
Reference in New Issue
Block a user