diff options
author | tsutsui <tsutsui@pkgsrc.org> | 2019-03-23 10:52:09 +0000 |
---|---|---|
committer | tsutsui <tsutsui@pkgsrc.org> | 2019-03-23 10:52:09 +0000 |
commit | 670f0d2d6563fc59b139ccb263cab48373499233 (patch) | |
tree | b6dcfb7b971c927d400693818d18bc9f321ae9d1 /misc | |
parent | b8005dfe8843c1269508e317d2ffa15497f981c9 (diff) | |
download | pkgsrc-670f0d2d6563fc59b139ccb263cab48373499233.tar.gz |
misc/libreoffice6-bin: import libreoffice6-bin-6.2.2.
LibreOffice is the free power-packed Open Source personal productivity
suite for Windows, Macintosh and Linux, that gives you six feature-rich
applications for all your document production and data processing
needs: Writer, Calc, Impress, Draw, Math and Base.
This package tracks libreoffice-6.x branch of official Linux binary.
"Looks fine to me" by dholland@ in PR pkg/54066.
Diffstat (limited to 'misc')
-rw-r--r-- | misc/libreoffice6-bin/DESCR | 6 | ||||
-rw-r--r-- | misc/libreoffice6-bin/Makefile | 87 | ||||
-rw-r--r-- | misc/libreoffice6-bin/PLIST.dirs | 3 | ||||
-rw-r--r-- | misc/libreoffice6-bin/PLIST.proglinks | 14 | ||||
-rw-r--r-- | misc/libreoffice6-bin/distinfo | 6 | ||||
-rw-r--r-- | misc/libreoffice6-bin/files/libreoffice-bin-base.desktop | 39 | ||||
-rw-r--r-- | misc/libreoffice6-bin/files/libreoffice-bin-calc.desktop | 39 | ||||
-rw-r--r-- | misc/libreoffice6-bin/files/libreoffice-bin-draw.desktop | 39 | ||||
-rw-r--r-- | misc/libreoffice6-bin/files/libreoffice-bin-impress.desktop | 39 | ||||
-rw-r--r-- | misc/libreoffice6-bin/files/libreoffice-bin-math.desktop | 40 | ||||
-rw-r--r-- | misc/libreoffice6-bin/files/libreoffice-bin-writer.desktop | 39 | ||||
-rw-r--r-- | misc/libreoffice6-bin/files/soffice | 17 | ||||
-rw-r--r-- | misc/libreoffice6-bin/options.mk | 12 |
13 files changed, 380 insertions, 0 deletions
diff --git a/misc/libreoffice6-bin/DESCR b/misc/libreoffice6-bin/DESCR new file mode 100644 index 00000000000..f0695845865 --- /dev/null +++ b/misc/libreoffice6-bin/DESCR @@ -0,0 +1,6 @@ +LibreOffice is the free power-packed Open Source personal productivity +suite for Windows, Macintosh and Linux, that gives you six feature-rich +applications for all your document production and data processing +needs: Writer, Calc, Impress, Draw, Math and Base. + +This package tracks libreoffice-6.x branch of official Linux binary. diff --git a/misc/libreoffice6-bin/Makefile b/misc/libreoffice6-bin/Makefile new file mode 100644 index 00000000000..7ff00840aa6 --- /dev/null +++ b/misc/libreoffice6-bin/Makefile @@ -0,0 +1,87 @@ +# $NetBSD: Makefile,v 1.1 2019/03/23 10:52:09 tsutsui Exp $ + +DISTNAME= libreoffice6-bin # overridden below +PKGNAME= libreoffice6-bin-${OO_RELEASE} +CATEGORIES= misc + +MAINTAINER= tsutsui@NetBSD.org +HOMEPAGE= https://www.libreoffice.org/ +COMMENT= Integrated office productivity suite (binary pkg) +LICENSE= gnu-lgpl-v3 + +CONFLICTS+= staroffice-[0-9]* +CONFLICTS+= openoffice-[0-9]* +CONFLICTS+= openoffice-bin-[0-9]* +CONFLICTS+= openoffice2-bin-[0-9]* +CONFLICTS+= openoffice2-[0-9]* +CONFLICTS+= openoffice3-[0-9]* +CONFLICTS+= openoffice3-bin-[0-9]* +CONFLICTS+= openoffice-linux-[0-9]* +CONFLICTS+= libreoffice3-bin-[0-9]* +CONFLICTS+= libreoffice4-bin-[0-9]* +CONFLICTS+= libreoffice5-bin-[0-9]* + +OO_VER= 6 +OO_BASEVER= ${OO_VER}.2 +OO_RELEASE= ${OO_BASEVER}.2 +OO_RELEASEV= ${OO_RELEASE}.2 +PLIST_SUBST+= VER=${OO_VER:Q} BASEVER=${OO_BASEVER:Q} +MESSAGE_SUBST+= VER=${OO_VER:Q} +FILES_SUBST+= VER=${OO_VER:Q} + +TEMP?= ${WRKSRC} +EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} +BUILD_DIRS= # empty + +PLIST_SRC= ${PKGDIR}/PLIST.proglinks +PLIST_SRC+= ${WRKDIR}/PLIST +PLIST_SRC+= ${PKGDIR}/PLIST.dirs + +EMUL_PLATFORMS= linux-i386 linux-x86_64 +#EMUL_PLATFORMS+= solaris-i386 solaris-sparc +EMUL_MODULES.linux= avahi cups dbus dbus-glib fontconfig freetype2 glx +EMUL_MODULES.linux+= gstreamer gtk2 krb5 locale png qt4 x11 +EMUL_REQD= suse>=13.1 + +EMUL_PKG_FMT= rpm +RPMFILES= ${WRKSRC}/RPMS/*.rpm +RPM2PKG_PREFIX= ${DESTDIR}${PREFIX} +RPM2PKG_SUBPREFIX= # empty +RPM2PKG_STAGE= do-install +RUN_LDCONFIG= no + +USE_TOOLS+= patch uniq + +.include "../../mk/bsd.prefs.mk" + +.if ${EMUL_PLATFORM} == "linux-i386" +DISTNAME= LibreOffice_${OO_RELEASE}_Linux_x86_rpm +WRKSRC= ${WRKDIR}/LibreOffice_${OO_RELEASEV}_Linux_x86_rpm +MASTER_SITES= http://download.documentfoundation.org/libreoffice/stable/${OO_RELEASE}/rpm/x86/ +.elif ${EMUL_PLATFORM} == "linux-x86_64" +DISTNAME= LibreOffice_${OO_RELEASE}_Linux_x86-64_rpm +WRKSRC= ${WRKDIR}/LibreOffice_${OO_RELEASEV}_Linux_x86-64_rpm +MASTER_SITES= http://download.documentfoundation.org/libreoffice/stable/${OO_RELEASE}/rpm/x86_64/ +.endif + +.include "options.mk" + +INSTALLATION_DIRS= bin share/applications +DESKTOP_FILESDIR= ${.CURDIR}/../../misc/libreoffice6-bin/files + +do-install: + ${UNIQ} ${RPM2PKG_PLIST} | \ + ${SED} -e 's,^@exec mkdir -m 755 -p %D/,@pkgdir,' > ${WRKDIR}/PLIST + ${RM} -f ${DESTDIR}${PREFIX}/bin/soffice + ${SED} -e "s|@@PREFIX@@|${PREFIX}|g" -e "s|@@OO_VER@@|${OO_VER}|g" \ + -e "s|@@JAVA_HOME@@|${PKG_JAVA_HOME}|g" \ + -e "s|@@OO_BASEVER@@|${OO_BASEVER}|g" \ + < ${FILESDIR}/soffice > ${DESTDIR}${PREFIX}/bin/soffice + ${CHMOD} +x ${DESTDIR}${PREFIX}/bin/soffice + ${INSTALL_DATA} ${DESKTOP_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 + +.include "../../sysutils/desktop-file-utils/desktopdb.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/misc/libreoffice6-bin/PLIST.dirs b/misc/libreoffice6-bin/PLIST.dirs new file mode 100644 index 00000000000..089002402f0 --- /dev/null +++ b/misc/libreoffice6-bin/PLIST.dirs @@ -0,0 +1,3 @@ +@comment $NetBSD: PLIST.dirs,v 1.1 2019/03/23 10:52:09 tsutsui Exp $ +@pkgdir opt/libreoffice +@pkgdir opt diff --git a/misc/libreoffice6-bin/PLIST.proglinks b/misc/libreoffice6-bin/PLIST.proglinks new file mode 100644 index 00000000000..988c7ba1452 --- /dev/null +++ b/misc/libreoffice6-bin/PLIST.proglinks @@ -0,0 +1,14 @@ +@comment $NetBSD: PLIST.proglinks,v 1.1 2019/03/23 10:52:09 tsutsui Exp $ +bin/sbase +bin/scalc +bin/sdraw +bin/simpress +bin/smath +bin/soffice +bin/swriter +share/applications/libreoffice-bin-base.desktop +share/applications/libreoffice-bin-calc.desktop +share/applications/libreoffice-bin-draw.desktop +share/applications/libreoffice-bin-impress.desktop +share/applications/libreoffice-bin-math.desktop +share/applications/libreoffice-bin-writer.desktop diff --git a/misc/libreoffice6-bin/distinfo b/misc/libreoffice6-bin/distinfo new file mode 100644 index 00000000000..0562301bcd7 --- /dev/null +++ b/misc/libreoffice6-bin/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1 2019/03/23 10:52:09 tsutsui Exp $ + +SHA1 (LibreOffice_6.2.2_Linux_x86_rpm.tar.gz) = 1816f657a77ad7ec1139e4fce50594b4313ee684 +RMD160 (LibreOffice_6.2.2_Linux_x86_rpm.tar.gz) = bfbbc6ff90ab52095a10bdbfd17e073e5da6c333 +SHA512 (LibreOffice_6.2.2_Linux_x86_rpm.tar.gz) = d50285ec89526d277b193610894ae7694fc16a5750778d833a8fac68eb37cb31de6fd60f525ea7aeda69b995d205bf87ec4701f61ac3459c5ed7642d13adb05e +Size (LibreOffice_6.2.2_Linux_x86_rpm.tar.gz) = 226569436 bytes diff --git a/misc/libreoffice6-bin/files/libreoffice-bin-base.desktop b/misc/libreoffice6-bin/files/libreoffice-bin-base.desktop new file mode 100644 index 00000000000..78e144e8774 --- /dev/null +++ b/misc/libreoffice6-bin/files/libreoffice-bin-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/libreoffice6-bin/files/libreoffice-bin-calc.desktop b/misc/libreoffice6-bin/files/libreoffice-bin-calc.desktop new file mode 100644 index 00000000000..0a667a5afa5 --- /dev/null +++ b/misc/libreoffice6-bin/files/libreoffice-bin-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/libreoffice6-bin/files/libreoffice-bin-draw.desktop b/misc/libreoffice6-bin/files/libreoffice-bin-draw.desktop new file mode 100644 index 00000000000..84f19a4e452 --- /dev/null +++ b/misc/libreoffice6-bin/files/libreoffice-bin-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/libreoffice6-bin/files/libreoffice-bin-impress.desktop b/misc/libreoffice6-bin/files/libreoffice-bin-impress.desktop new file mode 100644 index 00000000000..95eb4469f21 --- /dev/null +++ b/misc/libreoffice6-bin/files/libreoffice-bin-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/libreoffice6-bin/files/libreoffice-bin-math.desktop b/misc/libreoffice6-bin/files/libreoffice-bin-math.desktop new file mode 100644 index 00000000000..3430fdc3847 --- /dev/null +++ b/misc/libreoffice6-bin/files/libreoffice-bin-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/libreoffice6-bin/files/libreoffice-bin-writer.desktop b/misc/libreoffice6-bin/files/libreoffice-bin-writer.desktop new file mode 100644 index 00000000000..ca1c2239bc7 --- /dev/null +++ b/misc/libreoffice6-bin/files/libreoffice-bin-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 diff --git a/misc/libreoffice6-bin/files/soffice b/misc/libreoffice6-bin/files/soffice new file mode 100644 index 00000000000..16a5433d8bc --- /dev/null +++ b/misc/libreoffice6-bin/files/soffice @@ -0,0 +1,17 @@ +#!/bin/sh +# +# $NetBSD: soffice,v 1.1 2019/03/23 10:52:09 tsutsui Exp $ +# +SOINST=@@PREFIX@@/opt/libreoffice@@OO_BASEVER@@ + +# make sure we can find `whoami` on solaris +PATH=${PATH}:/usr/ucb + +# add the chosen java directory to $PATH to allow OOo to +# automatically find it +PATH=${PATH}:@@JAVA_HOME@@ + +# default data seg size is too small for java +ulimit -d `ulimit -H -d` + +exec ${SOINST}/program/soffice "$@" diff --git a/misc/libreoffice6-bin/options.mk b/misc/libreoffice6-bin/options.mk new file mode 100644 index 00000000000..95a3d62bf1b --- /dev/null +++ b/misc/libreoffice6-bin/options.mk @@ -0,0 +1,12 @@ +# $NetBSD: options.mk,v 1.1 2019/03/23 10:52:09 tsutsui Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.libreoffice-bin +PKG_SUPPORTED_OPTIONS= java + +.include "../../mk/bsd.options.mk" + +.if !empty(PKG_OPTIONS:Mjava) +PKG_JVMS_ACCEPTED= jdk15 sun-jdk6 +USE_JAVA= run +.include "../../mk/java-vm.mk" +.endif |