diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-08-07 12:37:21 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-08-07 12:37:21 +0100 |
commit | b8c7370a682e4e29cda623222d17a790c01c3642 (patch) | |
tree | f6caa14689bd00a5760eadaa381ff41e50ef3c1b /app-text/zeal | |
parent | 8a4997a7e2d1e36c089d4d76935b5a902d98d3d0 (diff) |
gentoo auto-resync : 07:08:2024 - 12:37:20
Diffstat (limited to 'app-text/zeal')
-rw-r--r-- | app-text/zeal/Manifest | 5 | ||||
-rw-r--r-- | app-text/zeal/files/add-missing-qt-components.patch | 10 | ||||
-rw-r--r-- | app-text/zeal/files/disable-werror.patch | 12 | ||||
-rw-r--r-- | app-text/zeal/files/qt6.patch | 11 | ||||
-rw-r--r-- | app-text/zeal/zeal-0.7.1.ebuild | 57 |
5 files changed, 95 insertions, 0 deletions
diff --git a/app-text/zeal/Manifest b/app-text/zeal/Manifest index 747a45380b20..10ff2340883b 100644 --- a/app-text/zeal/Manifest +++ b/app-text/zeal/Manifest @@ -1,5 +1,10 @@ AUX 0002-settings-disable-checking-for-updates-by-default.patch 1080 BLAKE2B 07b40bdd13fe6e7a4efa24a17a1b734be50ec8e289c74278ae3f718c05388a4b36b064922798c4ec2e4f69e9dd49f3cd24d39c98adb0274914b28fcd42016a36 SHA512 bd5e7369bc5878df9c6dff093d710e73b8ed1a4e2c3a6927a26f5fbf97725fd695a90f197bf46d229b38a16c40e19308f8e058fd9819177c62cd7fbaae7e370d +AUX add-missing-qt-components.patch 532 BLAKE2B 278d3ff4d5833d4b5e63be4fe8bb9942fa764aa97426d415793436b431d8ecd3cc44b687d2b594ec5eedcf44661174d15283b4d2f7a235278c499ec64c97c446 SHA512 3dbaf47a8d197f6892a430bba0f8e89410923fe405a1d5318c0081e66784fc125e29254f81a0da4fba31a38f60858dde35309ec7e3fa0f8f64423631f8fa6fa5 +AUX disable-werror.patch 245 BLAKE2B 187197e65082ce3724569fde73a4d737ff24881cf80d9383d4c83e17c2c8d23667bdf4fabcc12eb5e65186896e1cb66123fa1704299ef3eecf5288e64a4ef900 SHA512 de53fecba780c088e3dc0dc2d69a2e1a48cade216b048b55078eb4dd6758962aa2a353f7981bcd21a6f117de6c0d233dae438c157d0eff129e93669acaa42f84 +AUX qt6.patch 404 BLAKE2B bc757d9ee15e4a85750bc6762107bcce5b7bfd71988738ef08120744d0c9d846bf8dc97946bb76e7439dde49ce6ad4150bfa96b66e0f7a406000caf9eaf43437 SHA512 5fc4ebeedcba98aec13e150eb1a3a1ba82490537431ab765944ee323ae243ec94fa7cc451fa4aeb86edc8892f4a796cff1bb2fb21083cf1902b84ad11fde43e4 AUX zeal-0.6.1_p20200815-fix-sidebar-static-lib.patch 742 BLAKE2B 6c104f3f9708a53e2d19699f38a28f0298808014f0be49aad14f2aee58636528be6d2174ea3d68065cb76f1c8b27091a6cd45d259f2e1418a59ad1e63ea9d1e0 SHA512 0d1e7a7b61670ced6b873537a1bd5a73e8c84572bfec0692477c7d59803b93a9b79fb42bc90f368284acc66583164d0a0482ecd34cb02617a82b6c402dbfd46a DIST zeal-0.6.1_p20200815.tar.gz 1180048 BLAKE2B 22a6ee7985516f2204de0603374944c101fa77339a6c83b8a33633fa51e25890f39d672f3d804adb8c41b9ffc2ad7971ce16f90dacb1160f1868ed3f8768aad2 SHA512 fa08c88a40f2f75847db4950c2b027262304bb8b63b95d497786fa2c3a90aa0c488fc3ebe494afe70353a2dd93a181bf2d8fa752a7241e572045c6728ea99f2d +DIST zeal-0.7.1.tar.gz 1195333 BLAKE2B 56e6d56e152ed94559d15ba4a5dd7972466db75a4d760640b55b532ba3ed325a429e8e03f450efaa3e24f09af68ff5b43463d9b8f21b8a9bd11e23a3841780c4 SHA512 bf2b5e2878b349ec4e5e74377a2a74e263d5f20649f152f194375547c5e69b3e6115c9d0f103acad7f087b20456d888a3be9f7ce1aa232206bba7e0ed38d252b EBUILD zeal-0.6.1_p20200815-r1.ebuild 1149 BLAKE2B 58d3bf11e5860776bab0b4d8acfd235923116b75606bfe80a133a2d11876b09e19894e7066523c09f683272614d659693a1268f827a0495f1d08c98d3cb2d751 SHA512 1417c839787e230b3b79e159cfb52162f5b16852dd91182878a282766ca3dc8465d1db5070091d416528aa778fab8fcf8bedd72517e31ceb162219d47b18c323 +EBUILD zeal-0.7.1.ebuild 1144 BLAKE2B ccfa1322c4993c73ce002cd2479ed327aeadd22ba140572e141d44fcbd4d81fe82fcacad857f79ba2bd8c20080bffa08ca0193e1f3d97ef68be51589631d6bae SHA512 29351d4a132e70e5b1f42d06380488c602ecf5344640fe791b1adab0c0f9275cbac0da44ba3e7831ae4fa848082a675125490e7547f5d04dbebebf586a08790a MISC metadata.xml 249 BLAKE2B f4b1ccdb1ff03c3f0e6ed64ed43735ecf7a28c4f1423318cc73b98f1c7381b9c2b43d536b54a0dc4e3bd1a513901ea5bf79aacf2e093d183e5891a2e076d7cee SHA512 47df3d0e94b419d5a06a7b6c5b41b4d75bc6c0c868dca5c0722e358618afc34bc2cc354d6f6c416438783b57cf187af15736181e28a740d8722ded775d167489 diff --git a/app-text/zeal/files/add-missing-qt-components.patch b/app-text/zeal/files/add-missing-qt-components.patch new file mode 100644 index 000000000000..423bfed0b081 --- /dev/null +++ b/app-text/zeal/files/add-missing-qt-components.patch @@ -0,0 +1,10 @@ +Backport of https://github.com/zealdocs/zeal/pull/1644 +Done manually because CMakeLists.txt has CRLF line endings in release tarball. +--- a/src/app/CMakeLists.txt ++++ b/src/app/CMakeLists.txt +@@ -1,4 +1,4 @@ +-find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Widgets REQUIRED)
++find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Concurrent WebEngineWidgets Widgets REQUIRED)
+ if (Qt${QT_VERSION_MAJOR}Widgets_VERSION VERSION_LESS QT_MINIMUM_VERSION)
+ message(FATAL_ERROR "Qt version >= ${QT_MINIMUM_VERSION} is required.")
+ endif()
diff --git a/app-text/zeal/files/disable-werror.patch b/app-text/zeal/files/disable-werror.patch new file mode 100644 index 000000000000..e1811d3098de --- /dev/null +++ b/app-text/zeal/files/disable-werror.patch @@ -0,0 +1,12 @@ +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -59,9 +59,5 @@ + VERBATIM
+ )
+
+-if(${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.24.0")
+- set(CMAKE_COMPILE_WARNING_AS_ERROR ON)
+-endif()
+-
+ add_subdirectory(assets)
+ add_subdirectory(src)
diff --git a/app-text/zeal/files/qt6.patch b/app-text/zeal/files/qt6.patch new file mode 100644 index 000000000000..1312d63abb6f --- /dev/null +++ b/app-text/zeal/files/qt6.patch @@ -0,0 +1,11 @@ +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -22,7 +22,7 @@ + set(PROJECT_COPYRIGHT "© 2013-2024 Oleg Shparber and other contributors")
+
+ # Find available major Qt version. It will be stored in QT_VERSION_MAJOR.
+-find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Core)
++find_package(QT NAMES Qt6 REQUIRED COMPONENTS Core)
+ if(QT_VERSION_MAJOR EQUAL 6)
+ set(QT_MINIMUM_VERSION 6.2.0)
+ else()
diff --git a/app-text/zeal/zeal-0.7.1.ebuild b/app-text/zeal/zeal-0.7.1.ebuild new file mode 100644 index 000000000000..517aa25b87d1 --- /dev/null +++ b/app-text/zeal/zeal-0.7.1.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake edos2unix xdg-utils + +DESCRIPTION="Offline documentation browser inspired by Dash" +HOMEPAGE="https://zealdocs.org/" +SRC_URI="https://github.com/zealdocs/${PN}/releases/download/v${PV}/${P}.tar.gz" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +DEPEND=" + app-arch/libarchive:= + dev-db/sqlite:3 + dev-qt/qtbase:6[concurrent,gui,network,widgets] + dev-qt/qtwebchannel:6 + dev-qt/qtwebengine:6[widgets] + x11-libs/libX11 + x11-libs/libxcb:= + x11-libs/xcb-util-keysyms +" +RDEPEND="${DEPEND} + x11-themes/hicolor-icon-theme +" +BDEPEND="kde-frameworks/extra-cmake-modules" + +PATCHES=( + "${FILESDIR}/disable-werror.patch" + "${FILESDIR}/qt6.patch" + "${FILESDIR}/add-missing-qt-components.patch" +) + +src_prepare() { + edos2unix "${S}/assets/freedesktop/org.zealdocs.zeal.desktop" + cmake_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DZEAL_RELEASE_BUILD=ON + ) + cmake_src_configure +} + +pkg_postinst() { + xdg_icon_cache_update + xdg_desktop_database_update +} + +pkg_postrm() { + xdg_icon_cache_update + xdg_desktop_database_update +} |