summaryrefslogtreecommitdiff
path: root/misc/libreoffice4-bin
diff options
context:
space:
mode:
authoryouri <youri>2016-03-03 22:05:42 +0000
committeryouri <youri>2016-03-03 22:05:42 +0000
commitd665aa34faf9b4da72a2aaa275326641e71b98b2 (patch)
treee48ed44386bd8be5839cba347b726a9e96bd6ba9 /misc/libreoffice4-bin
parent13138abb0c7a3454c305c79733af3aa9f1144670 (diff)
downloadpkgsrc-d665aa34faf9b4da72a2aaa275326641e71b98b2.tar.gz
Add .desktop files so that user can access applications from easily.
Diffstat (limited to 'misc/libreoffice4-bin')
-rw-r--r--misc/libreoffice4-bin/Makefile5
-rw-r--r--misc/libreoffice4-bin/PLIST.proglinks8
-rw-r--r--misc/libreoffice4-bin/files/base.desktop39
-rw-r--r--misc/libreoffice4-bin/files/calc.desktop39
-rw-r--r--misc/libreoffice4-bin/files/draw.desktop39
-rw-r--r--misc/libreoffice4-bin/files/impress.desktop39
-rw-r--r--misc/libreoffice4-bin/files/math.desktop40
-rw-r--r--misc/libreoffice4-bin/files/writer.desktop39
8 files changed, 245 insertions, 3 deletions
diff --git a/misc/libreoffice4-bin/Makefile b/misc/libreoffice4-bin/Makefile
index 17ce70162ca..5355c591e41 100644
--- a/misc/libreoffice4-bin/Makefile
+++ b/misc/libreoffice4-bin/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.15 2016/01/08 23:57:17 ryoon Exp $
+# $NetBSD: Makefile,v 1.16 2016/03/03 22:05:42 youri Exp $
DISTNAME= libreoffice4-bin # overridden below
PKGNAME= libreoffice4-bin-${OO_RELEASE}
@@ -65,7 +65,7 @@ MASTER_SITES= http://download.documentfoundation.org/libreoffice/stable/${OO_RE
.include "options.mk"
-INSTALLATION_DIRS= bin
+INSTALLATION_DIRS= bin share/applications
do-install:
${UNIQ} ${RPM2PKG_PLIST} | \
@@ -76,6 +76,7 @@ do-install:
-e "s|@@OO_BASEVER@@|${OO_BASEVER}|g" \
< ${FILESDIR}/soffice > ${DESTDIR}${PREFIX}/bin/soffice
${CHMOD} +x ${DESTDIR}${PREFIX}/bin/soffice
+ ${INSTALL_DATA} ${FILESDIR}/*.desktop ${DESTDIR}${PREFIX}/share/applications
.for i in sbase scalc sdraw simpress smath swriter
${LN} -sf ../opt/libreoffice${OO_BASEVER}/program/${i} ${DESTDIR}${PREFIX}/bin/${i}
.endfor
diff --git a/misc/libreoffice4-bin/PLIST.proglinks b/misc/libreoffice4-bin/PLIST.proglinks
index 0c9ab7b18c9..5a06d4220b8 100644
--- a/misc/libreoffice4-bin/PLIST.proglinks
+++ b/misc/libreoffice4-bin/PLIST.proglinks
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST.proglinks,v 1.3 2015/12/13 14:27:05 ryoon Exp $
+@comment $NetBSD: PLIST.proglinks,v 1.4 2016/03/03 22:05:42 youri Exp $
bin/sbase
bin/scalc
bin/sdraw
@@ -6,3 +6,9 @@ bin/simpress
bin/smath
bin/soffice
bin/swriter
+share/applications/base.desktop
+share/applications/calc.desktop
+share/applications/draw.desktop
+share/applications/impress.desktop
+share/applications/math.desktop
+share/applications/writer.desktop
diff --git a/misc/libreoffice4-bin/files/base.desktop b/misc/libreoffice4-bin/files/base.desktop
new file mode 100644
index 00000000000..78e144e8774
--- /dev/null
+++ b/misc/libreoffice4-bin/files/base.desktop
@@ -0,0 +1,39 @@
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+# This file incorporates work covered by the following license notice:
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed
+# with this work for additional information regarding copyright
+# ownership. The ASF licenses this file to you under the Apache
+# License, Version 2.0 (the "License"); you may not use this file
+# except in compliance with the License. You may obtain a copy of
+# the License at http://www.apache.org/licenses/LICENSE-2.0 .
+#
+[Desktop Entry]
+Version=1.0
+Terminal=false
+Icon=base
+Type=Application
+Categories=Office;Database;X-Red-Hat-Base;X-MandrivaLinux-MoreApplications-Databases;
+Exec=soffice --base
+MimeType=application/vnd.oasis.opendocument.database;application/vnd.sun.xml.base;
+Name=LibreOffice Base
+GenericName=Database Development
+Comment=Manage databases, create queries and reports to track and manage your information by using Base.
+StartupNotify=true
+X-GIO-NoFuse=true
+Keywords=Data;SQL;
+InitialPreference=5
+StartupWMClass=libreoffice-base
+X-KDE-Protocols=file,http,ftp,webdav
+
+Actions=NewDocument;
+[Desktop Action NewDocument]
+Name=New Database
+Exec=soffice --base
diff --git a/misc/libreoffice4-bin/files/calc.desktop b/misc/libreoffice4-bin/files/calc.desktop
new file mode 100644
index 00000000000..0a667a5afa5
--- /dev/null
+++ b/misc/libreoffice4-bin/files/calc.desktop
@@ -0,0 +1,39 @@
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+# This file incorporates work covered by the following license notice:
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed
+# with this work for additional information regarding copyright
+# ownership. The ASF licenses this file to you under the Apache
+# License, Version 2.0 (the "License"); you may not use this file
+# except in compliance with the License. You may obtain a copy of
+# the License at http://www.apache.org/licenses/LICENSE-2.0 .
+#
+[Desktop Entry]
+Version=1.0
+Terminal=false
+Icon=calc
+Type=Application
+Categories=Office;Spreadsheet;X-Red-Hat-Base;X-MandrivaLinux-Office-Spreadsheets;
+Exec=soffice --calc
+MimeType=application/vnd.oasis.opendocument.spreadsheet;application/vnd.oasis.opendocument.spreadsheet-template;application/vnd.sun.xml.calc;application/vnd.sun.xml.calc.template;application/msexcel;application/vnd.ms-excel;application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;application/vnd.ms-excel.sheet.macroenabled.12;application/vnd.openxmlformats-officedocument.spreadsheetml.template;application/vnd.ms-excel.template.macroenabled.12;application/vnd.ms-excel.sheet.binary.macroenabled.12;text/csv;application/x-dbf;text/spreadsheet;application/csv;application/excel;application/tab-separated-values;application/vnd.lotus-1-2-3;application/vnd.oasis.opendocument.chart;application/vnd.oasis.opendocument.chart-template;application/x-dbase;application/x-dos_ms_excel;application/x-excel;application/x-msexcel;application/x-ms-excel;application/x-quattropro;application/x-123;text/comma-separated-values;text/tab-separated-values;text/x-comma-separated-values;text/x-csv;application/vnd.oasis.opendocument.spreadsheet-flat-xml;application/vnd.ms-works;application/clarisworks;
+Name=LibreOffice Calc
+GenericName=Spreadsheet
+Comment=Perform calculations, analyze information and manage lists in spreadsheets by using Calc.
+StartupNotify=true
+X-GIO-NoFuse=true
+Keywords=Accounting;Stats;OpenDocument Spreadsheet;Chart;Microsoft Excel;Microsoft Works;OpenOffice Calc;ods;xls;xlsx;
+InitialPreference=5
+StartupWMClass=libreoffice-calc
+X-KDE-Protocols=file,http,ftp,webdav
+
+Actions=NewDocument;
+[Desktop Action NewDocument]
+Name=New Spreadsheet
+Exec=soffice --calc
diff --git a/misc/libreoffice4-bin/files/draw.desktop b/misc/libreoffice4-bin/files/draw.desktop
new file mode 100644
index 00000000000..84f19a4e452
--- /dev/null
+++ b/misc/libreoffice4-bin/files/draw.desktop
@@ -0,0 +1,39 @@
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+# This file incorporates work covered by the following license notice:
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed
+# with this work for additional information regarding copyright
+# ownership. The ASF licenses this file to you under the Apache
+# License, Version 2.0 (the "License"); you may not use this file
+# except in compliance with the License. You may obtain a copy of
+# the License at http://www.apache.org/licenses/LICENSE-2.0 .
+#
+[Desktop Entry]
+Version=1.0
+Terminal=false
+Icon=draw
+Type=Application
+Categories=Office;FlowChart;Graphics;2DGraphics;VectorGraphics;X-Red-Hat-Base;X-MandrivaLinux-Office-Drawing;
+Exec=soffice --draw
+MimeType=application/vnd.oasis.opendocument.graphics;application/vnd.oasis.opendocument.graphics-flat-xml;application/vnd.oasis.opendocument.graphics-template;application/vnd.sun.xml.draw;application/vnd.sun.xml.draw.template;application/vnd.visio;application/x-wpg;application/vnd.corel-draw;application/vnd.ms-publisher;image/x-freehand;application/clarisworks;application/x-pagemaker;
+Name=LibreOffice Draw
+GenericName=Drawing Program
+Comment=Create and edit drawings, flow charts and logos by using Draw.
+StartupNotify=true
+X-GIO-NoFuse=true
+Keywords=Vector;Schema;Diagram;Layout;OpenDocument Graphics;Microsoft Publisher;Corel Draw;cdr;odg;svg;
+InitialPreference=5
+StartupWMClass=libreoffice-draw
+X-KDE-Protocols=file,http,ftp,webdav
+
+Actions=NewDocument;
+[Desktop Action NewDocument]
+Name=New Drawing
+Exec=soffice --draw
diff --git a/misc/libreoffice4-bin/files/impress.desktop b/misc/libreoffice4-bin/files/impress.desktop
new file mode 100644
index 00000000000..95eb4469f21
--- /dev/null
+++ b/misc/libreoffice4-bin/files/impress.desktop
@@ -0,0 +1,39 @@
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+# This file incorporates work covered by the following license notice:
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed
+# with this work for additional information regarding copyright
+# ownership. The ASF licenses this file to you under the Apache
+# License, Version 2.0 (the "License"); you may not use this file
+# except in compliance with the License. You may obtain a copy of
+# the License at http://www.apache.org/licenses/LICENSE-2.0 .
+#
+[Desktop Entry]
+Version=1.0
+Terminal=false
+Icon=impress
+Type=Application
+Categories=Office;Presentation;X-Red-Hat-Base;X-MandrivaLinux-Office-Presentations;
+Exec=soffice --impress
+MimeType=application/vnd.oasis.opendocument.presentation;application/vnd.oasis.opendocument.presentation-template;application/vnd.sun.xml.impress;application/vnd.sun.xml.impress.template;application/mspowerpoint;application/vnd.ms-powerpoint;application/vnd.openxmlformats-officedocument.presentationml.presentation;application/vnd.ms-powerpoint.presentation.macroenabled.12;application/vnd.openxmlformats-officedocument.presentationml.template;application/vnd.ms-powerpoint.template.macroenabled.12;application/vnd.openxmlformats-officedocument.presentationml.slide;application/vnd.openxmlformats-officedocument.presentationml.slideshow;application/vnd.ms-powerpoint.slideshow.macroEnabled.12;application/vnd.oasis.opendocument.presentation-flat-xml;application/x-iwork-keynote-sffkey;
+Name=LibreOffice Impress
+GenericName=Presentation
+Comment=Create and edit presentations for slideshows, meeting and Web pages by using Impress.
+StartupNotify=true
+X-GIO-NoFuse=true
+Keywords=Slideshow;Slides;OpenDocument Presentation;Microsoft PowerPoint;Microsoft Works;OpenOffice Impress;odp;ppt;pptx;
+InitialPreference=5
+StartupWMClass=libreoffice-impress
+X-KDE-Protocols=file,http,ftp,webdav
+
+Actions=NewDocument;
+[Desktop Action NewDocument]
+Name=New Presentation
+Exec=soffice --impress
diff --git a/misc/libreoffice4-bin/files/math.desktop b/misc/libreoffice4-bin/files/math.desktop
new file mode 100644
index 00000000000..3430fdc3847
--- /dev/null
+++ b/misc/libreoffice4-bin/files/math.desktop
@@ -0,0 +1,40 @@
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+# This file incorporates work covered by the following license notice:
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed
+# with this work for additional information regarding copyright
+# ownership. The ASF licenses this file to you under the Apache
+# License, Version 2.0 (the "License"); you may not use this file
+# except in compliance with the License. You may obtain a copy of
+# the License at http://www.apache.org/licenses/LICENSE-2.0 .
+#
+[Desktop Entry]
+Version=1.0
+Terminal=false
+NoDisplay=false
+Icon=math
+Type=Application
+Categories=Office;Spreadsheet;Education;Science;Math;X-Red-Hat-Base;X-MandrivaLinux-Office-Other;
+Exec=soffice --math
+MimeType=application/vnd.oasis.opendocument.formula;application/vnd.sun.xml.math;application/vnd.oasis.opendocument.formula-template;text/mathml;application/mathml+xml;
+Name=LibreOffice Math
+GenericName=Formula Editor
+Comment=Create and edit scientific formulas and equations by using Math.
+StartupNotify=true
+X-GIO-NoFuse=true
+Keywords=Equation;OpenDocument Formula;Formula;odf;MathML;
+InitialPreference=5
+StartupWMClass=libreoffice-math
+X-KDE-Protocols=file,http,ftp,webdav
+
+Actions=NewDocument;
+[Desktop Action NewDocument]
+Name=New Formula
+Exec=soffice --math
diff --git a/misc/libreoffice4-bin/files/writer.desktop b/misc/libreoffice4-bin/files/writer.desktop
new file mode 100644
index 00000000000..ca1c2239bc7
--- /dev/null
+++ b/misc/libreoffice4-bin/files/writer.desktop
@@ -0,0 +1,39 @@
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+# This file incorporates work covered by the following license notice:
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed
+# with this work for additional information regarding copyright
+# ownership. The ASF licenses this file to you under the Apache
+# License, Version 2.0 (the "License"); you may not use this file
+# except in compliance with the License. You may obtain a copy of
+# the License at http://www.apache.org/licenses/LICENSE-2.0 .
+#
+[Desktop Entry]
+Version=1.0
+Terminal=false
+Icon=writer
+Type=Application
+Categories=Office;WordProcessor;X-Red-Hat-Base;X-MandrivaLinux-Office-Wordprocessors;
+Exec=soffice --writer
+MimeType=application/vnd.oasis.opendocument.text;application/vnd.oasis.opendocument.text-template;application/vnd.oasis.opendocument.text-web;application/vnd.oasis.opendocument.text-master;application/vnd.oasis.opendocument.text-master-template;application/vnd.sun.xml.writer;application/vnd.sun.xml.writer.template;application/vnd.sun.xml.writer.global;application/msword;application/vnd.ms-word;application/x-doc;application/x-hwp;application/rtf;text/rtf;application/vnd.wordperfect;application/wordperfect;application/vnd.lotus-wordpro;application/vnd.openxmlformats-officedocument.wordprocessingml.document;application/vnd.ms-word.document.macroenabled.12;application/vnd.openxmlformats-officedocument.wordprocessingml.template;application/vnd.ms-word.template.macroenabled.12;application/vnd.ms-works;application/vnd.stardivision.writer-global;application/x-extension-txt;application/x-t602;text/plain;application/vnd.oasis.opendocument.text-flat-xml;application/x-fictionbook+xml;application/macwriteii;application/x-aportisdoc;application/prs.plucker;application/vnd.palm;application/clarisworks;application/x-sony-bbeb;application/x-abiword;
+Name=LibreOffice Writer
+GenericName=Word Processor
+Comment=Create and edit text and graphics in letters, reports, documents and Web pages by using Writer.
+StartupNotify=true
+X-GIO-NoFuse=true
+Keywords=Text;Letter;Fax;Document;OpenDocument Text;Microsoft Word;Microsoft Works;Lotus WordPro;OpenOffice Writer;CV;odt;doc;docx;rtf;
+InitialPreference=5
+StartupWMClass=libreoffice-writer
+X-KDE-Protocols=file,http,ftp,webdav
+
+Actions=NewDocument;
+[Desktop Action NewDocument]
+Name=New Document
+Exec=soffice --writer