mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-29 11:38:52 +02:00
zeal, bump to version 0.8.0 (#13907)
This commit is contained in:
38
app-text/zeal/additional-files/zeal.rdef.in
Normal file
38
app-text/zeal/additional-files/zeal.rdef.in
Normal file
@@ -0,0 +1,38 @@
|
||||
|
||||
resource app_flags B_MULTIPLE_LAUNCH;
|
||||
|
||||
resource app_version {
|
||||
major = @MAJOR@,
|
||||
middle = @MIDDLE@,
|
||||
minor = @MINOR@,
|
||||
|
||||
variety = B_APPV_FINAL,
|
||||
internal = 0,
|
||||
|
||||
short_info = "Zeal",
|
||||
long_info = "@LONG_INFO@"
|
||||
};
|
||||
|
||||
resource app_signature "@APP_SIGNATURE@";
|
||||
|
||||
resource file_types message {
|
||||
"types" = "image"
|
||||
};
|
||||
|
||||
resource vector_icon {
|
||||
$"6E6369660A0101000071030100000200060239C6663B870ABB870A39C666499A"
|
||||
$"8F4A457000FFAA00FF7F4C0002001602B7C666B84000384000B7C6664945EB4B"
|
||||
$"1A7A00E3FFE5020006023E6DEB3BA6B8BBA6B83E6DEB48C8CC4B590A00FCE3B1"
|
||||
$"ACFFAA06020006023ABAF43A8204BAB4CC3AF23D4B35FB4A37BC01FFAA00FF7F"
|
||||
$"4C00020006023BBFF60000000000003BC36A4C02A74AC25B007F4C00FFE9E9E9"
|
||||
$"020006023BBFF60000000000003BC36A4B554F481D08007F4C00FFE9E9E90200"
|
||||
$"06023E13A03DF5DCBD51F33D7B5C498C6E3B671522FFAA00FF01010104FFBD0C"
|
||||
$"0A05465A4B5A6044584046400A06223E352E5A3C5A46475922460A0446582246"
|
||||
$"223E464E0A04464E46585A445A3C0A04B4AFBE33352E5A3C484C0A04223EB4AF"
|
||||
$"BE33C315C479464E0803CA1BBEF3C223C648C2CDC6480803CA1BC00DC223C761"
|
||||
$"C2CDC7610803CA1BC0C8C223C81DC2CDC81D08065A3C484CC27CC53AC270C72B"
|
||||
$"4758CA35C1B00806243C494CC216C5A0C20AC7914659CA35C1B00A0A2A3B3630"
|
||||
$"3B3246424F3A553C4848434637362F3D0C0A000100000A010101100117830004"
|
||||
$"0A020102000A030103000A040104000A050105000A060106000A070107000A08"
|
||||
$"0108000A0801091001178000040A08010A1001178000040A08010B00"
|
||||
};
|
||||
116
app-text/zeal/patches/zeal-0.8.0.patchset
Normal file
116
app-text/zeal/patches/zeal-0.8.0.patchset
Normal file
@@ -0,0 +1,116 @@
|
||||
From d42150cdb37315ba51df496effe0a033d397fe32 Mon Sep 17 00:00:00 2001
|
||||
From: Gerasim Troeglazov <3dEyes@gmail.com>
|
||||
Date: Mon, 3 Sep 2018 20:03:29 +1000
|
||||
Subject: Fix build for Haiku
|
||||
|
||||
|
||||
diff --git a/src/libs/ui/qxtglobalshortcut/CMakeLists.txt b/src/libs/ui/qxtglobalshortcut/CMakeLists.txt
|
||||
index 8a06066..066277e 100644
|
||||
--- a/src/libs/ui/qxtglobalshortcut/CMakeLists.txt
|
||||
+++ b/src/libs/ui/qxtglobalshortcut/CMakeLists.txt
|
||||
@@ -6,6 +6,10 @@ if(APPLE)
|
||||
list(APPEND QxtGlobalShortcut_SOURCES
|
||||
qxtglobalshortcut_mac.cpp
|
||||
)
|
||||
+elseif(HAIKU)
|
||||
+ list(APPEND QxtGlobalShortcut_SOURCES
|
||||
+ qxtglobalshortcut_haiku.cpp
|
||||
+ )
|
||||
elseif(UNIX)
|
||||
find_package(X11)
|
||||
if(X11_FOUND)
|
||||
diff --git a/src/libs/ui/qxtglobalshortcut/qxtglobalshortcut_haiku.cpp b/src/libs/ui/qxtglobalshortcut/qxtglobalshortcut_haiku.cpp
|
||||
new file mode 100644
|
||||
index 0000000..1bb9cde
|
||||
--- /dev/null
|
||||
+++ b/src/libs/ui/qxtglobalshortcut/qxtglobalshortcut_haiku.cpp
|
||||
@@ -0,0 +1,31 @@
|
||||
+#include "qxtglobalshortcut_p.h"
|
||||
+
|
||||
+#include <QKeySequence>
|
||||
+#include <QScopedPointer>
|
||||
+#include <QVector>
|
||||
+
|
||||
+bool QxtGlobalShortcutPrivate::nativeEventFilter(const QByteArray &eventType,
|
||||
+ void *message, long *result)
|
||||
+{
|
||||
+ return false;
|
||||
+}
|
||||
+
|
||||
+quint32 QxtGlobalShortcutPrivate::nativeModifiers(Qt::KeyboardModifiers modifiers)
|
||||
+{
|
||||
+ return 0;
|
||||
+}
|
||||
+
|
||||
+quint32 QxtGlobalShortcutPrivate::nativeKeycode(Qt::Key key)
|
||||
+{
|
||||
+ return 0;
|
||||
+}
|
||||
+
|
||||
+bool QxtGlobalShortcutPrivate::registerShortcut(quint32 nativeKey, quint32 nativeMods)
|
||||
+{
|
||||
+ return false;
|
||||
+}
|
||||
+
|
||||
+bool QxtGlobalShortcutPrivate::unregisterShortcut(quint32 nativeKey, quint32 nativeMods)
|
||||
+{
|
||||
+ return false;
|
||||
+}
|
||||
--
|
||||
2.52.0
|
||||
|
||||
|
||||
From 18a56e281b935298a659307fc5c54a6e192802fc Mon Sep 17 00:00:00 2001
|
||||
From: Begasus <begasus@gmail.com>
|
||||
Date: Wed, 6 Dec 2023 17:04:14 +0100
|
||||
Subject: Fix linking with libnetwork
|
||||
|
||||
|
||||
diff --git a/src/app/CMakeLists.txt b/src/app/CMakeLists.txt
|
||||
index d2521b0..3b15f5b 100644
|
||||
--- a/src/app/CMakeLists.txt
|
||||
+++ b/src/app/CMakeLists.txt
|
||||
@@ -45,6 +45,10 @@ endif()
|
||||
|
||||
target_link_libraries(App PRIVATE Core Util Qt${QT_VERSION_MAJOR}::Widgets)
|
||||
|
||||
+if(HAIKU)
|
||||
+ target_link_libraries(App PRIVATE network)
|
||||
+endif()
|
||||
+
|
||||
set_target_properties(App PROPERTIES
|
||||
OUTPUT_NAME ${_project_output_name}
|
||||
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}
|
||||
--
|
||||
2.52.0
|
||||
|
||||
|
||||
From b449ca2425353f595dd658822c47de0f27e85d3d Mon Sep 17 00:00:00 2001
|
||||
From: Luc Schrijvers <begasus@gmail.com>
|
||||
Date: Wed, 28 May 2025 09:29:04 +0200
|
||||
Subject: Fix: undefined reference to `QxtGlobalShortcutPrivate::isSupported()'
|
||||
|
||||
|
||||
diff --git a/src/libs/ui/qxtglobalshortcut/qxtglobalshortcut_haiku.cpp b/src/libs/ui/qxtglobalshortcut/qxtglobalshortcut_haiku.cpp
|
||||
index 1bb9cde..654766f 100644
|
||||
--- a/src/libs/ui/qxtglobalshortcut/qxtglobalshortcut_haiku.cpp
|
||||
+++ b/src/libs/ui/qxtglobalshortcut/qxtglobalshortcut_haiku.cpp
|
||||
@@ -1,9 +1,15 @@
|
||||
#include "qxtglobalshortcut_p.h"
|
||||
|
||||
+#include <QGuiApplication>
|
||||
#include <QKeySequence>
|
||||
#include <QScopedPointer>
|
||||
#include <QVector>
|
||||
|
||||
+bool QxtGlobalShortcutPrivate::isSupported()
|
||||
+{
|
||||
+ return QGuiApplication::platformName() == QLatin1String("haiku");
|
||||
+}
|
||||
+
|
||||
bool QxtGlobalShortcutPrivate::nativeEventFilter(const QByteArray &eventType,
|
||||
void *message, long *result)
|
||||
{
|
||||
--
|
||||
2.52.0
|
||||
|
||||
94
app-text/zeal/zeal-0.8.0.recipe
Normal file
94
app-text/zeal/zeal-0.8.0.recipe
Normal file
@@ -0,0 +1,94 @@
|
||||
SUMMARY="A simple offline documentation browser inspired by Dash"
|
||||
DESCRIPTION="Zeal is a cross-platform, open source, offline \
|
||||
documentation browser for software developers, inspired by Dash Docs \
|
||||
for macOS and iOS. Zeal has over 195+ docsets and are all compatible \
|
||||
with Dash docsets."
|
||||
HOMEPAGE="https://zealdocs.org/"
|
||||
COPYRIGHT="2013-present Oleg Shparber and other contributors"
|
||||
LICENSE="GNU GPL v3"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/zealdocs/zeal/archive/v$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="0fc04840b18c6323c5bbb80f475958f146bd6fc53cff8952e957b9d0048a8cf0"
|
||||
PATCHES="zeal-$portVersion.patchset"
|
||||
ADDITIONAL_FILES="zeal.rdef.in"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
zeal$secondaryArchSuffix = $portVersion
|
||||
app:Zeal = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libarchive$secondaryArchSuffix
|
||||
lib:libGL$secondaryArchSuffix
|
||||
lib:libQt5Core$secondaryArchSuffix
|
||||
lib:libQt5Gui$secondaryArchSuffix
|
||||
lib:libQt5Network$secondaryArchSuffix
|
||||
lib:libQt5WebEngine$secondaryArchSuffix
|
||||
lib:libQt5WebEngineCore$secondaryArchSuffix
|
||||
lib:libQt5WebEngineWidgets$secondaryArchSuffix
|
||||
lib:libQt5WebKit$secondaryArchSuffix
|
||||
lib:libQt5WebKitWidgets$secondaryArchSuffix
|
||||
lib:libsqlite3$secondaryArchSuffix
|
||||
lib:libz$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
extra_cmake_modules$secondaryArchSuffix
|
||||
devel:libarchive$secondaryArchSuffix
|
||||
devel:libQt5Core$secondaryArchSuffix
|
||||
devel:libQt5Gui$secondaryArchSuffix
|
||||
devel:libQt5Network$secondaryArchSuffix
|
||||
devel:libQt5WebEngine$secondaryArchSuffix
|
||||
devel:libQt5WebKit$secondaryArchSuffix
|
||||
devel:libsqlite3$secondaryArchSuffix
|
||||
devel:libz$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:cmake
|
||||
cmd:g++$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cmake -Bbuild -S. -DCMAKE_BUILD_TYPE=Release \
|
||||
$cmakeDirArgs \
|
||||
-DECM_DIR=/system/data/cmake/Modules/ECM/cmake \
|
||||
-DZEAL_RELEASE_BUILD=ON
|
||||
|
||||
make -Cbuild $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
mkdir -pv $appsDir
|
||||
cp -afv build/zeal $appsDir/Zeal
|
||||
|
||||
local APP_SIGNATURE="application/x-vnd.zeal"
|
||||
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
|
||||
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
|
||||
local MINOR="`echo "$portVersion" | cut -d. -f3`"
|
||||
local LONG_INFO="$SUMMARY"
|
||||
sed \
|
||||
-e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \
|
||||
-e "s|@MAJOR@|$MAJOR|" \
|
||||
-e "s|@MIDDLE@|$MIDDLE|" \
|
||||
-e "s|@MINOR@|$MINOR|" \
|
||||
-e "s|@LONG_INFO@|$LONG_INFO|" \
|
||||
$portDir/additional-files/zeal.rdef.in > zeal.rdef
|
||||
|
||||
addResourcesToBinaries zeal.rdef $appsDir/Zeal
|
||||
mimeset -f $appsDir/Zeal
|
||||
addAppDeskbarSymlink $appsDir/Zeal
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
make test
|
||||
}
|
||||
Reference in New Issue
Block a user