mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
marknote, bump to version 1.5.0 (#13819)
This commit is contained in:
@@ -5,28 +5,20 @@ easy to distinguish between them and keep your notes at your fingertips. Your no
|
||||
Markdown files in your Documents folder, making it easy to use your notes outside of Marknote as \
|
||||
well as inside the app."
|
||||
HOMEPAGE="https://invent.kde.org/office/marknote"
|
||||
COPYRIGHT="2010-2024 KDE Organisation"
|
||||
COPYRIGHT="2010-2026 KDE Organisation"
|
||||
LICENSE="GNU GPL v2"
|
||||
REVISION="6"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://download.kde.org/stable/marknote/marknote-$portVersion.tar.xz"
|
||||
CHECKSUM_SHA256="ff99598415a6cca5900cb4d10d2b72a6f392eafe07874b6e2eb42e9f7ab3bd28"
|
||||
CHECKSUM_SHA256="6c1fa7159da0db50296f231716bbe267b6d7416864ca7da4551a50963ab8abb5"
|
||||
SOURCE_DIR="marknote-$portVersion"
|
||||
PATCHES="marknote-$portVersion.patchset"
|
||||
ADDITIONAL_FILES="marknote.rdef.in"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
commandBinDir=$binDir
|
||||
commandSuffix=$secondaryArchSuffix
|
||||
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
||||
commandSuffix=
|
||||
commandBinDir=$prefix/bin
|
||||
fi
|
||||
|
||||
PROVIDES="
|
||||
marknote$secondaryArchSuffix = $portVersion
|
||||
cmd:marknote$commandSuffix = $portVersion
|
||||
app:Marknote = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
@@ -42,8 +34,10 @@ REQUIRES="
|
||||
lib:libKF6CoreAddons$secondaryArchSuffix
|
||||
lib:libKF6Crash$secondaryArchSuffix
|
||||
lib:libKF6I18n$secondaryArchSuffix
|
||||
lib:libKF6IconThemes$secondaryArchSuffix
|
||||
lib:libKF6ItemModels$secondaryArchSuffix
|
||||
lib:libKF6WidgetsAddons$secondaryArchSuffix
|
||||
lib:libKF6WindowSystem$secondaryArchSuffix
|
||||
lib:libKF6XmlGui$secondaryArchSuffix
|
||||
lib:libKirigami$secondaryArchSuffix
|
||||
# KPim6
|
||||
@@ -64,7 +58,6 @@ BUILD_REQUIRES="
|
||||
devel:libKirigamiAddonsStatefulApp$secondaryArchSuffix
|
||||
devel:libmd4c$secondaryArchSuffix
|
||||
# KF6
|
||||
breeze_icons${secondaryArchSuffix}_devel
|
||||
extra_cmake_modules$secondaryArchSuffix
|
||||
devel:libKF6Codecs$secondaryArchSuffix
|
||||
devel:libKF6ColorScheme$secondaryArchSuffix
|
||||
@@ -73,7 +66,10 @@ BUILD_REQUIRES="
|
||||
devel:libKF6CoreAddons$secondaryArchSuffix
|
||||
devel:libKF6Crash$secondaryArchSuffix
|
||||
devel:libKF6I18n$secondaryArchSuffix
|
||||
devel:libKF6IconThemes$secondaryArchSuffix
|
||||
devel:libKF6Notifications$secondaryArchSuffix
|
||||
devel:libKF6WidgetsAddons$secondaryArchSuffix
|
||||
devel:libKF6WindowSystem$secondaryArchSuffix
|
||||
devel:libKF6XmlGui$secondaryArchSuffix
|
||||
devel:libKirigami$secondaryArchSuffix
|
||||
# KPim6
|
||||
@@ -95,10 +91,12 @@ BUILD_PREREQUIRES="
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cmake -Bbuild -S. -DCMAKE_BUILD_TYPE=Release \
|
||||
cmake -B build -S . -DCMAKE_BUILD_TYPE=Release \
|
||||
$cmakeDirArgs \
|
||||
-DCMAKE_INSTALL_BINDIR=$commandBinDir \
|
||||
-DECM_DIR=/system/data/cmake/Modules/ECM/cmake -Wno-dev
|
||||
-DCMAKE_INSTALL_BINDIR=$appsDir \
|
||||
-DECM_DIR=/system/data/cmake/Modules/ECM/cmake \
|
||||
-Wno-dev
|
||||
|
||||
make -C build $jobArgs
|
||||
}
|
||||
|
||||
@@ -109,6 +107,8 @@ INSTALL()
|
||||
# cleanup
|
||||
rm -rf $dataDir/{applications,metainfo}
|
||||
|
||||
mv $appsDir/marknote $appsDir/Marknote
|
||||
|
||||
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
|
||||
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
|
||||
local MINOR="`echo "$portVersion" | cut -d. -f3`"
|
||||
@@ -124,6 +124,6 @@ INSTALL()
|
||||
-e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \
|
||||
$portDir/additional-files/marknote.rdef.in > marknote.rdef
|
||||
|
||||
addResourcesToBinaries marknote.rdef $commandBinDir/marknote
|
||||
addAppDeskbarSymlink $commandBinDir/marknote Marknote
|
||||
addResourcesToBinaries marknote.rdef $appsDir/Marknote
|
||||
addAppDeskbarSymlink $appsDir/Marknote
|
||||
}
|
||||
@@ -1,25 +0,0 @@
|
||||
From 50c02ef7bc299aa867cfc57623941768e95b8b87 Mon Sep 17 00:00:00 2001
|
||||
From: Schrijvers Luc <begasus@gmail.com>
|
||||
Date: Sat, 18 May 2024 09:30:32 +0200
|
||||
Subject: Use software rendering
|
||||
|
||||
Text menus don't display too well all the time with Kirigami
|
||||
Use fallback to software rendering to solve the display
|
||||
|
||||
diff --git a/src/main.cpp b/src/main.cpp
|
||||
index 04ebf14..f2112ae 100644
|
||||
--- a/src/main.cpp
|
||||
+++ b/src/main.cpp
|
||||
@@ -31,6 +31,9 @@ using namespace Qt::Literals::StringLiterals;
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
+#if defined(Q_OS_HAIKU)
|
||||
+ qputenv("QT_QUICK_BACKEND", "software");
|
||||
+#endif
|
||||
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
|
||||
QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
||||
#endif
|
||||
--
|
||||
2.45.1
|
||||
|
||||
Reference in New Issue
Block a user