pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/misc/openoffice2-bin OpenOffice.org is a multiplatform...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/353b18511c2d
branches:  trunk
changeset: 500498:353b18511c2d
user:      mrauch <mrauch%pkgsrc.org@localhost>
date:      Sun Oct 09 13:39:53 2005 +0000

description:
OpenOffice.org is a multiplatform and multilingual office suite and an
open-source project. Compatible with all other major office suites, the
product is free to download, use, and distribute.

New features in version 2 include:
* Open Standards XML File Format (OASIS OpenDocument)
* New CustomShapes (compatible with Microsoft AutoShapes)
* Enhanced PDF Export
* New enhanced Database Frontend
* Mail Merge Wizard
* Support for Nested Tables
* Digital Signatures Support
* XForms Support
* WordPerfect Filters

A complete list is available at
http://marketing.openoffice.org/2.0/featureguide.html.

This package was submitted by Geert Hendrickx to tech-pkg, based on an
earlier version posted there by myself.

diffstat:

 misc/openoffice2-bin/DESCR                |   14 ++++
 misc/openoffice2-bin/INSTALL              |   55 ++++++++++++++++
 misc/openoffice2-bin/Makefile             |  102 ++++++++++++++++++++++++++++++
 misc/openoffice2-bin/Makefile.NetBSD.i386 |   11 +++
 misc/openoffice2-bin/PLIST.proglinks      |    6 +
 misc/openoffice2-bin/distinfo             |    5 +
 misc/openoffice2-bin/files/soffice        |   28 ++++++++
 7 files changed, 221 insertions(+), 0 deletions(-)

diffs (249 lines):

