* [gentoo-commits] repo/proj/guru:master commit in: app-misc/mobile-datovka/files/, app-misc/mobile-datovka/
@ 2020-04-24 12:49 Andrew Ammerlaan
0 siblings, 0 replies; only message in thread
From: Andrew Ammerlaan @ 2020-04-24 12:49 UTC (permalink / raw
To: gentoo-commits
commit: 4e842bd4b634b3dafd92607e2ef5376eb222a250
Author: David Heidelberg <david <AT> ixit <DOT> cz>
AuthorDate: Thu Apr 23 22:47:09 2020 +0000
Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
CommitDate: Thu Apr 23 22:47:09 2020 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=4e842bd4
app-misc/mobile-datovka: New package.
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: David Heidelberg <david <AT> ixit.cz>
app-misc/mobile-datovka/Manifest | 1 +
...1.9.1-0002-add-metainfo-for-distributions.patch | 83 ++++++++++++++++++++++
...9.1-0003-Support-Linux-phones-and-desktop.patch | 68 ++++++++++++++++++
.../files/mobile-datovka-1.9.1-quickdirtyfix.patch | 48 +++++++++++++
app-misc/mobile-datovka/metadata.xml | 13 ++++
.../mobile-datovka/mobile-datovka-1.9.1.ebuild | 54 ++++++++++++++
6 files changed, 267 insertions(+)
diff --git a/app-misc/mobile-datovka/Manifest b/app-misc/mobile-datovka/Manifest
new file mode 100644
index 0000000..8226258
--- /dev/null
+++ b/app-misc/mobile-datovka/Manifest
@@ -0,0 +1 @@
+DIST mobile-datovka-v1.9.1.tar.gz 1923725 BLAKE2B 665527c5071373cf02adb971e5250c80e31a949f2aba39666b47e9a19c086d737e629c69ad25fd673bead1b22e976d5a5c341a90bfea8c77caa5b358b02dc44a SHA512 e2ea35173e3465401f1b7217b84592731da83d61dfe964db5f7706862fe68bb9e0b783e5d52dece3392351b2793d8b284668108132c6f6d1c66a371221d6fde3
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
new file mode 100644
index 0000000..112a3d5
--- /dev/null
+++ b/app-misc/mobile-datovka/files/mobile-datovka-1.9.1-0002-add-metainfo-for-distributions.patch
@@ -0,0 +1,83 @@
+From a8c24f3699563a5ccc6dd6c49b16444af51b50a8 Mon Sep 17 00:00:00 2001
+From: David Heidelberg <david@ixit.cz>
+Date: Fri, 24 Apr 2020 00:23:43 +0200
+Subject: [PATCH 2/3] add metainfo for distributions
+
+Nice to have for mobile Linux (Librem 5 & PinePhone)
+
+Signed-off-by: David Heidelberg <david@ixit.cz>
+---
+ linux/nic.cz.mobile-datovka.metainfo.xml | 61 ++++++++++++++++++++++++
+ 1 file changed, 61 insertions(+)
+ create mode 100644 linux/nic.cz.mobile-datovka.metainfo.xml
+
+diff --git a/linux/nic.cz.mobile-datovka.metainfo.xml b/linux/nic.cz.mobile-datovka.metainfo.xml
+new file mode 100644
+index 0000000..c5d3cc6
+--- /dev/null
++++ b/linux/nic.cz.mobile-datovka.metainfo.xml
+@@ -0,0 +1,61 @@
++<?xml version="1.0" encoding="utf-8"?>
++<!-- Copyright 2014-2020 CZ.NIC Labs -->
++<application>
++ <id type="desktop">nic.cz.mobile=datovka.desktop</id>
++ <metadata_license>CC0-1.0</metadata_license>
++ <project_license>GPL-3.0-or-later</project_license>
++
++ <name>Mobile Datovka</name>
++ <name xml:lang="cs">Mobilní Datovka</name>
++
++ <summary>A free graphical user interface for data boxes</summary>
++ <summary xml:lang="cs">Svobodné uživatelské rozhraní pro datové schránky</summary>
++
++ <description>
++ <p>
++ Datovka is a multiplatform desktop application for accessing data boxes.
++ A data box is an electronic storage site in Czech Republic. It is intended
++ for delivery of official documents and for communication with public
++ authority bodies.
++ </p>
++ <p xml:lang="cs">
++ Datovka je multiplatformní desktopová aplikace pro přístup k datovým schránkám.
++ Datová schránka v České republice je elektronické úložiště, které je určeno
++ k doručování dokumentů a pro komunikaci s orgány veřejné moci.
++ </p>
++
++ <p>
++ Datovka allows receiving, sending, and checking the integrity of data messages,
++ exporting proofs of delivery or full messages, exporting complete
++ correspondence for a defined period, etc.
++ </p>
++ <p xml:lang="cs">
++ Z Datovky je možné číst zprávy, odesílat zprávy, kontrolovat integritu datových zpráv,
++ exportovat doručenky i celé zprávy, exportovat přehled korespondence za určité
++ časové období, apod.
++ </p>
++
++ <p>
++ The user interface resembles the interface of common e-mail clients.
++ </p>
++ <p xml:lang="cs">
++ Uživatelské rozhraní aplikace se podobá rozhraní běžných poštovních klientů.
++ </p>
++ </description>
++
++ <kudos>
++ <kudo>HiDpiIcon</kudo>
++ <kudo>ModernToolkit</kudo>
++ </kudos>
++
++ <screenshots>
++ <screenshot type="default">
++ <image>https://www.datovka.cz/images/mobile-main.png</image>
++ <caption>Main window of the application</caption>
++ <caption xml:lang="cs">Hlavní okno aplikace</caption>
++ </screenshot>
++ </screenshots>
++
++ <updatecontact>datove-schranky@labs.nic.cz</updatecontact>
++ <url type="homepage">https://www.datovka.cz/cs/pages/mobilni-datovka.html</url>
++</application>
+--
+2.26.2
+
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
new file mode 100644
index 0000000..54e372d
--- /dev/null
+++ b/app-misc/mobile-datovka/files/mobile-datovka-1.9.1-0003-Support-Linux-phones-and-desktop.patch
@@ -0,0 +1,68 @@
+From 795e069727216e95708453b03b80ca99a98ea78f Mon Sep 17 00:00:00 2001
+From: David Heidelberg <david@ixit.cz>
+Date: Fri, 24 Apr 2020 00:29:20 +0200
+Subject: [PATCH 3/3] Support Linux (phones and desktop)
+
+Signed-off-by: David Heidelberg <david@ixit.cz>
+---
+ linux/nic.cz.mobile-datovka.desktop | 10 ++++++++++
+ mobile-datovka.pro | 26 +++++++++++++++++++++++++-
+ 2 files changed, 35 insertions(+), 1 deletion(-)
+ create mode 100644 linux/nic.cz.mobile-datovka.desktop
+
+diff --git a/linux/nic.cz.mobile-datovka.desktop b/linux/nic.cz.mobile-datovka.desktop
+new file mode 100644
+index 0000000..6089407
+--- /dev/null
++++ b/linux/nic.cz.mobile-datovka.desktop
+@@ -0,0 +1,10 @@
++[Desktop Entry]
++Type=Application
++Version=1.0
++Name=Mobile Datovka
++GenericName=Datovka
++Comment=Mobile client for ISDS
++Exec=mobile-datovka
++Icon=datovka
++Terminal=false
++Categories=Office;Email;Qt;
+diff --git a/mobile-datovka.pro b/mobile-datovka.pro
+index 635279f..1ff6f7d 100644
+--- a/mobile-datovka.pro
++++ b/mobile-datovka.pro
+@@ -380,7 +380,31 @@ RESOURCES += \
+
+ # Linux target.
+ linux {
+- ICON = res/datovka.png
++ isEmpty(PREFIX) {
++ PREFIX = "/usr/local"
++ }
++
++ BINDIR="$${PREFIX}/bin"
++ DATADIR="$${PREFIX}/share"
++
++ LOCALE_INST_DIR = "$${DATADIR}/$${APP_NAME}/localisations"
++
++ target.path = "$${BINDIR}"
++
++ desktop.path = "$${DATADIR}/applications"
++ desktop.files += "linux/nic.cz.mobile-datovka.desktop"
++
++ metainfo.path = "$${DATADIR}/metainfo"
++ metainfo.files += "linux/nic.cz.mobile-datovka.metadata.xml"
++
++ icon64.path = "$${DATADIR}/icons/hicolor/64x64/apps"
++ icon64.files += "res/datovka.png"
++
++ localisation.path = "$${LOCALE_INST_DIR}"
++ localisation.files += res/locale/datovka_cs.qm \
++ res/locale/datovka_en.qm
++
++ INSTALLS += target desktop metainfo icon64
+ }
+
+ # iOS target.
+--
+2.26.2
+
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
new file mode 100644
index 0000000..6f8c432
--- /dev/null
+++ b/app-misc/mobile-datovka/files/mobile-datovka-1.9.1-quickdirtyfix.patch
@@ -0,0 +1,48 @@
+From a8613894370b5ff66731896b293e024151dba66c Mon Sep 17 00:00:00 2001
+From: David Heidelberg <david@ixit.cz>
+Date: Thu, 23 Apr 2020 21:53:14 +0200
+Subject: [PATCH 1/3] Compile under Linux.
+
+Signed-off-by: David Heidelberg <david@ixit.cz>
+---
+ mobile-datovka.pro | 15 ++++++++-------
+ 1 file changed, 8 insertions(+), 7 deletions(-)
+
+diff --git a/mobile-datovka.pro b/mobile-datovka.pro
+index 8cef44c..635279f 100644
+--- a/mobile-datovka.pro
++++ b/mobile-datovka.pro
+@@ -64,13 +64,13 @@ command = $$LRELEASE mobile-datovka.pro
+ system($$command)|error("Failed to run: $$command")
+
+ # Copy translation files at qmake invocation.
+-message(Copying Qt translation from $$system_path($$[QT_INSTALL_DATA]).)
+-system($$QMAKE_COPY $$system_path($$[QT_INSTALL_DATA]/translations/qtbase_cs.qm) $$system_path(res/locale/qtbase_cs.qm))
+-system($$QMAKE_COPY $$system_path($$[QT_INSTALL_DATA]/translations/qtbase_en.qm) $$system_path(res/locale/qtbase_en.qm))
++#message(Copying Qt translation from $$system_path($$[QT_INSTALL_DATA]).)
++#system($$QMAKE_COPY $$system_path($$[QT_INSTALL_DATA]/translations/qtbase_cs.qm) $$system_path(res/locale/qtbase_cs.qm))
++#system($$QMAKE_COPY $$system_path($$[QT_INSTALL_DATA]/translations/qtbase_en.qm) $$system_path(res/locale/qtbase_en.qm))
+
+ TRANSLATIONS_FILES += \
+- res/locale/qtbase_cs.qm \
+- res/locale/qtbase_en.qm \
++# res/locale/qtbase_cs.qm \
++# res/locale/qtbase_en.qm \
+ res/locale/datovka_cs.qm \
+ res/locale/datovka_en.qm
+
+@@ -374,8 +374,9 @@ HEADERS += \
+ src/zfo.h
+
+ RESOURCES += \
+- res/qml.qrc \
+- res/translations.qrc
++ res/qml.qrc
++# res/qml.qrc \
++# res/translations.qrc
+
+ # Linux target.
+ linux {
+--
+2.26.2
+
diff --git a/app-misc/mobile-datovka/metadata.xml b/app-misc/mobile-datovka/metadata.xml
new file mode 100644
index 0000000..9bbe397
--- /dev/null
+++ b/app-misc/mobile-datovka/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>david@ixit.cz</email>
+ <name>David Heidelberg</name>
+ </maintainer>
+ <longdescription>
+ A GUI for accessing ISDS (Informační systém datových schránek
+ / Data Box Information System) SOAP services as defined in Czech ISDS Act
+ (300/2008 Coll.) and implied documents.
+ </longdescription>
+</pkgmetadata>
diff --git a/app-misc/mobile-datovka/mobile-datovka-1.9.1.ebuild b/app-misc/mobile-datovka/mobile-datovka-1.9.1.ebuild
new file mode 100644
index 0000000..fd39385
--- /dev/null
+++ b/app-misc/mobile-datovka/mobile-datovka-1.9.1.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit qmake-utils xdg
+
+DESCRIPTION="Mobile optimized GUI to access the Czech data box e-government system"
+HOMEPAGE="https://www.datovka.cz/"
+SRC_URI="https://gitlab.labs.nic.cz/datovka/${PN}/-/archive/v${PV}/${PN}-v${PV}.tar.gz"
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+IUSE=""
+
+# minimum Qt version required
+QT_PV="5.13.1:5"
+
+RDEPEND="
+ >=dev-libs/openssl-1.1.1:0=
+ >=dev-qt/qtcore-${QT_PV}
+ >=dev-qt/qtgui-${QT_PV}
+ >=dev-qt/qtnetwork-${QT_PV}
+ >=dev-qt/qtprintsupport-${QT_PV}
+ >=dev-qt/qtsql-${QT_PV}[sqlite]
+ >=dev-qt/qtsvg-${QT_PV}
+ >=dev-qt/qtwidgets-${QT_PV}
+ >=dev-qt/qtquickcontrols-${QT_PV}
+ >=dev-qt/qtquickcontrols2-${QT_PV}
+"
+DEPEND="
+ ${RDEPEND}
+ >=dev-qt/linguist-tools-${QT_PV}
+ virtual/pkgconfig
+"
+
+S="${WORKDIR}/${PN}-v${PV}"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-1.9.1-quickdirtyfix.patch"
+ "${FILESDIR}/${P}-0001-add-metainfo-for-distributions.patch"
+ "${FILESDIR}/${P}-0002-support-Linux-phones-and-desktop.patch"
+
+)
+
+src_configure() {
+ lrelease ${PN}.pro || die
+ eqmake5 PREFIX="/usr" TEXT_FILES_INST_DIR="/usr/share/${PN}/"
+}
+
+src_install() {
+ emake install INSTALL_ROOT="${ED}"
+ einstalldocs
+}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-04-24 12:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-24 12:49 [gentoo-commits] repo/proj/guru:master commit in: app-misc/mobile-datovka/files/, app-misc/mobile-datovka/ Andrew Ammerlaan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox