OpenOffice.org 2.0 is ready
authorAndreas Proschofsky <suka@gentoo.org>
Thu, 20 Oct 2005 18:04:44 +0000 (18:04 +0000)
committerAndreas Proschofsky <suka@gentoo.org>
Thu, 20 Oct 2005 18:04:44 +0000 (18:04 +0000)
Package-Manager: portage-2.0.53_rc6

app-office/openoffice/ChangeLog
app-office/openoffice/Manifest
app-office/openoffice/files/digest-openoffice-2.0.0 [new file with mode: 0644]
app-office/openoffice/openoffice-2.0.0.ebuild [new file with mode: 0644]

index cb553603312a4e26f836fb4da381761bffa80da1..e929b50d046f1bf86dee87b3ecfee79c11baae38 100644 (file)
@@ -1,6 +1,13 @@
 # ChangeLog for app-office/openoffice
 # Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-office/openoffice/ChangeLog,v 1.136 2005/10/19 06:37:38 suka Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-office/openoffice/ChangeLog,v 1.137 2005/10/20 18:04:43 suka Exp $
+
+*openoffice-2.0.0 (20 Oct 2005)
+
+  20 Oct 2005; Andreas Proschofsky <suka@gentoo.org>
+  +openoffice-2.0.0.ebuild:
+  OpenOffice.org 2.0 is ready! All patches moved to upstream, also ppc is
+  supported now.
 
   19 Oct 2005; Andreas Proschofsky <suka@gentoo.org>
   files/2.0.0/stlport-vector-ppc-buildfix.diff:
index b586549f3008987c3063a9ac202b07ee7cc3817a..0d8274a4ed6303baf707e350b8b3c4840e64de0b 100644 (file)
@@ -1,4 +1,4 @@
-MD5 d7eac5d8d0034e2b4285f5e883c9ab17 ChangeLog 29751
+MD5 eb994c975284d1d950c4a284cc158ce2 ChangeLog 29957
 MD5 6f7ff745a5659e605fb05206914ab344 files/1.1.4/STLport-vector.patch 1472
 MD5 b2ea5c34d4a5e430c21a2da7426b9e39 files/1.1.4/cws-heapbug_CAN-2005-0941.diff 598
 MD5 cd0429c945d4f2e1fbbb9fd5322a6c2b files/1.1.4/freetype-217.patch 766
@@ -35,8 +35,10 @@ MD5 39239f7e09e3fdd536498728404bfbef files/2.0.0/gentoo-2.0.0_rc3.diff 957
 MD5 10f9f087e0e267786691ea0909909504 files/2.0.0/stlport-vector-ppc-buildfix.diff 2213
 MD5 b2cb01ba0d5824f2892c150dce1d8771 files/digest-openoffice-1.1.4-r1 325
 MD5 387adcb6e397b6e7f825c8384ce52389 files/digest-openoffice-1.1.5 322
+MD5 c45a70a1b4109bc275d7e55083b85d44 files/digest-openoffice-2.0.0 476
 MD5 c27522fd99b4d48dc035d2defbe57015 files/digest-openoffice-2.0.0_rc3 478
 MD5 e3ec4a70395943b59adad7fc4f0538d7 metadata.xml 461
 MD5 60a58fcd938c9d5a770a92f6b7eb9b5d openoffice-1.1.4-r1.ebuild 16561
 MD5 a69a836ff536fa824b7bb4390198d2e6 openoffice-1.1.5.ebuild 16566
+MD5 6684975cc3cc77a8d4e4beaeedc0d2f4 openoffice-2.0.0.ebuild 6782
 MD5 94c7530a7b2b51223c1087fdf108db76 openoffice-2.0.0_rc3.ebuild 7083
