app-office/libreoffice: Fix libreoffice-draw.desktop if ! use pdfimport
authorAndreas Sturmlechner <asturm@gentoo.org>
Wed, 1 Feb 2017 02:28:53 +0000 (03:28 +0100)
committerAndreas Sturmlechner <asturm@gentoo.org>
Wed, 1 Feb 2017 02:28:53 +0000 (03:28 +0100)
Gentoo-bug: 605464

Package-Manager: portage-2.3.3

app-office/libreoffice/libreoffice-5.2.9999.ebuild
app-office/libreoffice/libreoffice-5.3.9999.ebuild
app-office/libreoffice/libreoffice-9999.ebuild

index 76e383a195f9a7cc3d02c77624bbc6d3a5a1f4c0..d104014a02ba90e45d5ebcdf1204813a693f44ea 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -357,6 +357,14 @@ src_prepare() {
                # hack...
                mv -v "${WORKDIR}/branding-intro.png" "${S}/icon-themes/galaxy/brand/intro.png" || die
        fi
+
+       # Don't list pdfimport support in desktop when built with none, bug # 605464
+       if ! use pdfimport; then
+               sed -i \
+                       -e ":MimeType: s:application/pdf;::" \
+                       -e ":Keywords: s:pdf;::" \
+                       sysui/desktop/menus/draw.desktop || die
+       fi
 }
 
 src_configure() {
index f1761bea742694e2265959819ef29f33ba0d1350..b8cd07d14d643e159eb8d0fd5c6ccef6b078e8e4 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -356,6 +356,14 @@ src_prepare() {
                # hack...
                mv -v "${WORKDIR}/branding-intro.png" "${S}/icon-themes/galaxy/brand/intro.png" || die
        fi
+
+       # Don't list pdfimport support in desktop when built with none, bug # 605464
+       if ! use pdfimport; then
+               sed -i \
+                       -e ":MimeType: s:application/pdf;::" \
+                       -e ":Keywords: s:pdf;::" \
+                       sysui/desktop/menus/draw.desktop || die
+       fi
 }
 
 src_configure() {
index af0a7dc0e77e97eac3ce0efc50740015f2839eb9..cc07983c87f7c86b3c873febb03483f906892b84 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -356,6 +356,14 @@ src_prepare() {
                # hack...
                mv -v "${WORKDIR}/branding-intro.png" "${S}/icon-themes/galaxy/brand/intro.png" || die
        fi
+
+       # Don't list pdfimport support in desktop when built with none, bug # 605464
+       if ! use pdfimport; then
+               sed -i \
+                       -e ":MimeType: s:application/pdf;::" \
+                       -e ":Keywords: s:pdf;::" \
+                       sysui/desktop/menus/draw.desktop || die
+       fi
 }
 
 src_configure() {