app-crypt/nitrokey-app: Fix resources build.
authorLuigi 'Comio' Mantellini <luigi.mantellini@gmail.com>
Mon, 16 Apr 2018 08:22:33 +0000 (10:22 +0200)
committerDavid Seifert <soap@gentoo.org>
Sat, 26 May 2018 09:45:38 +0000 (11:45 +0200)
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
app-crypt/nitrokey-app/nitrokey-app-9999.ebuild

index 045fd86b4d05a199ca9b1323b177915453bde5a2..1bd4aaad0693bef14533da0742512891838d7d51 100644 (file)
@@ -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
 }
index 045fd86b4d05a199ca9b1323b177915453bde5a2..f1ed0d3dfac30f5daba1d031456bbe2a0428fdca 100644 (file)
@@ -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
 }