diff -r f4a8f3ab97f9 -r 353b18511c2d misc/openoffice2-bin/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/openoffice2-bin/DESCR        Sun Oct 09 13:39:53 2005 +0000
@@ -0,0 +1,14 @@
+OpenOffice.org is an Open Source, community-developed, multi-platform office
+productivity suite. It includes the key desktop applications, such as a
+word processor, spreadsheet, presentation manager, and drawing program,
+with a user interface and feature set similar to other office suites.
+
+Components include:
+  * A universal word processing application for creating business
+    letters, extensive text documents, professional layouts, and HTML
+    documents.
+  * A sophisticated application for performing advanced spreadsheet
+    functions, such as analyzing figures, creating lists, and viewing data.
+  * A tool for creating effective eye-catching presentations.
+  * A vector-oriented draw module that enables the creation of 3D
+    illustrations.
diff -r f4a8f3ab97f9 -r 353b18511c2d misc/openoffice2-bin/INSTALL
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/openoffice2-bin/INSTALL      Sun Oct 09 13:39:53 2005 +0000
@@ -0,0 +1,55 @@
+# $NetBSD: INSTALL,v 1.1.1.1 2005/10/09 13:39:53 mrauch Exp $
+
+# This file contains the contents of the OOo rpm 
+# pre-install, post-install, pre-uninstall and post-uninstall scripts
+
+PRODUCTINSTALLLOCATION=${PKG_PREFIX}/openoffice.org@VER@
+
+case ${STAGE} in
+PRE-INSTALL)
+       # nothing to do
+       ;;
+
+POST-INSTALL)
+       if [ ! -f $PRODUCTINSTALLLOCATION/program/libfreetype.so.6 ]
+       then
+         if [ -f $PRODUCTINSTALLLOCATION/program/filter/libfreetype.so.6 ]
+         then
+           ${LN} -s $PRODUCTINSTALLLOCATION/program/filter/libfreetype.so.6 $PRODUCTINSTALLLOCATION/program/libfreetype.so.6 >/dev/null 2>&1
+         fi
+       fi
+
+       if [ -d $PRODUCTINSTALLLOCATION/program/python-core-2.3.4 ]
+       then
+         ${LN} -s $PRODUCTINSTALLLOCATION/program/python-core-2.3.4 $PRODUCTINSTALLLOCATION/program/python-core >/dev/null 2>&1
+       fi
+
+       if [ -f $PRODUCTINSTALLLOCATION/program/python.sh ]
+       then
+         ${LN} -s $PRODUCTINSTALLLOCATION/program/python.sh $PRODUCTINSTALLLOCATION/program/python >/dev/null 2>&1
+       fi
+
+       if [ -f $PRODUCTINSTALLLOCATION/program/python-core-2.3.4/bin/python ]
+       then
+         chmod +x $PRODUCTINSTALLLOCATION/program/python-core-2.3.4/bin/python
+       fi
+       ;;
+
+DEINSTALL)
+       if [ -h $PRODUCTINSTALLLOCATION/program/libfreetype.so.6 ]
+       then
+         ${RM} $PRODUCTINSTALLLOCATION/program/libfreetype.so.6 >/dev/null 2>&1
+       fi
+
+       if [ -h $PRODUCTINSTALLLOCATION/program/python-core ]
+       then
+         ${RM} $PRODUCTINSTALLLOCATION/program/python-core >/dev/null 2>&1
+       fi
+
+       if [ -h $PRODUCTINSTALLLOCATION/program/python ]
+       then
+         ${RM} $PRODUCTINSTALLLOCATION/program/python >/dev/null 2>&1
+       fi
+       ;;
+
+esac
diff -r f4a8f3ab97f9 -r 353b18511c2d misc/openoffice2-bin/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/openoffice2-bin/Makefile     Sun Oct 09 13:39:53 2005 +0000
@@ -0,0 +1,102 @@
+# $NetBSD: Makefile,v 1.1.1.1 2005/10/09 13:39:53 mrauch Exp $
+
+PKGNAME=               openoffice2-bin-2.0.0rc2
+CATEGORIES=            misc
+MASTER_SITES=          ${MASTER_SITE_OPENOFFICE:=contrib/rc/2.0.0rc2/}
+DISTFILES=             ${DISTNAME}${EXTRACT_SUFX}
+
+MAINTAINER=            mrauch%NetBSD.org@localhost
+HOMEPAGE=              http://www.openoffice.org/
+COMMENT=               Integrated office productivity suite (binary pkg)
+
+BUILD_DEPENDS+=                rpm2pkg>=2.1:../../pkgtools/rpm2pkg
+
+RPM2PKG=               ${PREFIX}/sbin/rpm2pkg
+RPM2PKGARGS=           -d ${PREFIX} -f ${WRKDIR}/PLIST.nouniq -s 1
+
+OO_VER=                        2.0
+PLIST_SUBST+=          VER=${OO_VER}
+MESSAGE_SUBST+=                VER=${OO_VER}
+FILES_SUBST+=          VER=${OO_VER}
+
+NO_CONFIGURE=           yes
+NO_BUILD=              yes
+
+CONFLICTS+=            staroffice-[0-9]*
+CONFLICTS+=            openoffice-[0-9]*
+CONFLICTS+=            openoffice-bin-[0-9]*
+CONFLICTS+=            openoffice-linux-[0-9]*
+
+ONLY_FOR_PLATFORM=     NetBSD-1.6*-i386 NetBSD-[2-9]*-i386
+ONLY_FOR_PLATFORM+=    Linux-*-i[3-6]86
+
+TEMP?=                 ${WRKSRC}
+CHECK_SHLIBS=          no
+
+PLIST_SRC=             ${PKGDIR}/PLIST.proglinks
+PLIST_SRC+=            ${WRKDIR}/PLIST
+
+.include "../../mk/bsd.prefs.mk"
+
+# group together i386, i486, i586 and i686 (for Linux)
+#
+ARCH=  ${MACHINE_ARCH:C/i[3-6]86/i386/g}
+
+USE_PKGINSTALL=         yes
+INSTALL_EXTRA_TMPL=    ${PKGDIR}/INSTALL
+DEINSTALL_EXTRA_TMPL=  ${PKGDIR}/INSTALL
+
+.if ${OPSYS} == "NetBSD"
+.  if ${MACHINE_ARCH} == "sparc" || ${MACHINE_ARCH} == "sparc64"
+.    if !exists(/emul/svr4/usr/lib/ld.so)
+PKG_FAIL_REASON= '${PKGNAME} requires Solaris libraries - see compat_svr4(8)'
+.    endif
+DISTNAME=      OOo_2.0.0rc2_051005_SolarisSparc_install
+WRKSRC=                #unknown
+.  elif ${MACHINE_ARCH} == "i386"
+DISTNAME=      OOo_2.0.0rc2_051005_LinuxIntel_install
+WRKSRC=                ${WRKDIR}/OOO680_m2_native_packed-1_en-US.8964/RPMS
+.  endif
+.endif
+
+.if ${OPSYS} == "Linux"
+.if ${ARCH} == "i386"
+DISTNAME=      OOo_2.0.0rc2_051005_LinuxIntel_install
+WRKSRC=                ${WRKDIR}/OOO680_m2_native_packed-1_en-US.8964/RPMS
+.endif
+.endif
+
+.if ${OPSYS} == "SunOS"
+.if ${MACHINE_ARCH} == "sparc" || ${MACHINE_ARCH} == "sparc64"
+DISTNAME=      OOo_2.0.0rc2_051005_SolarisSparc_install
+WRKSRC=                #unknown
+.elif ${MACHINE_ARCH} == "i386"
+DISTNAME=      OOo_2.0.0rc2_051005_SolarisIntel_install
+WRKSRC=                #unknown
+.endif
+.endif
+
+# everything specific to your OS/Arch goes into its own Makefile
+
+.if exists(Makefile.${OPSYS}.${ARCH})
+.  include "Makefile.${OPSYS}.${ARCH}"
+.endif
+
+.if !defined(DISTNAME)
+DISTNAME=      # Dummy to prevent error from missing DISTNAME
+.endif
+
+do-install:
+       ${RM} -f ${WRKDIR}/PLIST.nouniq
+       ${RPM2PKG} ${RPM2PKGARGS} ${WRKSRC}/*.rpm
+       uniq ${WRKDIR}/PLIST.nouniq >${WRKDIR}/PLIST
+       ${RM} -f ${PREFIX}/bin/soffice
+       ${SED}  -e "s|@@PREFIX@@|${PREFIX}|g" -e "s|@@OO_VER@@|${OO_VER}|g" \
+               < ${FILESDIR}/soffice > ${PREFIX}/bin/soffice
+       ${CHMOD} +x ${PREFIX}/bin/soffice
+.for i in scalc sdraw simpress swriter
+       ${LN} -sf ../openoffice.org${OO_VER}/program/${i} ${PREFIX}/bin/${i}
+.endfor
+
+.include "../../misc/rpm/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r f4a8f3ab97f9 -r 353b18511c2d misc/openoffice2-bin/Makefile.NetBSD.i386
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/openoffice2-bin/Makefile.NetBSD.i386 Sun Oct 09 13:39:53 2005 +0000
@@ -0,0 +1,11 @@
+# $NetBSD: Makefile.NetBSD.i386,v 1.1.1.1 2005/10/09 13:39:53 mrauch Exp $
+
+DEPENDS+=               suse_compat>=7.3:../../emulators/${SUSE_DIR_PREFIX}_compat
+DEPENDS+=               suse_x11>=7.3:../../emulators/${SUSE_DIR_PREFIX}_x11
+DEPENDS+=               suse_freetype2>=2.0:../../emulators/${SUSE_DIR_PREFIX}_freetype2
+
+.if !exists(/emul/linux/proc/curproc/cmdline) && !exists(/proc/curproc/cmdline)
+PKG_FAIL_REASON=       "please mount /emul/linux/proc or /proc"
+.endif
+
+.include "../../emulators/suse_linux/Makefile.application"
diff -r f4a8f3ab97f9 -r 353b18511c2d misc/openoffice2-bin/PLIST.proglinks
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/openoffice2-bin/PLIST.proglinks      Sun Oct 09 13:39:53 2005 +0000
@@ -0,0 +1,6 @@
+@comment $NetBSD: PLIST.proglinks,v 1.1.1.1 2005/10/09 13:39:53 mrauch Exp $
+bin/scalc
+bin/sdraw
+bin/simpress
+bin/soffice
+bin/swriter
diff -r f4a8f3ab97f9 -r 353b18511c2d misc/openoffice2-bin/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/openoffice2-bin/distinfo     Sun Oct 09 13:39:53 2005 +0000
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2005/10/09 13:39:53 mrauch Exp $
+
+SHA1 (OOo_2.0.0rc2_051005_LinuxIntel_install.tar.gz) = 040c4da488383709c40598f46fa2f18c973b76f8
+RMD160 (OOo_2.0.0rc2_051005_LinuxIntel_install.tar.gz) = b1e5e3ac7d8ff0554f38d538bb49defb014aa2ad
+Size (OOo_2.0.0rc2_051005_LinuxIntel_install.tar.gz) = 106466794 bytes
diff -r f4a8f3ab97f9 -r 353b18511c2d misc/openoffice2-bin/files/soffice
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/openoffice2-bin/files/soffice        Sun Oct 09 13:39:53 2005 +0000
@@ -0,0 +1,28 @@
+#!/bin/sh
+#
+#      $NetBSD: soffice,v 1.1.1.1 2005/10/09 13:39:53 mrauch Exp $
+#
+SOINST=@@PREFIX@@/openoffice.org@@OO_VER@@
+
+# make sure we can find `whoami` on solaris
+PATH=${PATH}:/usr/ucb
+
+# add an existing java directory to $PATH to allow OOo to
+# automatically find it
+#
+if [ -d "@@PREFIX@@/java" ]; then
+  for i in @@PREFIX@@/java/*; do
+    if [ -f "$i/bin/java" ]; then
+       export PATH=$PATH:$i/bin
+    fi
+  done
+fi
+# default data seg size is too small for java
+ulimit -d `ulimit -H -d`
+
+
+# Let the standard pkgsrc libraries be found by dlopen()
+LD_LIBRARY_PATH=$LD_LIBRARY_PATH:@@PREFIX@@/lib
+export LD_LIBRARY_PATH
+
+exec ${SOINST}/program/soffice "$@"



Home | Main Index | Thread Index | Old Index