commit:     4bdbda7475a375679eeae7074a401f6b4d1e0f95
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Wed Feb  1 02:28:53 2017 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Wed Feb  1 02:28:53 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4bdbda74

app-office/libreoffice: Fix libreoffice-draw.desktop if ! use pdfimport

Gentoo-bug: 605464

Package-Manager: portage-2.3.3

 app-office/libreoffice/libreoffice-5.2.9999.ebuild | 10 +++++++++-
 app-office/libreoffice/libreoffice-5.3.9999.ebuild | 10 +++++++++-
 app-office/libreoffice/libreoffice-9999.ebuild     | 10 +++++++++-
 3 files changed, 27 insertions(+), 3 deletions(-)

diff --git a/app-office/libreoffice/libreoffice-5.2.9999.ebuild 
b/app-office/libreoffice/libreoffice-5.2.9999.ebuild
index 76e383a..d104014 100644
--- a/app-office/libreoffice/libreoffice-5.2.9999.ebuild
+++ b/app-office/libreoffice/libreoffice-5.2.9999.ebuild
@@ -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() {

diff --git a/app-office/libreoffice/libreoffice-5.3.9999.ebuild 
b/app-office/libreoffice/libreoffice-5.3.9999.ebuild
index f1761be..b8cd07d 100644
--- a/app-office/libreoffice/libreoffice-5.3.9999.ebuild
+++ b/app-office/libreoffice/libreoffice-5.3.9999.ebuild
@@ -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() {

diff --git a/app-office/libreoffice/libreoffice-9999.ebuild 
b/app-office/libreoffice/libreoffice-9999.ebuild
index af0a7dc..cc07983 100644
--- a/app-office/libreoffice/libreoffice-9999.ebuild
+++ b/app-office/libreoffice/libreoffice-9999.ebuild
@@ -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() {

Reply via email to