Permalink
Browse files

Add a module for editors/openoffice-4. This module has ALL_LOCALIZED_…

…LANGS as well as TWEAK_L10N set, so we might only need a single PBI if it comes out to be a reasonable size.
  • Loading branch information...
1 parent c59f939 commit 93deef82efd8fd73ca9b71581dbeb9c7e632462a Ken Moore committed Sep 30, 2013
@@ -0,0 +1,13 @@
+# Files to be Sym-Linked into the default LOCALBASE
+# One per-line, relative to %%PBI_APPDIR%% and LOCALBASE
+# Defaults to keeping any existing files in LOCALBASE
+# Use action "binary" for binaries that need wrapper functionality
+
+# TARGET LINK IN LOCALBASE ACTION
+bin/sbase bin/sbase binary,nocrash
+bin/scalc bin/scalc binary,nocrash
+bin/swriter bin/swriter binary,nocrash
+bin/sdraw bin/sdraw binary,nocrash
+bin/simpress bin/simpress binary,nocrash
+bin/smath bin/smath binary,nocrash
+bin/setofficelang bin/setofficelang binary,nocrash
@@ -0,0 +1,24 @@
+#!/bin/sh
+# PBI Build Configuration
+
+# -- Program Information --
+PBI_PROGNAME="Apache OpenOffice"
+PBI_PROGWEB="http://openoffice.apache.org/"
+PBI_PROGAUTHOR="office@FreeBSD.org"
+PBI_PROGICON="openoffice.png"
+
+# -- Port Information --
+PBI_MAKEPORT="editors/openoffice-4"
+PBI_MKPORTBEFORE=""
+PBI_MKPORTAFTER=""
+PBI_MAKEOPTS="ALL_LOCALIZED_LANGS=YES
+TWEAK_L10N=YES"
+
+# -- Require Root Permissions to Install PBI --
+PBI_REQUIRESROOT="NO"
+# -- Auto-build Configuration Options --
+PBI_BUILDKEY="00"
+PBI_AB_PRIORITY="50"
+PBI_AB_NOTMPFS="NO"
+
+export PBI_PROGNAME PBI_PROGWEB PBI_PROGAUTHOR PBI_PROGICON PBI_MAKEPORT PBI_MKPORTBEFORE PBI_MKPORTAFTER PBI_MAKEOPTS PBI_REQUIRESROOT PBI_BUILDKEY PBI_AB_PRIORITY PBI_NOTMPFS
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+#Make the sym-links without the openoffice version in the name
+cd ${PBI_PROGDIRPATH}/bin
+ln -s open*sbase sbase
+ln -s open*scalc scalc
+ln -s open*sdraw sdraw
+ln -s open*setofficelang setofficelang
+ln -s open*simpress simpress
+ln -s open*smath smath
+ln -s open*spadmin spadmin
+ln -s open*swriter swriter
+ln -s sbase soffice
@@ -0,0 +1,10 @@
+#!/usr/bin/env
+[Desktop Entry]
+Value=1.0
+Type=Application
+Name=OpenOffice
+GenericName=openoffice
+Exec=%%PBI_EXEDIR%%/soffice
+Path=%%PBI_APPDIR%%
+Icon=%%PBI_APPDIR%%/openoffice.png
+StartupNotify=true
@@ -0,0 +1,13 @@
+#!/usr/bin/env
+[Desktop Entry]
+Value=1.0
+Type=Application
+Name=OpenOffice
+GenericName=openoffice
+Exec=%%PBI_EXEDIR%%/sbase
+Path=%%PBI_APPDIR%%
+Icon=%%PBI_APPDIR%%/openoffice.png
+StartupNotify=true
+NoDisplay=true
+Categories=Office
+MimeType=application/x-sbase
@@ -0,0 +1,13 @@
+#!/usr/bin/env
+[Desktop Entry]
+Value=1.0
+Type=Application
+Name=OpenOffice
+GenericName=openoffice
+Exec=%%PBI_EXEDIR%%/scalc
+Path=%%PBI_APPDIR%%
+Icon=%%PBI_APPDIR%%/openoffice.png
+StartupNotify=true
+NoDisplay=true
+Categories=Office
+MimeType=application/x-scalc
@@ -0,0 +1,13 @@
+#!/usr/bin/env
+[Desktop Entry]
+Value=1.0
+Type=Application
+Name=OpenOffice
+GenericName=openoffice
+Exec=%%PBI_EXEDIR%%/sdraw
+Path=%%PBI_APPDIR%%
+Icon=%%PBI_APPDIR%%/openoffice.png
+StartupNotify=true
+NoDisplay=true
+Categories=Office
+MimeType=application/x-sdraw
@@ -0,0 +1,13 @@
+#!/usr/bin/env
+[Desktop Entry]
+Value=1.0
+Type=Application
+Name=OpenOffice
+GenericName=openoffice
+Exec=%%PBI_EXEDIR%%/simpress
+Path=%%PBI_APPDIR%%
+Icon=%%PBI_APPDIR%%/openoffice.png
+StartupNotify=true
+NoDisplay=true
+Categories=Office
+MimeType=application/x-simpress
@@ -0,0 +1,13 @@
+#!/usr/bin/env
+[Desktop Entry]
+Value=1.0
+Type=Application
+Name=OpenOffice
+GenericName=openoffice
+Exec=%%PBI_EXEDIR%%/smath
+Path=%%PBI_APPDIR%%
+Icon=%%PBI_APPDIR%%/openoffice.png
+StartupNotify=true
+NoDisplay=true
+Categories=Office
+MimeType=application/x-smath
@@ -0,0 +1,11 @@
+#!/usr/bin/env
+[Desktop Entry]
+Value=1.0
+Type=Application
+Name=OpenOffice
+GenericName=openoffice
+Exec=%%PBI_EXEDIR%%/soffice
+Path=%%PBI_APPDIR%%
+Icon=%%PBI_APPDIR%%/openoffice.png
+StartupNotify=true
+Categories=Office
@@ -0,0 +1,13 @@
+#!/usr/bin/env
+[Desktop Entry]
+Value=1.0
+Type=Application
+Name=OpenOffice
+GenericName=openoffice
+Exec=%%PBI_EXEDIR%%/swriter
+Path=%%PBI_APPDIR%%
+Icon=%%PBI_APPDIR%%/openoffice.png
+StartupNotify=true
+NoDisplay=true
+Categories=Office
+MimeType=application/x-swriter
@@ -0,0 +1,7 @@
+<?xml version="1.0"?>
+<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>
+ <mime-type type="application/x-sbase">
+ <glob weight="100" pattern="*.odb"/>
+ <glob weight="100" pattern="*.ODB"/>
+ </mime-type>
+</mime-info>
@@ -0,0 +1,21 @@
+<?xml version="1.0"?>
+<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>
+ <mime-type type="application/x-scalc">
+ <glob weight="100" pattern="*.xls"/>
+ <glob weight="100" pattern="*.XLS"/>
+ <glob weight="100" pattern="*.ods"/>
+ <glob weight="100" pattern="*.ODS"/>
+ <glob weight="100" pattern="*.csv"/>
+ <glob weight="100" pattern="*.CSV"/>
+ <glob weight="100" pattern="*.swc"/>
+ <glob weight="100" pattern="*.SWC"/>
+ <glob weight="100" pattern="*.sxc"/>
+ <glob weight="100" pattern="*.SXC"/>
+ <glob weight="100" pattern="*.ots"/>
+ <glob weight="100" pattern="*.OTS"/>
+ <glob weight="100" pattern="*.stc"/>
+ <glob weight="100" pattern="*.STC"/>
+ <glob weight="100" pattern="*.xlt"/>
+ <glob weight="100" pattern="*.XLT"/>
+ </mime-type>
+</mime-info>
@@ -0,0 +1,12 @@
+<?xml version="1.0"?>
+<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>
+ <mime-type type="application/x-sdraw">
+ <glob weight="100" pattern="*.odg"/>
+ <glob weight="100" pattern="*.ODG"/>
+ <glob weight="100" pattern="*.sxd"/>
+ <glob weight="100" pattern="*.SXD"/>
+ <glob weight="100" pattern="*.otg"/>
+ <glob weight="100" pattern="*.std"/>
+ <glob weight="100" pattern="*.STD"/>
+ </mime-type>
+</mime-info>
@@ -0,0 +1,17 @@
+<?xml version="1.0"?>
+<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>
+ <mime-type type="application/x-simpress">
+ <glob weight="100" pattern="*.ppt"/>
+ <glob weight="100" pattern="*.PPT"/>
+ <glob weight="100" pattern="*.odp"/>
+ <glob weight="100" pattern="*.ODP"/>
+ <glob weight="100" pattern="*.sxi"/>
+ <glob weight="100" pattern="*.SXI"/>
+ <glob weight="100" pattern="*.otp"/>
+ <glob weight="100" pattern="*.OTP"/>
+ <glob weight="100" pattern="*.sti"/>
+ <glob weight="100" pattern="*.STI"/>
+ <glob weight="100" pattern="*.pot"/>
+ <glob weight="100" pattern="*.POT"/>
+ </mime-type>
+</mime-info>
@@ -0,0 +1,9 @@
+<?xml version="1.0"?>
+<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>
+ <mime-type type="application/x-smath">
+ <glob weight="100" pattern="*.odf"/>
+ <glob weight="100" pattern="*.ODF"/>
+ <glob weight="100" pattern="*.sxm"/>
+ <glob weight="100" pattern="*.SXM"/>
+ </mime-type>
+</mime-info>
@@ -0,0 +1,21 @@
+<?xml version="1.0"?>
+<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>
+ <mime-type type="application/x-swriter">
+ <glob weight="100" pattern="*.odt"/>
+ <glob weight="100" pattern="*.ODT"/>
+ <glob weight="100" pattern="*.doc"/>
+ <glob weight="100" pattern="*.DOC"/>
+ <glob weight="100" pattern="*.docx"/>
+ <glob weight="100" pattern="*.DOCX"/>
+ <glob weight="100" pattern="*.rtf"/>
+ <glob weight="100" pattern="*.RTF"/>
+ <glob weight="100" pattern="*.sxw"/>
+ <glob weight="100" pattern="*.SXW"/>
+ <glob weight="100" pattern="*.ott"/>
+ <glob weight="100" pattern="*.OTT"/>
+ <glob weight="100" pattern="*.stw"/>
+ <glob weight="100" pattern="*.STW"/>
+ <glob weight="100" pattern="*.dot"/>
+ <glob weight="100" pattern="*.DOT"/>
+ </mime-type>
+</mime-info>

0 comments on commit 93deef8

Please sign in to comment.