1 |
commit: ba793210ff7ee6474ac33d823fc195bb6162a942 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jul 16 23:04:40 2021 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jul 17 00:06:53 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ba793210 |
7 |
|
8 |
kde-apps/lokalize: Drop unused DEPEND |
9 |
|
10 |
Upstream commit 07fa320da849f9f283ffd707d684e29f1d807405 |
11 |
|
12 |
Package-Manager: Portage-3.0.20, Repoman-3.0.3 |
13 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
14 |
|
15 |
.../files/lokalize-21.04.3-unused-dep.patch | 25 ++++++++ |
16 |
kde-apps/lokalize/lokalize-21.04.3-r1.ebuild | 73 ++++++++++++++++++++++ |
17 |
2 files changed, 98 insertions(+) |
18 |
|
19 |
diff --git a/kde-apps/lokalize/files/lokalize-21.04.3-unused-dep.patch b/kde-apps/lokalize/files/lokalize-21.04.3-unused-dep.patch |
20 |
new file mode 100644 |
21 |
index 00000000000..efb230d3a65 |
22 |
--- /dev/null |
23 |
+++ b/kde-apps/lokalize/files/lokalize-21.04.3-unused-dep.patch |
24 |
@@ -0,0 +1,25 @@ |
25 |
+From 07fa320da849f9f283ffd707d684e29f1d807405 Mon Sep 17 00:00:00 2001 |
26 |
+From: Alexander Lohnau <alexander.lohnau@×××.de> |
27 |
+Date: Sun, 6 Jun 2021 22:29:57 +0200 |
28 |
+Subject: [PATCH] Remove unneeded Qt5::Script find_package call |
29 |
+ |
30 |
+--- |
31 |
+ CMakeLists.txt | 2 +- |
32 |
+ 1 file changed, 1 insertion(+), 1 deletion(-) |
33 |
+ |
34 |
+diff --git a/CMakeLists.txt b/CMakeLists.txt |
35 |
+index 1e95619..10bfd6d 100644 |
36 |
+--- a/CMakeLists.txt |
37 |
++++ b/CMakeLists.txt |
38 |
+@@ -21,7 +21,7 @@ include(KDECompilerSettings NO_POLICY_SCOPE) |
39 |
+ include(ECMAddAppIcon) |
40 |
+ include(ECMQtDeclareLoggingCategory) |
41 |
+ |
42 |
+-find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED Core DBus Widgets Script Sql) |
43 |
++find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED Core DBus Widgets Sql) |
44 |
+ |
45 |
+ find_package(KF5 ${KF5_MIN_VERSION} REQUIRED I18n KIO XmlGui Notifications Config CoreAddons DocTools Kross Sonnet DBusAddons Crash) |
46 |
+ |
47 |
+-- |
48 |
+GitLab |
49 |
+ |
50 |
|
51 |
diff --git a/kde-apps/lokalize/lokalize-21.04.3-r1.ebuild b/kde-apps/lokalize/lokalize-21.04.3-r1.ebuild |
52 |
new file mode 100644 |
53 |
index 00000000000..a93b5b86e59 |
54 |
--- /dev/null |
55 |
+++ b/kde-apps/lokalize/lokalize-21.04.3-r1.ebuild |
56 |
@@ -0,0 +1,73 @@ |
57 |
+# Copyright 1999-2021 Gentoo Authors |
58 |
+# Distributed under the terms of the GNU General Public License v2 |
59 |
+ |
60 |
+EAPI=7 |
61 |
+ |
62 |
+ECM_HANDBOOK="forceoptional" |
63 |
+PYTHON_COMPAT=( python3_{8,9} ) |
64 |
+KFMIN=5.80.0 |
65 |
+QTMIN=5.15.2 |
66 |
+inherit python-single-r1 ecm kde.org optfeature |
67 |
+ |
68 |
+DESCRIPTION="Localization tool for KDE software and other free and open source software" |
69 |
+HOMEPAGE="https://apps.kde.org/lokalize/ https://l10n.kde.org/tools/" |
70 |
+ |
71 |
+LICENSE="GPL-2" # TODO: CHECK |
72 |
+SLOT="5" |
73 |
+KEYWORDS="~amd64 ~arm64 ~x86" |
74 |
+IUSE="" |
75 |
+ |
76 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
77 |
+ |
78 |
+RESTRICT+=" test" # tests are broken, bug 739734 |
79 |
+ |
80 |
+DEPEND="${PYTHON_DEPS} |
81 |
+ >=app-text/hunspell-1.2.8:= |
82 |
+ >=dev-qt/qtdbus-${QTMIN}:5 |
83 |
+ >=dev-qt/qtgui-${QTMIN}:5 |
84 |
+ >=dev-qt/qtsql-${QTMIN}:5[sqlite] |
85 |
+ >=dev-qt/qtwidgets-${QTMIN}:5 |
86 |
+ >=dev-qt/qtxml-${QTMIN}:5 |
87 |
+ >=kde-frameworks/kcompletion-${KFMIN}:5 |
88 |
+ >=kde-frameworks/kconfig-${KFMIN}:5 |
89 |
+ >=kde-frameworks/kconfigwidgets-${KFMIN}:5 |
90 |
+ >=kde-frameworks/kcoreaddons-${KFMIN}:5 |
91 |
+ >=kde-frameworks/kcrash-${KFMIN}:5 |
92 |
+ >=kde-frameworks/kdbusaddons-${KFMIN}:5 |
93 |
+ >=kde-frameworks/ki18n-${KFMIN}:5 |
94 |
+ >=kde-frameworks/kio-${KFMIN}:5 |
95 |
+ >=kde-frameworks/kitemviews-${KFMIN}:5 |
96 |
+ >=kde-frameworks/knotifications-${KFMIN}:5 |
97 |
+ >=kde-frameworks/kparts-${KFMIN}:5 |
98 |
+ >=kde-frameworks/kross-${KFMIN}:5 |
99 |
+ >=kde-frameworks/ktextwidgets-${KFMIN}:5 |
100 |
+ >=kde-frameworks/kwidgetsaddons-${KFMIN}:5 |
101 |
+ >=kde-frameworks/kxmlgui-${KFMIN}:5 |
102 |
+ >=kde-frameworks/sonnet-${KFMIN}:5 |
103 |
+" |
104 |
+RDEPEND="${DEPEND} |
105 |
+ $(python_gen_cond_dep ' |
106 |
+ dev-python/translate-toolkit[${PYTHON_MULTI_USEDEP}] |
107 |
+ ') |
108 |
+" |
109 |
+ |
110 |
+PATCHES=( "${FILESDIR}/${P}-unused-dep.patch" ) |
111 |
+ |
112 |
+pkg_setup() { |
113 |
+ python-single-r1_pkg_setup |
114 |
+ ecm_pkg_setup |
115 |
+} |
116 |
+ |
117 |
+src_install() { |
118 |
+ ecm_src_install |
119 |
+ rm "${ED}"/usr/share/lokalize/scripts/msgmerge.{py,rc} || die |
120 |
+ python_fix_shebang "${ED}"/usr/share/${PN} |
121 |
+} |
122 |
+ |
123 |
+pkg_postinst() { |
124 |
+ if [[ -z "${REPLACING_VERSIONS}" ]]; then |
125 |
+ optfeature "autofetch kde.org translations in new project wizard" dev-vcs/subversion |
126 |
+ optfeature "spell and grammar checking" app-text/languagetool |
127 |
+ fi |
128 |
+ ecm_pkg_postinst |
129 |
+} |