pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/misc/libreoffice3-bin Import libreoffice3-bin-3.3.2 as...
details: https://anonhg.NetBSD.org/pkgsrc/rev/52153b202934
branches: trunk
changeset: 589549:52153b202934
user: ryoon <ryoon%pkgsrc.org@localhost>
date: Sun Jun 12 09:05:30 2011 +0000
description:
Import libreoffice3-bin-3.3.2 as misc/libreoffice3-bin
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 is linux binary package.
diffstat:
misc/libreoffice3-bin/DESCR | 4 +
misc/libreoffice3-bin/Makefile | 86 +++++++++++++++++++++++++++++++
misc/libreoffice3-bin/PLIST.dirs | 3 +
misc/libreoffice3-bin/PLIST.proglinks | 8 ++
misc/libreoffice3-bin/distinfo | 5 +
misc/libreoffice3-bin/files/soffice | 17 ++++++
misc/libreoffice3-bin/files/soffice-patch | 17 ++++++
misc/libreoffice3-bin/files/spadmin-patch | 17 ++++++
misc/libreoffice3-bin/options.mk | 12 ++++
9 files changed, 169 insertions(+), 0 deletions(-)
diffs (205 lines):
diff -r f6e02ccfc85d -r 52153b202934 misc/libreoffice3-bin/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/libreoffice3-bin/DESCR Sun Jun 12 09:05:30 2011 +0000
@@ -0,0 +1,4 @@
+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.
diff -r f6e02ccfc85d -r 52153b202934 misc/libreoffice3-bin/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/libreoffice3-bin/Makefile Sun Jun 12 09:05:30 2011 +0000
@@ -0,0 +1,86 @@
+# $NetBSD: Makefile,v 1.1.1.1 2011/06/12 09:05:30 ryoon Exp $
+
+DISTNAME= libreoffice3-bin # overridden below
+PKGNAME= libreoffice3-bin-${OO_RELEASE}
+CATEGORIES= misc
+MASTER_SITES= http://download.documentfoundation.org/libreoffice/stable/3.3.2/rpm/x86/
+
+MAINTAINER= ryoon%NetBSD.org@localhost
+HOMEPAGE= http://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]*
+
+OO_VER= 3
+OO_BASEVER= 3.3
+OO_RELEASE= 3.3.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
+#EMUL_PLATFORMS+= solaris-i386 solaris-sparc
+EMUL_MODULES.linux= freetype2 x11 locale
+EMUL_REQD= suse>=11.3
+
+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
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+.include "../../mk/bsd.prefs.mk"
+
+.if ${EMUL_PLATFORM} == "linux-i386"
+DISTNAME= LibO_3.3.2_Linux_x86_install-rpm_en-US
+WRKSRC= ${WRKDIR}/LibO_${OO_RELEASE}rc2_Linux_x86_install-rpm_en-US
+.elif ${EMUL_PLATFORM} == "solaris-i386"
+DISTNAME= OOo_${OO_RELEASE}_Solaris_x86_install_en-US
+WRKSRC= ${WRKDIR}/OOO320_m18_native_packed-1_en-US.9502/packages
+.elif ${EMUL_PLATFORM} == "solaris-sparc"
+DISTNAME= OOo_${OO_RELEASE}_Solaris_Sparc_install_en-US
+WRKSRC= ${WRKDIR}/OOO320_m18_native_packed-1_en-US.9502/packages
+.endif
+
+.include "options.mk"
+
+INSTALLATION_DIRS= bin
+
+do-install:
+ ${PATCH} -d ${DESTDIR}${PREFIX}/opt/libreoffice/program < ${FILESDIR}/soffice-patch
+ ${RM} -f ${DESTDIR}${PREFIX}/opt/libreoffice/program/soffice.orig
+ ${PATCH} -d ${DESTDIR}${PREFIX}/opt/libreoffice/program < ${FILESDIR}/spadmin-patch
+ ${RM} -f ${DESTDIR}${PREFIX}/opt/libreoffice/program/spadmin.orig
+ 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" \
+ < ${FILESDIR}/soffice > ${DESTDIR}${PREFIX}/bin/soffice
+ ${CHMOD} +x ${DESTDIR}${PREFIX}/bin/soffice
+.for i in scalc sdraw simpress smath spadmin swriter
+ ${LN} -sf ../opt/libreoffice/program/${i} ${DESTDIR}${PREFIX}/bin/${i}
+.endfor
+
+.include "../../mk/bsd.pkg.mk"
diff -r f6e02ccfc85d -r 52153b202934 misc/libreoffice3-bin/PLIST.dirs
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/libreoffice3-bin/PLIST.dirs Sun Jun 12 09:05:30 2011 +0000
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST.dirs,v 1.1.1.1 2011/06/12 09:05:30 ryoon Exp $
+@pkgdir opt/libreoffice
+@pkgdir opt
diff -r f6e02ccfc85d -r 52153b202934 misc/libreoffice3-bin/PLIST.proglinks
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/libreoffice3-bin/PLIST.proglinks Sun Jun 12 09:05:30 2011 +0000
@@ -0,0 +1,8 @@
+@comment $NetBSD: PLIST.proglinks,v 1.1.1.1 2011/06/12 09:05:30 ryoon Exp $
+bin/scalc
+bin/sdraw
+bin/simpress
+bin/smath
+bin/soffice
+bin/spadmin
+bin/swriter
diff -r f6e02ccfc85d -r 52153b202934 misc/libreoffice3-bin/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/libreoffice3-bin/distinfo Sun Jun 12 09:05:30 2011 +0000
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2011/06/12 09:05:30 ryoon Exp $
+
+SHA1 (LibO_3.3.2_Linux_x86_install-rpm_en-US.tar.gz) = f040e2f1b2039b1dfbf74209b831ebc17073277f
+RMD160 (LibO_3.3.2_Linux_x86_install-rpm_en-US.tar.gz) = d7f7d356f373973311d4f60abc1a68f4ee764d2a
+Size (LibO_3.3.2_Linux_x86_install-rpm_en-US.tar.gz) = 153885204 bytes
diff -r f6e02ccfc85d -r 52153b202934 misc/libreoffice3-bin/files/soffice
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/libreoffice3-bin/files/soffice Sun Jun 12 09:05:30 2011 +0000
@@ -0,0 +1,17 @@
+#!/bin/sh
+#
+# $NetBSD: soffice,v 1.1.1.1 2011/06/12 09:05:30 ryoon Exp $
+#
+SOINST=@@PREFIX@@/opt/libreoffice
+
+# 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 -r f6e02ccfc85d -r 52153b202934 misc/libreoffice3-bin/files/soffice-patch
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/libreoffice3-bin/files/soffice-patch Sun Jun 12 09:05:30 2011 +0000
@@ -0,0 +1,17 @@
+#
+# $NetBSD: soffice-patch,v 1.1.1.1 2011/06/12 09:05:30 ryoon Exp $
+#
+
+--- soffice.orig 2009-01-18 23:49:18.000000000 +0100
++++ soffice 2009-01-19 00:10:22.000000000 +0100
+@@ -73,6 +73,10 @@
+ esac
+ done
+
++# Set LD_LIBRARY_PATH so that javaldx finds libuno_sal.so.3:
++LD_LIBRARY_PATH=$sd_prog/../basis-link/program:$sd_prog/../basis-link/../ure/lib${LD_LIBRARY_PATH+:$LD_LIBRARY_PATH}
++export LD_LIBRARY_PATH
++
+ # extend the ld_library_path for java: javaldx checks the sofficerc for us
+ if [ -x "$sd_prog/../basis-link/ure-link/bin/javaldx" ] ; then
+ my_path=`"$sd_prog/../basis-link/ure-link/bin/javaldx" $BOOTSTRAPVARS \
diff -r f6e02ccfc85d -r 52153b202934 misc/libreoffice3-bin/files/spadmin-patch
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/libreoffice3-bin/files/spadmin-patch Sun Jun 12 09:05:30 2011 +0000
@@ -0,0 +1,17 @@
+#
+# $NetBSD: spadmin-patch,v 1.1.1.1 2011/06/12 09:05:30 ryoon Exp $
+#
+
+--- spadmin.orig 2009-10-08 12:21:04.000000000 +0200
++++ spadmin 2009-10-08 12:22:22.000000000 +0200
+@@ -56,6 +56,10 @@
+ esac
+ done
+
++# Set LD_LIBRARY_PATH so that javaldx finds libuno_sal.so.3:
++LD_LIBRARY_PATH=$sd_prog/../basis-link/program:$sd_prog/../basis-link/../ure/lib${LD_LIBRARY_PATH+:$LD_LIBRARY_PATH}
++export LD_LIBRARY_PATH
++
+ # extend the ld_library_path for java: javaldx checks the sofficerc for us
+ if [ -x "$sd_prog/../basis-link/ure-link/bin/javaldx" ] ; then
+ my_path=`"$sd_prog/../basis-link/ure-link/bin/javaldx" $BOOTSTRAPVARS \
diff -r f6e02ccfc85d -r 52153b202934 misc/libreoffice3-bin/options.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/libreoffice3-bin/options.mk Sun Jun 12 09:05:30 2011 +0000
@@ -0,0 +1,12 @@
+# $NetBSD: options.mk,v 1.1.1.1 2011/06/12 09:05:30 ryoon 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
Home |
Main Index |
Thread Index |
Old Index