summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2024-08-10 10:15:42 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2024-08-10 10:17:44 +0200
commit8583678db11e3f57898839d741762c206f30a802 (patch)
tree398e10a0fe4409acb47aff17b3a0f6820998b6f9 /kde-frameworks
parentdev-python/selenium: Stabilize 4.23.1 sparc, #937686 (diff)
downloadgentoo-8583678db11e3f57898839d741762c206f30a802.tar.gz
gentoo-8583678db11e3f57898839d741762c206f30a802.tar.bz2
gentoo-8583678db11e3f57898839d741762c206f30a802.zip
kde-frameworks/kfilemetadata: Fix libexecdir path
KDE-bug: https://bugs.kde.org/show_bug.cgi?id=491462 Bug: https://bugs.gentoo.org/928345 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'kde-frameworks')
-rw-r--r--kde-frameworks/kfilemetadata/files/kfilemetadata-6.5.0-libexecdir.patch31
-rw-r--r--kde-frameworks/kfilemetadata/kfilemetadata-6.5.0-r1.ebuild68
2 files changed, 99 insertions, 0 deletions
diff --git a/kde-frameworks/kfilemetadata/files/kfilemetadata-6.5.0-libexecdir.patch b/kde-frameworks/kfilemetadata/files/kfilemetadata-6.5.0-libexecdir.patch
new file mode 100644
index 000000000000..b5c4b684b29f
--- /dev/null
+++ b/kde-frameworks/kfilemetadata/files/kfilemetadata-6.5.0-libexecdir.patch
@@ -0,0 +1,31 @@
+From 6708b9acf81b69e82166ac65893241235513c026 Mon Sep 17 00:00:00 2001
+From: Andreas Sturmlechner <asturm@gentoo.org>
+Date: Sat, 10 Aug 2024 10:03:37 +0200
+Subject: [PATCH] cmake: Use KDE_INSTALL_FULL_LIBEXECDIR_KF instead of manual
+ path mangling
+
+KDE_INSTALL_LIBEXECDIR_KF is not guaranteed to be relative.
+
+BUG: 491462
+
+Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
+---
+ src/config-kfilemetadata.h.in | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/config-kfilemetadata.h.in b/src/config-kfilemetadata.h.in
+index ad54c71..984bfd4 100644
+--- a/src/config-kfilemetadata.h.in
++++ b/src/config-kfilemetadata.h.in
+@@ -6,7 +6,7 @@
+
+ #ifndef CONFIGKFILEMETADATA_H
+ #define CONFIGKFILEMETADATA_H
+-#define LIBEXEC_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/${KDE_INSTALL_LIBEXECDIR_KF}"
++#define LIBEXEC_INSTALL_DIR "${KDE_INSTALL_FULL_LIBEXECDIR_KF}"
+
+ #cmakedefine01 HAVE_AVSTREAM_CODECPAR
+
+--
+2.45.2
+
diff --git a/kde-frameworks/kfilemetadata/kfilemetadata-6.5.0-r1.ebuild b/kde-frameworks/kfilemetadata/kfilemetadata-6.5.0-r1.ebuild
new file mode 100644
index 000000000000..d6db84563ad5
--- /dev/null
+++ b/kde-frameworks/kfilemetadata/kfilemetadata-6.5.0-r1.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..13} )
+PVCUT=$(ver_cut 1-2)
+QTMIN=6.6.2
+inherit ecm frameworks.kde.org optfeature python-any-r1
+
+DESCRIPTION="Library for extracting file metadata"
+
+LICENSE="LGPL-2+"
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86"
+IUSE="epub exif ffmpeg mobi pdf taglib"
+
+RESTRICT="test"
+
+RDEPEND="
+ >=dev-qt/qtbase-${QTMIN}:6[gui,xml]
+ =kde-frameworks/karchive-${PVCUT}*:6
+ =kde-frameworks/kcodecs-${PVCUT}*:6
+ =kde-frameworks/kcoreaddons-${PVCUT}*:6
+ =kde-frameworks/ki18n-${PVCUT}*:6
+ epub? ( app-text/ebook-tools )
+ exif? ( media-gfx/exiv2:= )
+ ffmpeg? ( media-video/ffmpeg:0= )
+ mobi? ( kde-apps/kdegraphics-mobipocket:6 )
+ pdf? ( app-text/poppler[qt6(-)] )
+ taglib? ( media-libs/taglib:= )
+"
+DEPEND="${RDEPEND}
+ kernel_linux? ( sys-apps/attr )
+"
+BDEPEND="test? ( ${PYTHON_DEPS} )"
+
+CMAKE_SKIP_TESTS=(
+ # FIXME: bug 644650, fails on tmpfs (but not for everyone)
+ usermetadatawritertest
+)
+
+PATCHES=( "${FILESDIR}/${P}-libexecdir.patch" ) # KDE-bug 491462
+
+pkg_setup() {
+ use test && python-any-r1_pkg_setup
+ ecm_pkg_setup
+}
+
+src_configure() {
+ local mycmakeargs=(
+ $(cmake_use_find_package epub EPub)
+ $(cmake_use_find_package exif LibExiv2)
+ $(cmake_use_find_package ffmpeg FFmpeg)
+ $(cmake_use_find_package mobi QMobipocket6)
+ $(cmake_use_find_package pdf Poppler)
+ $(cmake_use_find_package taglib Taglib)
+ )
+
+ ecm_src_configure
+}
+
+pkg_postinst() {
+ if [[ -z "${REPLACING_VERSIONS}" ]]; then
+ optfeature "Microsoft Word/Powerpoint file indexing" app-text/catdoc
+ optfeature "Microsoft Excel file indexing" dev-libs/libxls
+ fi
+ ecm_pkg_postinst
+}