summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2023-11-12 23:46:10 +0100
committerAndreas Sturmlechner <asturm@gentoo.org>2023-11-13 00:15:42 +0100
commit23b749d545ea4d35fe5170f04d9bf99a1ada5f5e (patch)
treeac0a622f25490a25f453672fcd2c0605f8c464af /kde-frameworks
parentkde-apps/print-manager: pkgmove to kde-plasma/print-manager (diff)
downloadgentoo-23b749d545ea4d35fe5170f04d9bf99a1ada5f5e.tar.gz
gentoo-23b749d545ea4d35fe5170f04d9bf99a1ada5f5e.tar.bz2
gentoo-23b749d545ea4d35fe5170f04d9bf99a1ada5f5e.zip
dev-libs/kuserfeedback: pkgmove to kde-frameworks/kuserfeedback
See also: https://mail.kde.org/pipermail/kde-frameworks-devel/2023-November/123319.html Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'kde-frameworks')
-rw-r--r--kde-frameworks/kuserfeedback/Manifest2
-rw-r--r--kde-frameworks/kuserfeedback/files/kuserfeedback-1.2.0-enable_docs.patch48
-rw-r--r--kde-frameworks/kuserfeedback/kuserfeedback-1.2.0.ebuild60
-rw-r--r--kde-frameworks/kuserfeedback/kuserfeedback-1.3.0.ebuild55
-rw-r--r--kde-frameworks/kuserfeedback/metadata.xml12
5 files changed, 177 insertions, 0 deletions
diff --git a/kde-frameworks/kuserfeedback/Manifest b/kde-frameworks/kuserfeedback/Manifest
new file mode 100644
index 000000000000..bec78cefb388
--- /dev/null
+++ b/kde-frameworks/kuserfeedback/Manifest
@@ -0,0 +1,2 @@
+DIST kuserfeedback-1.2.0.tar.xz 206364 BLAKE2B 4ae1683f8a3470ee3db7b3039c27ebd7bc210afd5cd8cdd992a107e541971f4778d7add3fb330befbfd7d62e04d9d2aba8fc22eab5a368f4b92e98f7baa1ec41 SHA512 0152233c741a287b623256cac6d109d405441f17dec68c5782d900ddb9ca5a93614d46ea112e1be9e64913cc3f46d107bec64cad4579b766919439b0ed88a470
+DIST kuserfeedback-1.3.0.tar.xz 230644 BLAKE2B b7305be09a5e62c980273766ec16f624eab4312ababbb8ebb3e24983ffad7ac19445bb848088331c0b4b02da37ee646c9cf91b8965455d018f9b45084c62d17c SHA512 16fc7fa850e7ac1dc772ab25f81f75fe28454680ce9ddf68da0f14c6d5e9b8201f69d168b1ee32bdf9f0ee517b0cac34eb09fd3dbfa697c0a8d3b23c6ac790cb
diff --git a/kde-frameworks/kuserfeedback/files/kuserfeedback-1.2.0-enable_docs.patch b/kde-frameworks/kuserfeedback/files/kuserfeedback-1.2.0-enable_docs.patch
new file mode 100644
index 000000000000..77915f1b4040
--- /dev/null
+++ b/kde-frameworks/kuserfeedback/files/kuserfeedback-1.2.0-enable_docs.patch
@@ -0,0 +1,48 @@
+From f523d1da91dbf944cb753e8aed8ad40367e8826c Mon Sep 17 00:00:00 2001
+From: Andreas Sturmlechner <asturm@gentoo.org>
+Date: Fri, 11 Feb 2022 12:29:50 +0100
+Subject: [PATCH] Hide finding docs dependencies behind ENABLE_DOCS
+
+It was also oddly placed within CMakeLists.txt so moved it below
+major Qt dependency calls (and the actual "# Dependencies" block).
+
+Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
+---
+ CMakeLists.txt | 14 ++++++++------
+ 1 file changed, 8 insertions(+), 6 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 9ea764a..48623bc 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -39,12 +39,6 @@ include(ECMGeneratePriFile)
+ include(FeatureSummary)
+ include(GenerateExportHeader)
+
+-if(QT_MAJOR_VERSION STREQUAL "5")
+- find_package(Qt5 CONFIG OPTIONAL_COMPONENTS DocTools)
+-else()
+- find_package(Qt6 CONFIG OPTIONAL_COMPONENTS ToolsTools)
+-endif()
+-
+ ecm_setup_version(PROJECT
+ VARIABLE_PREFIX KUSERFEEDBACK
+ VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/kuserfeedback_version.h"
+@@ -61,6 +55,14 @@ if (NOT CMAKE_CROSSCOMPILING)
+ find_package(Qt${QT_MAJOR_VERSION} NO_MODULE QUIET OPTIONAL_COMPONENTS Help)
+ endif()
+
++if (ENABLE_DOCS)
++ if(QT_MAJOR_VERSION STREQUAL "5")
++ find_package(Qt5 CONFIG OPTIONAL_COMPONENTS DocTools)
++ else()
++ find_package(Qt6 CONFIG OPTIONAL_COMPONENTS ToolsTools)
++ endif()
++endif()
++
+ set_package_properties(Qt${QT_MAJOR_VERSION} PROPERTIES URL "http://qt-project.org/")
+ set_package_properties(Qt${QT_MAJOR_VERSION}Widgets PROPERTIES TYPE RECOMMENDED PURPOSE "Required for feedback configuration and notification widgets.")
+ set_package_properties(Qt${QT_MAJOR_VERSION}Charts PROPERTIES TYPE RECOMMENDED PURPOSE "Required for UserFeedbackConsole.")
+--
+2.35.1
+
diff --git a/kde-frameworks/kuserfeedback/kuserfeedback-1.2.0.ebuild b/kde-frameworks/kuserfeedback/kuserfeedback-1.2.0.ebuild
new file mode 100644
index 000000000000..81a87132e7b2
--- /dev/null
+++ b/kde-frameworks/kuserfeedback/kuserfeedback-1.2.0.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+ECM_QTHELP="false"
+ECM_TEST="forceoptional"
+KFMIN=5.82.0
+QTMIN=5.15.2
+VIRTUALX_REQUIRED="test"
+inherit ecm kde.org
+
+DESCRIPTION="Framework to collect user feedback for applications via telemetry and surveys"
+SRC_URI="mirror://kde/stable/${PN}/${P}.tar.xz"
+
+LICENSE="MIT"
+SLOT="5"
+KEYWORDS="amd64 ~arm arm64 ~loong ~ppc64 ~riscv x86"
+IUSE="doc"
+
+DEPEND="
+ >=dev-qt/qtcharts-${QTMIN}:5
+ >=dev-qt/qtdeclarative-${QTMIN}:5
+ >=dev-qt/qtgui-${QTMIN}:5
+ >=dev-qt/qtnetwork-${QTMIN}:5
+ >=dev-qt/qtprintsupport-${QTMIN}:5
+ >=dev-qt/qtsql-${QTMIN}:5
+ >=dev-qt/qtsvg-${QTMIN}:5
+ >=dev-qt/qtwidgets-${QTMIN}:5
+ >=kde-frameworks/kconfig-${KFMIN}:5
+ >=kde-frameworks/kcoreaddons-${KFMIN}:5
+ >=kde-frameworks/kdeclarative-${KFMIN}:5
+ >=kde-frameworks/kguiaddons-${KFMIN}:5
+ >=kde-frameworks/kwidgetsaddons-${KFMIN}:5
+"
+RDEPEND="${DEPEND}"
+BDEPEND="
+ sys-devel/bison
+ sys-devel/flex
+ doc? (
+ >=dev-qt/qdoc-${QTMIN}:5
+ >=dev-qt/qthelp-${QTMIN}:5
+ )
+"
+
+# https://invent.kde.org/libraries/kuserfeedback/-/merge_requests/21
+PATCHES=( "${FILESDIR}/${P}-enable_docs.patch" )
+
+src_configure() {
+ local mycmakeargs=(
+ -DQT_MAJOR_VERSION=5
+ # disable server application
+ -DENABLE_PHP=NO
+ -DENABLE_PHP_UNIT=NO
+ -DENABLE_SURVEY_TARGET_EXPRESSIONS=YES
+ -DENABLE_DOCS=$(usex doc)
+ )
+
+ ecm_src_configure
+}
diff --git a/kde-frameworks/kuserfeedback/kuserfeedback-1.3.0.ebuild b/kde-frameworks/kuserfeedback/kuserfeedback-1.3.0.ebuild
new file mode 100644
index 000000000000..bbf797ecaeaf
--- /dev/null
+++ b/kde-frameworks/kuserfeedback/kuserfeedback-1.3.0.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+ECM_QTHELP="false"
+ECM_TEST="forceoptional"
+KFMIN=5.106.0
+QTMIN=5.15.9
+inherit ecm kde.org
+
+DESCRIPTION="Framework to collect user feedback for applications via telemetry and surveys"
+SRC_URI="mirror://kde/stable/${PN}/${P}.tar.xz"
+
+LICENSE="MIT"
+SLOT="5"
+KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86"
+IUSE="doc"
+
+DEPEND="
+ >=dev-qt/qtcharts-${QTMIN}:5
+ >=dev-qt/qtdeclarative-${QTMIN}:5
+ >=dev-qt/qtgui-${QTMIN}:5
+ >=dev-qt/qtnetwork-${QTMIN}:5
+ >=dev-qt/qtprintsupport-${QTMIN}:5
+ >=dev-qt/qtsql-${QTMIN}:5
+ >=dev-qt/qtsvg-${QTMIN}:5
+ >=dev-qt/qtwidgets-${QTMIN}:5
+ >=kde-frameworks/kconfig-${KFMIN}:5
+ >=kde-frameworks/kcoreaddons-${KFMIN}:5
+ >=kde-frameworks/kdeclarative-${KFMIN}:5
+ >=kde-frameworks/kguiaddons-${KFMIN}:5
+ >=kde-frameworks/kwidgetsaddons-${KFMIN}:5
+"
+RDEPEND="${DEPEND}"
+BDEPEND="
+ sys-devel/bison
+ sys-devel/flex
+ doc? (
+ >=dev-qt/qdoc-${QTMIN}:5
+ >=dev-qt/qthelp-${QTMIN}:5
+ )
+"
+
+src_configure() {
+ local mycmakeargs=(
+ # disable server application
+ -DENABLE_PHP=NO
+ -DENABLE_PHP_UNIT=NO
+ -DENABLE_SURVEY_TARGET_EXPRESSIONS=YES
+ -DENABLE_DOCS=$(usex doc)
+ )
+
+ ecm_src_configure
+}
diff --git a/kde-frameworks/kuserfeedback/metadata.xml b/kde-frameworks/kuserfeedback/metadata.xml
new file mode 100644
index 000000000000..8dc2c044b2d8
--- /dev/null
+++ b/kde-frameworks/kuserfeedback/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>kde@gentoo.org</email>
+ <name>Gentoo KDE Project</name>
+ </maintainer>
+ <upstream>
+ <bugs-to>https://bugs.kde.org/</bugs-to>
+ <remote-id type="kde-invent">frameworks/kuserfeedback</remote-id>
+ </upstream>
+</pkgmetadata>