1 |
commit: 4e842bd4b634b3dafd92607e2ef5376eb222a250 |
2 |
Author: David Heidelberg <david <AT> ixit <DOT> cz> |
3 |
AuthorDate: Thu Apr 23 22:47:09 2020 +0000 |
4 |
Commit: David Heidelberg <david <AT> ixit <DOT> cz> |
5 |
CommitDate: Thu Apr 23 22:47:09 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=4e842bd4 |
7 |
|
8 |
app-misc/mobile-datovka: New package. |
9 |
|
10 |
Package-Manager: Portage-2.3.99, Repoman-2.3.22 |
11 |
Signed-off-by: David Heidelberg <david <AT> ixit.cz> |
12 |
|
13 |
app-misc/mobile-datovka/Manifest | 1 + |
14 |
...1.9.1-0002-add-metainfo-for-distributions.patch | 83 ++++++++++++++++++++++ |
15 |
...9.1-0003-Support-Linux-phones-and-desktop.patch | 68 ++++++++++++++++++ |
16 |
.../files/mobile-datovka-1.9.1-quickdirtyfix.patch | 48 +++++++++++++ |
17 |
app-misc/mobile-datovka/metadata.xml | 13 ++++ |
18 |
.../mobile-datovka/mobile-datovka-1.9.1.ebuild | 54 ++++++++++++++ |
19 |
6 files changed, 267 insertions(+) |
20 |
|
21 |
diff --git a/app-misc/mobile-datovka/Manifest b/app-misc/mobile-datovka/Manifest |
22 |
new file mode 100644 |
23 |
index 0000000..8226258 |
24 |
--- /dev/null |
25 |
+++ b/app-misc/mobile-datovka/Manifest |
26 |
@@ -0,0 +1 @@ |
27 |
+DIST mobile-datovka-v1.9.1.tar.gz 1923725 BLAKE2B 665527c5071373cf02adb971e5250c80e31a949f2aba39666b47e9a19c086d737e629c69ad25fd673bead1b22e976d5a5c341a90bfea8c77caa5b358b02dc44a SHA512 e2ea35173e3465401f1b7217b84592731da83d61dfe964db5f7706862fe68bb9e0b783e5d52dece3392351b2793d8b284668108132c6f6d1c66a371221d6fde3 |
28 |
|
29 |
diff --git a/app-misc/mobile-datovka/files/mobile-datovka-1.9.1-0002-add-metainfo-for-distributions.patch b/app-misc/mobile-datovka/files/mobile-datovka-1.9.1-0002-add-metainfo-for-distributions.patch |
30 |
new file mode 100644 |
31 |
index 0000000..112a3d5 |
32 |
--- /dev/null |
33 |
+++ b/app-misc/mobile-datovka/files/mobile-datovka-1.9.1-0002-add-metainfo-for-distributions.patch |
34 |
@@ -0,0 +1,83 @@ |
35 |
+From a8c24f3699563a5ccc6dd6c49b16444af51b50a8 Mon Sep 17 00:00:00 2001 |
36 |
+From: David Heidelberg <david@××××.cz> |
37 |
+Date: Fri, 24 Apr 2020 00:23:43 +0200 |
38 |
+Subject: [PATCH 2/3] add metainfo for distributions |
39 |
+ |
40 |
+Nice to have for mobile Linux (Librem 5 & PinePhone) |
41 |
+ |
42 |
+Signed-off-by: David Heidelberg <david@××××.cz> |
43 |
+--- |
44 |
+ linux/nic.cz.mobile-datovka.metainfo.xml | 61 ++++++++++++++++++++++++ |
45 |
+ 1 file changed, 61 insertions(+) |
46 |
+ create mode 100644 linux/nic.cz.mobile-datovka.metainfo.xml |
47 |
+ |
48 |
+diff --git a/linux/nic.cz.mobile-datovka.metainfo.xml b/linux/nic.cz.mobile-datovka.metainfo.xml |
49 |
+new file mode 100644 |
50 |
+index 0000000..c5d3cc6 |
51 |
+--- /dev/null |
52 |
++++ b/linux/nic.cz.mobile-datovka.metainfo.xml |
53 |
+@@ -0,0 +1,61 @@ |
54 |
++<?xml version="1.0" encoding="utf-8"?> |
55 |
++<!-- Copyright 2014-2020 CZ.NIC Labs --> |
56 |
++<application> |
57 |
++ <id type="desktop">nic.cz.mobile=datovka.desktop</id> |
58 |
++ <metadata_license>CC0-1.0</metadata_license> |
59 |
++ <project_license>GPL-3.0-or-later</project_license> |
60 |
++ |
61 |
++ <name>Mobile Datovka</name> |
62 |
++ <name xml:lang="cs">Mobilní Datovka</name> |
63 |
++ |
64 |
++ <summary>A free graphical user interface for data boxes</summary> |
65 |
++ <summary xml:lang="cs">Svobodné uživatelské rozhraní pro datové schránky</summary> |
66 |
++ |
67 |
++ <description> |
68 |
++ <p> |
69 |
++ Datovka is a multiplatform desktop application for accessing data boxes. |
70 |
++ A data box is an electronic storage site in Czech Republic. It is intended |
71 |
++ for delivery of official documents and for communication with public |
72 |
++ authority bodies. |
73 |
++ </p> |
74 |
++ <p xml:lang="cs"> |
75 |
++ Datovka je multiplatformní desktopová aplikace pro přístup k datovým schránkám. |
76 |
++ Datová schránka v České republice je elektronické úložiště, které je určeno |
77 |
++ k doručování dokumentů a pro komunikaci s orgány veřejné moci. |
78 |
++ </p> |
79 |
++ |
80 |
++ <p> |
81 |
++ Datovka allows receiving, sending, and checking the integrity of data messages, |
82 |
++ exporting proofs of delivery or full messages, exporting complete |
83 |
++ correspondence for a defined period, etc. |
84 |
++ </p> |
85 |
++ <p xml:lang="cs"> |
86 |
++ Z Datovky je možné číst zprávy, odesílat zprávy, kontrolovat integritu datových zpráv, |
87 |
++ exportovat doručenky i celé zprávy, exportovat přehled korespondence za určité |
88 |
++ časové období, apod. |
89 |
++ </p> |
90 |
++ |
91 |
++ <p> |
92 |
++ The user interface resembles the interface of common e-mail clients. |
93 |
++ </p> |
94 |
++ <p xml:lang="cs"> |
95 |
++ Uživatelské rozhraní aplikace se podobá rozhraní běžných poštovních klientů. |
96 |
++ </p> |
97 |
++ </description> |
98 |
++ |
99 |
++ <kudos> |
100 |
++ <kudo>HiDpiIcon</kudo> |
101 |
++ <kudo>ModernToolkit</kudo> |
102 |
++ </kudos> |
103 |
++ |
104 |
++ <screenshots> |
105 |
++ <screenshot type="default"> |
106 |
++ <image>https://www.datovka.cz/images/mobile-main.png</image> |
107 |
++ <caption>Main window of the application</caption> |
108 |
++ <caption xml:lang="cs">Hlavní okno aplikace</caption> |
109 |
++ </screenshot> |
110 |
++ </screenshots> |
111 |
++ |
112 |
++ <updatecontact>datove-schranky@××××××××.cz</updatecontact> |
113 |
++ <url type="homepage">https://www.datovka.cz/cs/pages/mobilni-datovka.html</url> |
114 |
++</application> |
115 |
+-- |
116 |
+2.26.2 |
117 |
+ |
118 |
|
119 |
diff --git a/app-misc/mobile-datovka/files/mobile-datovka-1.9.1-0003-Support-Linux-phones-and-desktop.patch b/app-misc/mobile-datovka/files/mobile-datovka-1.9.1-0003-Support-Linux-phones-and-desktop.patch |
120 |
new file mode 100644 |
121 |
index 0000000..54e372d |
122 |
--- /dev/null |
123 |
+++ b/app-misc/mobile-datovka/files/mobile-datovka-1.9.1-0003-Support-Linux-phones-and-desktop.patch |
124 |
@@ -0,0 +1,68 @@ |
125 |
+From 795e069727216e95708453b03b80ca99a98ea78f Mon Sep 17 00:00:00 2001 |
126 |
+From: David Heidelberg <david@××××.cz> |
127 |
+Date: Fri, 24 Apr 2020 00:29:20 +0200 |
128 |
+Subject: [PATCH 3/3] Support Linux (phones and desktop) |
129 |
+ |
130 |
+Signed-off-by: David Heidelberg <david@××××.cz> |
131 |
+--- |
132 |
+ linux/nic.cz.mobile-datovka.desktop | 10 ++++++++++ |
133 |
+ mobile-datovka.pro | 26 +++++++++++++++++++++++++- |
134 |
+ 2 files changed, 35 insertions(+), 1 deletion(-) |
135 |
+ create mode 100644 linux/nic.cz.mobile-datovka.desktop |
136 |
+ |
137 |
+diff --git a/linux/nic.cz.mobile-datovka.desktop b/linux/nic.cz.mobile-datovka.desktop |
138 |
+new file mode 100644 |
139 |
+index 0000000..6089407 |
140 |
+--- /dev/null |
141 |
++++ b/linux/nic.cz.mobile-datovka.desktop |
142 |
+@@ -0,0 +1,10 @@ |
143 |
++[Desktop Entry] |
144 |
++Type=Application |
145 |
++Version=1.0 |
146 |
++Name=Mobile Datovka |
147 |
++GenericName=Datovka |
148 |
++Comment=Mobile client for ISDS |
149 |
++Exec=mobile-datovka |
150 |
++Icon=datovka |
151 |
++Terminal=false |
152 |
++Categories=Office;Email;Qt; |
153 |
+diff --git a/mobile-datovka.pro b/mobile-datovka.pro |
154 |
+index 635279f..1ff6f7d 100644 |
155 |
+--- a/mobile-datovka.pro |
156 |
++++ b/mobile-datovka.pro |
157 |
+@@ -380,7 +380,31 @@ RESOURCES += \ |
158 |
+ |
159 |
+ # Linux target. |
160 |
+ linux { |
161 |
+- ICON = res/datovka.png |
162 |
++ isEmpty(PREFIX) { |
163 |
++ PREFIX = "/usr/local" |
164 |
++ } |
165 |
++ |
166 |
++ BINDIR="$${PREFIX}/bin" |
167 |
++ DATADIR="$${PREFIX}/share" |
168 |
++ |
169 |
++ LOCALE_INST_DIR = "$${DATADIR}/$${APP_NAME}/localisations" |
170 |
++ |
171 |
++ target.path = "$${BINDIR}" |
172 |
++ |
173 |
++ desktop.path = "$${DATADIR}/applications" |
174 |
++ desktop.files += "linux/nic.cz.mobile-datovka.desktop" |
175 |
++ |
176 |
++ metainfo.path = "$${DATADIR}/metainfo" |
177 |
++ metainfo.files += "linux/nic.cz.mobile-datovka.metadata.xml" |
178 |
++ |
179 |
++ icon64.path = "$${DATADIR}/icons/hicolor/64x64/apps" |
180 |
++ icon64.files += "res/datovka.png" |
181 |
++ |
182 |
++ localisation.path = "$${LOCALE_INST_DIR}" |
183 |
++ localisation.files += res/locale/datovka_cs.qm \ |
184 |
++ res/locale/datovka_en.qm |
185 |
++ |
186 |
++ INSTALLS += target desktop metainfo icon64 |
187 |
+ } |
188 |
+ |
189 |
+ # iOS target. |
190 |
+-- |
191 |
+2.26.2 |
192 |
+ |
193 |
|
194 |
diff --git a/app-misc/mobile-datovka/files/mobile-datovka-1.9.1-quickdirtyfix.patch b/app-misc/mobile-datovka/files/mobile-datovka-1.9.1-quickdirtyfix.patch |
195 |
new file mode 100644 |
196 |
index 0000000..6f8c432 |
197 |
--- /dev/null |
198 |
+++ b/app-misc/mobile-datovka/files/mobile-datovka-1.9.1-quickdirtyfix.patch |
199 |
@@ -0,0 +1,48 @@ |
200 |
+From a8613894370b5ff66731896b293e024151dba66c Mon Sep 17 00:00:00 2001 |
201 |
+From: David Heidelberg <david@××××.cz> |
202 |
+Date: Thu, 23 Apr 2020 21:53:14 +0200 |
203 |
+Subject: [PATCH 1/3] Compile under Linux. |
204 |
+ |
205 |
+Signed-off-by: David Heidelberg <david@××××.cz> |
206 |
+--- |
207 |
+ mobile-datovka.pro | 15 ++++++++------- |
208 |
+ 1 file changed, 8 insertions(+), 7 deletions(-) |
209 |
+ |
210 |
+diff --git a/mobile-datovka.pro b/mobile-datovka.pro |
211 |
+index 8cef44c..635279f 100644 |
212 |
+--- a/mobile-datovka.pro |
213 |
++++ b/mobile-datovka.pro |
214 |
+@@ -64,13 +64,13 @@ command = $$LRELEASE mobile-datovka.pro |
215 |
+ system($$command)|error("Failed to run: $$command") |
216 |
+ |
217 |
+ # Copy translation files at qmake invocation. |
218 |
+-message(Copying Qt translation from $$system_path($$[QT_INSTALL_DATA]).) |
219 |
+-system($$QMAKE_COPY $$system_path($$[QT_INSTALL_DATA]/translations/qtbase_cs.qm) $$system_path(res/locale/qtbase_cs.qm)) |
220 |
+-system($$QMAKE_COPY $$system_path($$[QT_INSTALL_DATA]/translations/qtbase_en.qm) $$system_path(res/locale/qtbase_en.qm)) |
221 |
++#message(Copying Qt translation from $$system_path($$[QT_INSTALL_DATA]).) |
222 |
++#system($$QMAKE_COPY $$system_path($$[QT_INSTALL_DATA]/translations/qtbase_cs.qm) $$system_path(res/locale/qtbase_cs.qm)) |
223 |
++#system($$QMAKE_COPY $$system_path($$[QT_INSTALL_DATA]/translations/qtbase_en.qm) $$system_path(res/locale/qtbase_en.qm)) |
224 |
+ |
225 |
+ TRANSLATIONS_FILES += \ |
226 |
+- res/locale/qtbase_cs.qm \ |
227 |
+- res/locale/qtbase_en.qm \ |
228 |
++# res/locale/qtbase_cs.qm \ |
229 |
++# res/locale/qtbase_en.qm \ |
230 |
+ res/locale/datovka_cs.qm \ |
231 |
+ res/locale/datovka_en.qm |
232 |
+ |
233 |
+@@ -374,8 +374,9 @@ HEADERS += \ |
234 |
+ src/zfo.h |
235 |
+ |
236 |
+ RESOURCES += \ |
237 |
+- res/qml.qrc \ |
238 |
+- res/translations.qrc |
239 |
++ res/qml.qrc |
240 |
++# res/qml.qrc \ |
241 |
++# res/translations.qrc |
242 |
+ |
243 |
+ # Linux target. |
244 |
+ linux { |
245 |
+-- |
246 |
+2.26.2 |
247 |
+ |
248 |
|
249 |
diff --git a/app-misc/mobile-datovka/metadata.xml b/app-misc/mobile-datovka/metadata.xml |
250 |
new file mode 100644 |
251 |
index 0000000..9bbe397 |
252 |
--- /dev/null |
253 |
+++ b/app-misc/mobile-datovka/metadata.xml |
254 |
@@ -0,0 +1,13 @@ |
255 |
+<?xml version="1.0" encoding="UTF-8"?> |
256 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
257 |
+<pkgmetadata> |
258 |
+ <maintainer type="person"> |
259 |
+ <email>david@××××.cz</email> |
260 |
+ <name>David Heidelberg</name> |
261 |
+ </maintainer> |
262 |
+ <longdescription> |
263 |
+ A GUI for accessing ISDS (Informační systém datových schránek |
264 |
+ / Data Box Information System) SOAP services as defined in Czech ISDS Act |
265 |
+ (300/2008 Coll.) and implied documents. |
266 |
+ </longdescription> |
267 |
+</pkgmetadata> |
268 |
|
269 |
diff --git a/app-misc/mobile-datovka/mobile-datovka-1.9.1.ebuild b/app-misc/mobile-datovka/mobile-datovka-1.9.1.ebuild |
270 |
new file mode 100644 |
271 |
index 0000000..fd39385 |
272 |
--- /dev/null |
273 |
+++ b/app-misc/mobile-datovka/mobile-datovka-1.9.1.ebuild |
274 |
@@ -0,0 +1,54 @@ |
275 |
+# Copyright 1999-2020 Gentoo Authors |
276 |
+# Distributed under the terms of the GNU General Public License v2 |
277 |
+ |
278 |
+EAPI=7 |
279 |
+ |
280 |
+inherit qmake-utils xdg |
281 |
+ |
282 |
+DESCRIPTION="Mobile optimized GUI to access the Czech data box e-government system" |
283 |
+HOMEPAGE="https://www.datovka.cz/" |
284 |
+SRC_URI="https://gitlab.labs.nic.cz/datovka/${PN}/-/archive/v${PV}/${PN}-v${PV}.tar.gz" |
285 |
+LICENSE="GPL-3" |
286 |
+SLOT="0" |
287 |
+KEYWORDS="~amd64 ~arm ~arm64 ~x86" |
288 |
+IUSE="" |
289 |
+ |
290 |
+# minimum Qt version required |
291 |
+QT_PV="5.13.1:5" |
292 |
+ |
293 |
+RDEPEND=" |
294 |
+ >=dev-libs/openssl-1.1.1:0= |
295 |
+ >=dev-qt/qtcore-${QT_PV} |
296 |
+ >=dev-qt/qtgui-${QT_PV} |
297 |
+ >=dev-qt/qtnetwork-${QT_PV} |
298 |
+ >=dev-qt/qtprintsupport-${QT_PV} |
299 |
+ >=dev-qt/qtsql-${QT_PV}[sqlite] |
300 |
+ >=dev-qt/qtsvg-${QT_PV} |
301 |
+ >=dev-qt/qtwidgets-${QT_PV} |
302 |
+ >=dev-qt/qtquickcontrols-${QT_PV} |
303 |
+ >=dev-qt/qtquickcontrols2-${QT_PV} |
304 |
+" |
305 |
+DEPEND=" |
306 |
+ ${RDEPEND} |
307 |
+ >=dev-qt/linguist-tools-${QT_PV} |
308 |
+ virtual/pkgconfig |
309 |
+" |
310 |
+ |
311 |
+S="${WORKDIR}/${PN}-v${PV}" |
312 |
+ |
313 |
+PATCHES=( |
314 |
+ "${FILESDIR}/${PN}-1.9.1-quickdirtyfix.patch" |
315 |
+ "${FILESDIR}/${P}-0001-add-metainfo-for-distributions.patch" |
316 |
+ "${FILESDIR}/${P}-0002-support-Linux-phones-and-desktop.patch" |
317 |
+ |
318 |
+) |
319 |
+ |
320 |
+src_configure() { |
321 |
+ lrelease ${PN}.pro || die |
322 |
+ eqmake5 PREFIX="/usr" TEXT_FILES_INST_DIR="/usr/share/${PN}/" |
323 |
+} |
324 |
+ |
325 |
+src_install() { |
326 |
+ emake install INSTALL_ROOT="${ED}" |
327 |
+ einstalldocs |
328 |
+} |