commit:     a68cdc0f9131de0c9531c144b76e459e2f5dd301
Author:     David Heidelberg <david <AT> ixit <DOT> cz>
AuthorDate: Sat Apr 25 08:12:10 2020 +0000
Commit:     David Heidelberg <david <AT> ixit <DOT> cz>
CommitDate: Sat Apr 25 08:12:10 2020 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=a68cdc0f

app-misc/mobile-datovka: add dependency on dev-qt/qttranslations

Previously used dirty fix can be dropped now!

Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: David Heidelberg <david <AT> ixit.cz>

 .../files/mobile-datovka-1.9.1-quickdirtyfix.patch | 48 ----------------------
 .../mobile-datovka/mobile-datovka-1.9.1.ebuild     |  3 +-
 2 files changed, 1 insertion(+), 50 deletions(-)

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
deleted file mode 100644
index 6f8c432..0000000
--- a/app-misc/mobile-datovka/files/mobile-datovka-1.9.1-quickdirtyfix.patch
+++ /dev/null
@@ -1,48 +0,0 @@
-From a8613894370b5ff66731896b293e024151dba66c Mon Sep 17 00:00:00 2001
-From: David Heidelberg <[email protected]>
-Date: Thu, 23 Apr 2020 21:53:14 +0200
-Subject: [PATCH 1/3] Compile under Linux.
-
-Signed-off-by: David Heidelberg <[email protected]>
----
- 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/mobile-datovka-1.9.1.ebuild 
b/app-misc/mobile-datovka/mobile-datovka-1.9.1.ebuild
index 085bad5..1f5e332 100644
--- a/app-misc/mobile-datovka/mobile-datovka-1.9.1.ebuild
+++ b/app-misc/mobile-datovka/mobile-datovka-1.9.1.ebuild
@@ -27,6 +27,7 @@ RDEPEND="
        >=dev-qt/qtwidgets-${QT_PV}
        >=dev-qt/qtquickcontrols-${QT_PV}
        >=dev-qt/qtquickcontrols2-${QT_PV}
+       >=dev-qt/qttranslations-${QT_PV}
 "
 DEPEND="
        ${RDEPEND}
@@ -37,10 +38,8 @@ DEPEND="
 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() {

Reply via email to