commit:     3f35ce0a62d2bc3686a061c912b275fcddffc48b
Author:     Luigi 'Comio' Mantellini <luigi.mantellini <AT> gmail <DOT> com>
AuthorDate: Mon Apr 16 08:22:33 2018 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sat May 26 09:45:38 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3f35ce0a

app-crypt/nitrokey-app: Fix resources build.

We need to remove qt5_add_resources() call from CMakeLists.txt becuase AUTORCC 
mode is enabled.
Keeping both flags doesn't permit (in some setup) to include the resources into 
the final executable producing the following log messages:

qt.svg: Cannot open file ':/images/new/icon_NK.svg', because: No such file or 
directory
qt.svg: Cannot open file ':/images/new/icon_NK.svg', because: No such file or 
directory
qt.svg: Cannot open file ':/images/new/icon_NK.svg', because: No such file or 
directory
qt.svg: Cannot open file ':/images/new/icon_NK.svg', because: No such file or 
directory
...

Also translations will not work because the translation files are included by 
means resources.

See also https://github.com/Nitrokey/nitrokey-app/pull/346

Closes: https://bugs.gentoo.org/653158
Closes: https://github.com/gentoo/gentoo/pull/8024

 app-crypt/nitrokey-app/nitrokey-app-1.3.ebuild  | 9 +++++++--
 app-crypt/nitrokey-app/nitrokey-app-9999.ebuild | 4 ++--
 2 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/app-crypt/nitrokey-app/nitrokey-app-1.3.ebuild 
b/app-crypt/nitrokey-app/nitrokey-app-1.3.ebuild
index 045fd86b4d0..1bd4aaad069 100644
--- a/app-crypt/nitrokey-app/nitrokey-app-1.3.ebuild
+++ b/app-crypt/nitrokey-app/nitrokey-app-1.3.ebuild
@@ -36,10 +36,15 @@ DEPEND="
        dev-qt/linguist-tools:5
        virtual/pkgconfig"
 
-pkg_postinst(){
+src_prepare() {
+       cmake-utils_src_prepare
+       sed -i '/^qt5_add_resources/d' CMakeLists.txt || die
+}
+
+pkg_postinst() {
        gnome2_icon_cache_update
 }
 
-pkg_postrm(){
+pkg_postrm() {
        gnome2_icon_cache_update
 }

diff --git a/app-crypt/nitrokey-app/nitrokey-app-9999.ebuild 
b/app-crypt/nitrokey-app/nitrokey-app-9999.ebuild
index 045fd86b4d0..f1ed0d3dfac 100644
--- a/app-crypt/nitrokey-app/nitrokey-app-9999.ebuild
+++ b/app-crypt/nitrokey-app/nitrokey-app-9999.ebuild
@@ -36,10 +36,10 @@ DEPEND="
        dev-qt/linguist-tools:5
        virtual/pkgconfig"
 
-pkg_postinst(){
+pkg_postinst() {
        gnome2_icon_cache_update
 }
 
-pkg_postrm(){
+pkg_postrm() {
        gnome2_icon_cache_update
 }

Reply via email to