1 |
commit: 9f0ca6c8ab9c49f68567c728ef6fab403d3222c6 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 17 18:22:09 2020 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 17 18:44:02 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=9f0ca6c8 |
7 |
|
8 |
kde-apps/okular: Fix IUSE=mobile->qml, fix RDEPENDs, drop src_prepare |
9 |
|
10 |
Upstream commits: |
11 |
8dfdfa69fcf1c90092b582ab8db1743458d27b34 |
12 |
c1b396af3e9a528288fe3d74bbaa487c4736d05b |
13 |
1fb77446a7378368de5288ca9f57627ae2946d84 |
14 |
a96c082d6969c47b5738eb9b02d064a09232f0f9 |
15 |
fd44517bae86dba4c3cc6d2a8ef278998ee40e5a |
16 |
|
17 |
Package-Manager: Portage-3.0.7, Repoman-3.0.1 |
18 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
19 |
|
20 |
.../files/okular-20.08.2-hide-mobile-app.patch | 27 ++++++++++++++++++++++ |
21 |
kde-apps/okular/metadata.xml | 2 +- |
22 |
kde-apps/okular/okular-20.08.49.9999.ebuild | 18 +++++++-------- |
23 |
kde-apps/okular/okular-9999.ebuild | 19 +++++++-------- |
24 |
4 files changed, 44 insertions(+), 22 deletions(-) |
25 |
|
26 |
diff --git a/kde-apps/okular/files/okular-20.08.2-hide-mobile-app.patch b/kde-apps/okular/files/okular-20.08.2-hide-mobile-app.patch |
27 |
new file mode 100644 |
28 |
index 0000000000..175e5c178c |
29 |
--- /dev/null |
30 |
+++ b/kde-apps/okular/files/okular-20.08.2-hide-mobile-app.patch |
31 |
@@ -0,0 +1,27 @@ |
32 |
+From 6f7f17a24a564ffbf712fd5e0917fcabc8d19229 Mon Sep 17 00:00:00 2001 |
33 |
+From: Andreas Sturmlechner <asturm@g.o> |
34 |
+Date: Thu, 17 Sep 2020 20:36:37 +0200 |
35 |
+Subject: [PATCH] Revert "Don't hide the mobile app" |
36 |
+ |
37 |
+We have no use for this on the desktop, but need it for peruse. |
38 |
+ |
39 |
+This reverts commit 0991819a497594233b7564755bbc189009188bd0. |
40 |
+--- |
41 |
+ mobile/app/package/metadata.desktop | 1 + |
42 |
+ 1 file changed, 1 insertion(+) |
43 |
+ |
44 |
+diff --git a/mobile/app/package/metadata.desktop b/mobile/app/package/metadata.desktop |
45 |
+index f9432748b..0fcf20843 100644 |
46 |
+--- a/mobile/app/package/metadata.desktop |
47 |
++++ b/mobile/app/package/metadata.desktop |
48 |
+@@ -110,6 +110,7 @@ GenericName[zh_TW]=文件檢視器 |
49 |
+ Type=Application |
50 |
+ Exec=okularkirigami |
51 |
+ Icon=okular |
52 |
++NoDisplay=true |
53 |
+ X-KDE-ParentApp= |
54 |
+ X-KDE-PluginInfo-Author=Marco Martin |
55 |
+ X-KDE-PluginInfo-Email=mart@×××.org |
56 |
+-- |
57 |
+2.28.0 |
58 |
+ |
59 |
|
60 |
diff --git a/kde-apps/okular/metadata.xml b/kde-apps/okular/metadata.xml |
61 |
index b36cde3d0a..f07864be71 100644 |
62 |
--- a/kde-apps/okular/metadata.xml |
63 |
+++ b/kde-apps/okular/metadata.xml |
64 |
@@ -11,8 +11,8 @@ |
65 |
<flag name="image-backend">Enable image viewing support</flag> |
66 |
<flag name="markdown">Enable Markdown support via <pkg>app-text/discount</pkg></flag> |
67 |
<flag name="mobi">Enable mobipocket support</flag> |
68 |
- <flag name="mobile">Enable Plasma mobile support</flag> |
69 |
<flag name="plucker">Enable Plucker E-Book for Palm OS devices support</flag> |
70 |
+ <flag name="qml">Install Okular Qml components</flag> |
71 |
<flag name="share">Enable support for a share menu using <pkg>kde-frameworks/purpose</pkg></flag> |
72 |
<flag name="speech">Enable text-to-speech support</flag> |
73 |
</use> |
74 |
|
75 |
diff --git a/kde-apps/okular/okular-20.08.49.9999.ebuild b/kde-apps/okular/okular-20.08.49.9999.ebuild |
76 |
index 2ad5264100..32174dc6b1 100644 |
77 |
--- a/kde-apps/okular/okular-20.08.49.9999.ebuild |
78 |
+++ b/kde-apps/okular/okular-20.08.49.9999.ebuild |
79 |
@@ -17,7 +17,7 @@ HOMEPAGE="https://okular.kde.org https://kde.org/applications/office/org.kde.oku |
80 |
LICENSE="GPL-2" # TODO: CHECK |
81 |
SLOT="5" |
82 |
KEYWORDS="" |
83 |
-IUSE="chm crypt djvu epub +image-backend markdown mobi mobile +pdf plucker +postscript share speech +tiff" |
84 |
+IUSE="chm crypt djvu epub +image-backend markdown mobi +pdf plucker +postscript qml share speech +tiff" |
85 |
|
86 |
DEPEND=" |
87 |
>=dev-qt/qtdbus-${QTMIN}:5 |
88 |
@@ -64,22 +64,20 @@ DEPEND=" |
89 |
" |
90 |
RDEPEND="${DEPEND} |
91 |
image-backend? ( >=kde-frameworks/kimageformats-${KFMIN}:5 ) |
92 |
- mobile? ( |
93 |
- >=dev-qt/qtquickcontrols-${QTMIN}:5 |
94 |
+ qml? ( |
95 |
+ >=dev-qt/qtquickcontrols2-${QTMIN}:5 |
96 |
>=kde-frameworks/kirigami-${KFMIN}:5 |
97 |
) |
98 |
" |
99 |
|
100 |
-PATCHES=( "${FILESDIR}/${PN}-20.07.90-tests.patch" ) # bug 734138 |
101 |
- |
102 |
-src_prepare() { |
103 |
- ecm_src_prepare |
104 |
- use mobile || cmake_comment_add_subdirectory mobile |
105 |
- use test || cmake_comment_add_subdirectory conf/autotests |
106 |
-} |
107 |
+PATCHES=( |
108 |
+ "${FILESDIR}/${PN}-20.07.90-tests.patch" # bug 734138 |
109 |
+ "${FILESDIR}/${PN}-20.08.2-hide-mobile-app.patch" # avoid same-name entry |
110 |
+) |
111 |
|
112 |
src_configure() { |
113 |
local mycmakeargs=( |
114 |
+ -DOKULAR_UI=$(usex qml "both" "desktop") |
115 |
$(cmake_use_find_package chm CHM) |
116 |
$(cmake_use_find_package crypt Qca-qt5) |
117 |
$(cmake_use_find_package djvu DjVuLibre) |
118 |
|
119 |
diff --git a/kde-apps/okular/okular-9999.ebuild b/kde-apps/okular/okular-9999.ebuild |
120 |
index 31ff3ae80a..8fd7c53e3c 100644 |
121 |
--- a/kde-apps/okular/okular-9999.ebuild |
122 |
+++ b/kde-apps/okular/okular-9999.ebuild |
123 |
@@ -17,7 +17,7 @@ HOMEPAGE="https://okular.kde.org https://kde.org/applications/office/org.kde.oku |
124 |
LICENSE="GPL-2" # TODO: CHECK |
125 |
SLOT="5" |
126 |
KEYWORDS="" |
127 |
-IUSE="chm crypt djvu epub +image-backend markdown mobi mobile +pdf plucker +postscript share speech +tiff" |
128 |
+IUSE="chm crypt djvu epub +image-backend markdown mobi +pdf plucker +postscript qml share speech +tiff" |
129 |
|
130 |
DEPEND=" |
131 |
>=dev-qt/qtdbus-${QTMIN}:5 |
132 |
@@ -64,22 +64,20 @@ DEPEND=" |
133 |
" |
134 |
RDEPEND="${DEPEND} |
135 |
image-backend? ( >=kde-frameworks/kimageformats-${KFMIN}:5 ) |
136 |
- mobile? ( |
137 |
- >=dev-qt/qtquickcontrols-${QTMIN}:5 |
138 |
+ qml? ( |
139 |
+ >=dev-qt/qtquickcontrols2-${QTMIN}:5 |
140 |
>=kde-frameworks/kirigami-${KFMIN}:5 |
141 |
) |
142 |
" |
143 |
|
144 |
-PATCHES=( "${FILESDIR}/${PN}-20.07.90-tests.patch" ) # bug 734138 |
145 |
- |
146 |
-src_prepare() { |
147 |
- ecm_src_prepare |
148 |
- use mobile || cmake_comment_add_subdirectory mobile |
149 |
- use test || cmake_comment_add_subdirectory conf/autotests |
150 |
-} |
151 |
+PATCHES=( |
152 |
+ "${FILESDIR}/${PN}-20.07.90-tests.patch" # bug 734138 |
153 |
+ "${FILESDIR}/${PN}-20.08.2-hide-mobile-app.patch" # avoid same-name entry |
154 |
+) |
155 |
|
156 |
src_configure() { |
157 |
local mycmakeargs=( |
158 |
+ -DOKULAR_UI=$(usex qml "both" "desktop") |
159 |
$(cmake_use_find_package chm CHM) |
160 |
$(cmake_use_find_package crypt Qca-qt5) |
161 |
$(cmake_use_find_package djvu DjVuLibre) |
162 |
@@ -94,7 +92,6 @@ src_configure() { |
163 |
$(cmake_use_find_package speech Qt5TextToSpeech) |
164 |
$(cmake_use_find_package tiff TIFF) |
165 |
) |
166 |
- |
167 |
ecm_src_configure |
168 |
} |