From 14b313b91d52037e20b44418f99bf4fcb4e2b947 Mon Sep 17 00:00:00 2001 From: Andreas Proschofsky Date: Fri, 17 Feb 2006 07:48:54 +0000 Subject: First Release Candidate of OpenOffice.org 2.0.2 (Portage version: 2.1_pre4-r1) --- app-office/openoffice/ChangeLog | 8 +- .../openoffice/files/2.0.2/removecrystalcheck.diff | 18 ++ .../openoffice/files/digest-openoffice-2.0.2_rc1 | 24 ++ app-office/openoffice/openoffice-2.0.2_rc1.ebuild | 250 +++++++++++++++++++++ 4 files changed, 299 insertions(+), 1 deletion(-) create mode 100644 app-office/openoffice/files/2.0.2/removecrystalcheck.diff create mode 100644 app-office/openoffice/files/digest-openoffice-2.0.2_rc1 create mode 100644 app-office/openoffice/openoffice-2.0.2_rc1.ebuild (limited to 'app-office') diff --git a/app-office/openoffice/ChangeLog b/app-office/openoffice/ChangeLog index 72888b887ee0..9e448c5ed531 100644 --- a/app-office/openoffice/ChangeLog +++ b/app-office/openoffice/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-office/openoffice # Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-office/openoffice/ChangeLog,v 1.184 2006/02/15 12:12:05 suka Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-office/openoffice/ChangeLog,v 1.185 2006/02/17 07:48:54 suka Exp $ + +*openoffice-2.0.2_rc1 (17 Feb 2006) + + 17 Feb 2006; Andreas Proschofsky + +files/2.0.2/removecrystalcheck.diff, +openoffice-2.0.2_rc1.ebuild: + First Release Candidate of OpenOffice.org 2.0.2, use at your own risk. 15 Feb 2006; Andreas Proschofsky openoffice-2.0.1.ebuild: diff --git a/app-office/openoffice/files/2.0.2/removecrystalcheck.diff b/app-office/openoffice/files/2.0.2/removecrystalcheck.diff new file mode 100644 index 000000000000..a9cb2d7c731a --- /dev/null +++ b/app-office/openoffice/files/2.0.2/removecrystalcheck.diff @@ -0,0 +1,18 @@ +--- bin/unpack ++++ bin/unpack +@@ -266,15 +266,6 @@ + rm -f $CUSTOM_DIR/industrial/vcl/source/src/check*; + fi + +-# needed until integration of iconswitching2 +-check_tarball $SRCDIR/$OOO_CRYSTAL_IMAGES +-tar xzf $SRCDIR/$OOO_CRYSTAL_IMAGES -C $CUSTOM_DIR || exit 1; +-if test ! -d $OOBUILDDIR/external_images ; then +- mkdir $OOBUILDDIR/external_images +-fi +-if test ! -f $OOBUILDDIR/external_images/$OOO_CRYSTAL_IMAGES ; then +- cp $SRCDIR/$OOO_CRYSTAL_IMAGES $OOBUILDDIR/external_images/ +-fi + + if test "x$OOO_EXTRA_ARTWORK" != "x"; then + # Html export rulers etc. diff --git a/app-office/openoffice/files/digest-openoffice-2.0.2_rc1 b/app-office/openoffice/files/digest-openoffice-2.0.2_rc1 new file mode 100644 index 000000000000..dc273b6f1270 --- /dev/null +++ b/app-office/openoffice/files/digest-openoffice-2.0.2_rc1 @@ -0,0 +1,24 @@ +MD5 733051ebeffae5232a2eb760162da020 extras-2.tar.bz2 94740 +RMD160 cba0fdebbbf84e6520af08d1cbb09363d36874bd extras-2.tar.bz2 94740 +SHA256 26e593ad0fecc6642b59349923434c6b36c224db5a26239c760b119ba29c9863 extras-2.tar.bz2 94740 +MD5 4cc68d37ed3a3191bb78a14630e14c64 hunspell_UNO_1.1.tar.gz 13774 +RMD160 9c0c31220d63894c9060a05fd136083b0b017b94 hunspell_UNO_1.1.tar.gz 13774 +SHA256 9de07fbe97c9539bae9c76502474c76471ab173dac365e251ca3fc5281008149 hunspell_UNO_1.1.tar.gz 13774 +MD5 f34404f8dc6123aca156d203c37e3e5d libwpd-0.8.3.tar.gz 482757 +RMD160 f8010300e50e1c43942e6a84a3b526738edb4ed5 libwpd-0.8.3.tar.gz 482757 +SHA256 2221aaa444d29f4a1eacea1a0a939012f02a8aa8e02c178788d68ccc0024170c libwpd-0.8.3.tar.gz 482757 +MD5 b0eca30b3ba93aaa70a710a25e6458a1 oob680-m1-binfilter.tar.bz2 17439083 +RMD160 df7a39fd3f332716f2bbb4f8219b2d6cd777cd88 oob680-m1-binfilter.tar.bz2 17439083 +SHA256 902406788f351cd364bd3f7c07f279762394df18f12be5a3eee461530184212d oob680-m1-binfilter.tar.bz2 17439083 +MD5 1f8a90ac2460ac460233907c2f04acbe oob680-m1-core.tar.bz2 109259563 +RMD160 766e4fe653cb985c7c06ab329cefd7e5eeb29d2f oob680-m1-core.tar.bz2 109259563 +SHA256 cc98cc22468cf37c1e993ed54e989dab80871509cc1c1caee788880010db8f0b oob680-m1-core.tar.bz2 109259563 +MD5 764ef15ef0c5b703fd8b83afb3f9e0ff oob680-m1-lang.tar.bz2 58057100 +RMD160 2b20ec845e7632e3089b7d770f34b7cd8d69a5c2 oob680-m1-lang.tar.bz2 58057100 +SHA256 849e23b9d61b2b8f83a2bab8bae91001cca84887cfe598e5393a7fe8552d5ba2 oob680-m1-lang.tar.bz2 58057100 +MD5 5224687b5b6a42a1f74cd92ab3ce1d12 oob680-m1-system.tar.bz2 25711228 +RMD160 cd2b4e3732f022e65f2cf1cb17ca847db70e5165 oob680-m1-system.tar.bz2 25711228 +SHA256 d9fa12beb5d799470a7cb920b533abd369ccf5aaba2fd6ce485dc0adaff5cd3c oob680-m1-system.tar.bz2 25711228 +MD5 0c23a985a5f17757c6e05a21ef955270 ooo-build-oob680.1.1.tar.gz 5151627 +RMD160 1f4f59831472dfacd38fdb78cc85ebfe59e7ddf0 ooo-build-oob680.1.1.tar.gz 5151627 +SHA256 7163640de8b1aa7d1ef44b2ddca94786a91085886124ade8a856077f7703b956 ooo-build-oob680.1.1.tar.gz 5151627 diff --git a/app-office/openoffice/openoffice-2.0.2_rc1.ebuild b/app-office/openoffice/openoffice-2.0.2_rc1.ebuild new file mode 100644 index 000000000000..caa637ed5566 --- /dev/null +++ b/app-office/openoffice/openoffice-2.0.2_rc1.ebuild @@ -0,0 +1,250 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-office/openoffice/openoffice-2.0.2_rc1.ebuild,v 1.1 2006/02/17 07:48:54 suka Exp $ + +inherit eutils fdo-mime flag-o-matic kde-functions toolchain-funcs + +IUSE="binfilter curl eds firefox gnome gtk java kde ldap mozilla xml2" + +MY_PV="${PV/_rc1/}" +MY_PV2="oob680.1.1" +PATCHLEVEL="OOB680" +SRC="oob680-m1" +S="${WORKDIR}/ooo-build-${MY_PV2}" +CONFFILE="${S}/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 + binfilter? ( http://go-oo.org/packages/${PATCHLEVEL}/${SRC}-binfilter.tar.bz2 ) + http://go-oo.org/packages/${PATCHLEVEL}/ooo-build-${MY_PV2}.tar.gz + http://go-ooo.org/packages/libwpd/libwpd-0.8.3.tar.gz + http://go-oo.org/packages/SRC680/extras-2.tar.bz2 + http://go-oo.org/packages/SRC680/hunspell_UNO_1.1.tar.gz" + +HOMEPAGE="http://go-oo.org" + +LICENSE="LGPL-2" +SLOT="0" +KEYWORDS="~x86" + +RDEPEND="!app-office/openoffice-bin + || ( ( + x11-libs/libXaw + x11-libs/libXinerama + ) + 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 ) + gtk? ( >=x11-libs/gtk+-2.4 ) + eds? ( >=gnome-extra/evolution-data-server-1.2 ) + kde? ( >=kde-base/kdelibs-3.2 ) + mozilla? ( !firefox? ( >=www-client/mozilla-1.7.12 ) + firefox? ( >=www-client/mozilla-firefox-1.5-r9 ) ) + >=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 + app-text/hunspell + 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} + || ( ( + x11-libs/libXrender + x11-proto/printproto + x11-proto/xextproto + x11-proto/xproto + x11-proto/xineramaproto + ) + virtual/x11 ) + 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 ) + sys-libs/zlib + sys-libs/pam + !dev-util/dmake + >=dev-lang/python-2.3.4 + java? ( >=virtual/jdk-1.4 + dev-java/ant-core + >=dev-java/java-config-1.2.11-r1 ) + !java? ( dev-libs/libxslt + >=dev-libs/libxml2-2.0 ) + ldap? ( net-nds/openldap ) + 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 bs ca cs cy da de el en en_GB en_US en_ZA es et fa fi fr ga gu_IN he hi_IN hr hu it ja km ko lo lt lv mk nb ne nl nn nr ns pa_IN pl pt_BR ru rw sh_YU sk sl sr_CS st sv sw_TZ 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//en/en_US}" + export LINGUAS_OOO="${LINGUAS_OOO//en_US_GB/en_GB}" + export LINGUAS_OOO="${LINGUAS_OOO//en_US_US/en_US}" + export LINGUAS_OOO="${LINGUAS_OOO//_/-}" + 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 + elif use sparc; then + ewarn " Java support on sparc is very flaky, we don't recommend " + ewarn " building openoffice this way." + ebeep 5 + epause 10 + fi + + #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" + +} + +src_unpack() { + + unpack ooo-build-${MY_PV2}.tar.gz + + #Some fixes for our patchset + cd ${S} + epatch ${FILESDIR}/${MY_PV}/removecrystalcheck.diff + + #Use flag checks + use java && echo "--with-jdk-home=${JAVA_HOME} --with-ant-home=${ANT_HOME}" >> ${CONFFILE} || echo "--without-java" >> ${CONFFILE} + + echo "`use_enable binfilter`" >> ${CONFFILE} + echo "`use_with curl system-curl`" >> ${CONFFILE} + echo "`use_with xml2 system-libxml`" >> ${CONFFILE} + + echo "`use_with mozilla system-mozilla`" >> ${CONFFILE} + echo "`use_enable mozilla`" >> ${CONFFILE} + echo "`use_with firefox`" >> ${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 + export JOBS="1" + if [ "${WANT_DISTCC}" == "true" ]; then + export JOBS=`echo "${MAKEOPTS}" | sed -e "s/.*-j\([0-9]\+\).*/\1/"` + fi + + # Make sure gnome-users get gtk-support + export GTKFLAG="`use_enable gtk`" && use gnome && GTKFLAG="--enable-gtk" + + cd ${S} + 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" \ + --with-tag=${SRC} \ + "${GTKFLAG}" \ + `use_enable kde` \ + --disable-access \ + --disable-mono \ + --disable-cairo \ + --disable-post-install-scripts \ + --enable-hunspell \ + --with-system-hunspell \ + --mandir=/usr/share/man \ + || 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" + append-flags "-fno-strict-aliasing" + 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" + make DESTDIR=${D} install || die "Installation failed!" + + # Install corrected Symbol Font + insinto /usr/share/fonts/TTF/ + doins fonts/*.ttf + +} + +pkg_postinst() { + + fdo-mime_desktop_database_update + fdo-mime_mime_database_update + + [ -x /sbin/chpax ] && [ -e /usr/lib/openoffice/program/soffice.bin ] && chpax -zm /usr/lib/openoffice/program/soffice.bin + + 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" +} -- cgit v1.2.3-65-gdbad