diff --git a/app-office/openoffice/files/digest-openoffice-2.0.0 b/app-office/openoffice/files/digest-openoffice-2.0.0
new file mode 100644 (file)
index 0000000..84c2058
--- /dev/null
@@ -0,0 +1,7 @@
+MD5 6a6b1dfa8fd068b1c5f9b341b35ab99d OOO_2_0_0-core.tar.bz2 157108531
+MD5 8aa0c6463dc517723f9f4d4a3f0191a0 OOO_2_0_0-lang.tar.bz2 33103772
+MD5 a6f4b2ef7d1fae927cedbd45e6dd403d OOO_2_0_0-system.tar.bz2 19324775
+MD5 733051ebeffae5232a2eb760162da020 extras-2.tar.bz2 94740
+MD5 f34404f8dc6123aca156d203c37e3e5d libwpd-0.8.3.tar.gz 482757
+MD5 e12441b6fa94576760e7ef060530b475 ooo-build-2.0.0.tar.gz 4220677
+MD5 586d0f26b3f79d89bbb5b25b874e3df6 ooo_crystal_images-6.tar.bz2 1308872
diff --git a/app-office/openoffice/openoffice-2.0.0.ebuild b/app-office/openoffice/openoffice-2.0.0.ebuild
new file mode 100644 (file)
index 0000000..b4eda03
--- /dev/null
@@ -0,0 +1,220 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-office/openoffice/openoffice-2.0.0.ebuild,v 1.1 2005/10/20 18:04:44 suka Exp $
+
+inherit eutils fdo-mime flag-o-matic kde-functions toolchain-funcs
+
+IUSE="curl eds gnome java kde ldap mozilla nas python zlib xml2"
+
+PATCHLEVEL="OOO680"
+PATCHDIR="${WORKDIR}/ooo-build-${PV}"
+SRC="OOO_2_0_0"
+S="${WORKDIR}/${SRC}"
+CONFFILE="${PATCHDIR}/distro-configs/Gentoo.conf.in"
+DESCRIPTION="OpenOffice.org, a full office productivity suite."
+
+SRC_URI="http://go-oo.org/packages/${PATCHLEVEL}/${SRC}-core.tar.bz2
+       http://go-oo.org/packages/${PATCHLEVEL}/${SRC}-system.tar.bz2
+       http://go-oo.org/packages/${PATCHLEVEL}/${SRC}-lang.tar.bz2
+       http://go-oo.org/packages/${PATCHLEVEL}/ooo-build-${PV}.tar.gz
+       http://go-ooo.org/packages/libwpd/libwpd-0.8.3.tar.gz
+       kde? ( http://go-oo.org/packages/SRC680/ooo_crystal_images-6.tar.bz2 )
+       http://go-oo.org/packages/SRC680/extras-2.tar.bz2"
+
+HOMEPAGE="http://go-oo.org"
+
+LICENSE="LGPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~ppc"
+
+RDEPEND="!app-office/openoffice-bin
+       !app-office/openoffice-ximian-bin
+       !app-office/openoffice-ximian
+       virtual/x11
+       virtual/libc
+       >=dev-lang/perl-5.0
+       gnome? ( >=x11-libs/gtk+-2.4
+               >=gnome-base/gnome-vfs-2.6
+               >=gnome-base/gconf-2.0 )
+       eds? ( >=gnome-extra/evolution-data-server-1.2 )
+       kde? ( kde-base/kdelibs )
+       mozilla? ( >=www-client/mozilla-1.7.10 )
+       >=x11-libs/startup-notification-0.5
+       >=media-libs/freetype-2.1.4
+       >=media-libs/fontconfig-2.2.0
+       media-libs/libpng
+       sys-devel/flex
+       sys-devel/bison
+       app-arch/zip
+       app-arch/unzip
+       dev-libs/expat
+       java? ( =virtual/jre-1.4* )
+       >=sys-devel/gcc-3.2.1
+       linguas_ja? ( >=media-fonts/kochi-substitute-20030809-r3 )
+       linguas_zh_CN? ( >=media-fonts/arphicfonts-0.1-r2 )
+       linguas_zh_TW? ( >=media-fonts/arphicfonts-0.1-r2 )"
+
+DEPEND="${RDEPEND}
+       net-print/cups
+       >=sys-apps/findutils-4.1.20-r1
+       app-shells/tcsh
+       dev-perl/Archive-Zip
+       dev-util/pkgconfig
+       dev-util/intltool
+       curl? ( >=net-misc/curl-7.9.8 )
+       nas? ( >=media-libs/nas-1.6 )
+       zlib? ( sys-libs/zlib )
+       sys-libs/pam
+       !dev-util/dmake
+       java? ( =virtual/jdk-1.4*
+               dev-java/ant-core )
+       !java? ( dev-libs/libxslt
+               >=dev-libs/libxml2-2.0 )
+       ldap? ( net-nds/openldap )
+       python? ( >=dev-lang/python-2.3.4 )
+       xml2? ( >=dev-libs/libxml2-2.0 )"
+
+PROVIDE="virtual/ooo"
+
+pkg_setup() {
+
+       ewarn
+       ewarn " It is important to note that OpenOffice.org is a very fragile  "
+       ewarn " build when it comes to CFLAGS.  A number of flags have already "
+       ewarn " been filtered out.  If you experience difficulty merging this  "
+       ewarn " package and use agressive CFLAGS, lower the CFLAGS and try to  "
+       ewarn " merge again. Also note that building OOo takes a lot of time and "
+       ewarn " hardware ressources: 4-6 GB free diskspace and 256 MB RAM are "
+       ewarn " the minimum requirements. If you have less, use openoffice-bin "
+       ewarn " instead. "
+       ewarn
+
+       strip-linguas af ar be_BY bg bn br ca cs cy da de el en en_GB en_US es et fi fr ga gu_IN he hi_IN hr hu it ja km ko lt nb ne nl nn ns pa_IN pl pt pt_BR ru sh_YU sk sl sr_CS sv th tn tr vi xh zh_CN zh_TW zu
+
+       if [ -z "${LINGUAS}" ]; then
+               export LINGUAS_OOO="en-US"
+               ewarn " To get a localized build, set the according LINGUAS variable(s). "
+               ewarn
+       else
+               export LINGUAS_OOO="${LINGUAS//_/-}"
+               export LINGUAS_OOO="${LINGUAS_OOO//en /en-US }"
+       fi
+
+       if use !java; then
+               ewarn " You are building with java-support disabled, this results in some "
+               ewarn " of the OpenOffice.org functionality (i.e. help) being disabled. "
+               ewarn " If something you need does not work for you, rebuild with "
+               ewarn " java in your USE-flags. Also the xml2 use-flag is disabled with "
+               ewarn " -java to prevent build breakage. "
+               ewarn
+       fi
+
+}
+
+src_unpack() {
+
+       cd ${WORKDIR}
+       unpack ooo-build-${PV}.tar.gz
+
+       #Detect which look and patchset we are using, amd64 is known not to be working atm, so this is here for testing purposes only
+       use amd64 && export DISTRO="Gentoo64" || export DISTRO="Gentoo"
+
+       #Use flag checks
+       use java && echo "--with-jdk-home=${JAVA_HOME} --with-ant-home=${ANT_HOME}" >> ${CONFFILE} || echo "--without-java" >> ${CONFFILE}
+
+       echo "`use_with curl system-curl`" >> ${CONFFILE}
+       echo "`use_with nas system-nas`" >> ${CONFFILE}
+       echo "`use_with python system-python`" >> ${CONFFILE}
+       echo "`use_with xml2 system-libxml`" >> ${CONFFILE}
+       echo "`use_with zlib system-zlib`" >> ${CONFFILE}
+
+       echo "`use_with mozilla system-mozilla`" >> ${CONFFILE}
+       echo "`use_enable mozilla`" >> ${CONFFILE}
+
+       echo "`use_enable ldap openldap`" >> ${CONFFILE}
+       echo "`use_enable eds evolution2`" >> ${CONFFILE}
+       echo "`use_enable gnome gnome-vfs`" >> ${CONFFILE}
+       echo "`use_enable gnome lockdown`" >> ${CONFFILE}
+
+}
+
+src_compile() {
+
+       unset LIBC
+       addpredict "/bin"
+       addpredict "/root/.gconfd"
+       addpredict "/root/.gnome"
+
+       # Should the build use multiprocessing? Not enabled by default, as it tends to break 
+       if [ "${WANT_DISTCC}" == "true" ]; then
+               export JOBS=`echo "${MAKEOPTS}" | sed -e "s/.*-j\([0-9]\+\).*/\1/"` && [ ${JOBS} -gt 10 ] && export JOBS="10"
+       fi
+
+       cd ${PATCHDIR}
+       autoconf || die
+       ./configure ${MYCONF} \
+               --with-distro="${DISTRO}" \
+               --with-vendor="Gentoo" \
+               --with-arch="${ARCH}" \
+               --with-srcdir="${DISTDIR}" \
+               --with-lang="${LINGUAS_OOO}" \
+               --with-num-cpus="${JOBS}" \
+               --with-binsuffix="2" \
+               --with-installed-ooo-dirname="openoffice" \
+               `use_enable gnome gtk` \
+               `use_enable kde` \
+               --disable-access \
+               --disable-mono \
+               --disable-cairo \
+               || die "Configuration failed!"
+
+       # Compile problems with these ...
+       filter-flags "-funroll-loops"
+       filter-flags "-fomit-frame-pointer"
+       filter-flags "-fprefetch-loop-arrays"
+       filter-flags "-fno-default-inline"
+       filter-flags "-fstack-protector"
+       filter-flags "-ftracer"
+       replace-flags "-O3" "-O2"
+       replace-flags "-Os" "-O2"
+
+       # Now for our optimization flags ...
+       export ARCH_FLAGS="${CFLAGS}"
+
+       einfo "Building OpenOffice.org..."
+       use kde && set-kdedir 3
+       make || die "Build failed"
+
+}
+
+src_install() {
+
+       einfo "Preparing Installation"
+       cd ${PATCHDIR}
+       make DESTDIR=${D} install || die "Installation failed!"
+
+       #Correcting location of menu entries, this should really be handled in ooo-build / setup.in
+       mkdir ${D}/usr/share/applications
+       mv ${D}/opt/gnome/share/applications/* ${D}/usr/share/applications/
+       rmdir ${D}/opt/gnome/share/applications/ -p
+
+       # Install corrected Symbol Font
+       insinto /usr/share/fonts/TTF/
+       doins ${PATCHDIR}/fonts/*.ttf
+
+}
+
+pkg_postinst() {
+
+       fdo-mime_desktop_database_update
+       fdo-mime_mime_database_update
+
+       einfo " To start OpenOffice.org, run:"
+       einfo
+       einfo " $ ooffice2"
+       einfo
+       einfo " Also, for individual components, you can use any of:"
+       einfo
+       einfo " oobase2, oocalc2, oodraw2, oofromtemplate2, ooimpress2, oomath2,"
+       einfo " ooweb2 or oowriter2"
+}