ebuild cleanup
authorAndreas Proschofsky <suka@gentoo.org>
Mon, 17 Jan 2005 20:43:25 +0000 (20:43 +0000)
committerAndreas Proschofsky <suka@gentoo.org>
Mon, 17 Jan 2005 20:43:25 +0000 (20:43 +0000)
Package-Manager: portage-2.0.51-r13

app-office/openoffice-ximian/ChangeLog
app-office/openoffice-ximian/Manifest
app-office/openoffice-ximian/files/1.1.3/gcc-instlib.patch [new file with mode: 0644]
app-office/openoffice-ximian/openoffice-ximian-1.3.7.ebuild

index 65b108ff7e76d6d2181d79977470b5b0c025de0f..a8671d54b89da0b0311a7c642db71d6ff661d8ab 100644 (file)
@@ -1,6 +1,11 @@
 # ChangeLog for app-office/openoffice-ximian
 # Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-office/openoffice-ximian/ChangeLog,v 1.95 2005/01/17 14:57:53 suka Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-office/openoffice-ximian/ChangeLog,v 1.96 2005/01/17 20:43:25 suka Exp $
+
+  17 Jan 2005; Andreas Proschofsky <suka@gentoo.org>
+  +files/1.1.3/gcc-instlib.patch, openoffice-ximian-1.3.7.ebuild:
+  Mostly ebuild cleanup and sync with vanilla OOo, remove some useless stuff
+  and add another patch for gccinstlib
 
   17 Jan 2005; Andreas Proschofsky <suka@gentoo.org>
   openoffice-ximian-1.3.7.ebuild:
index dd98cde91a1b50151f470268fdb6bf120b12a1e1..a718445104dad59cb642b2895d04c41394aa914f 100644 (file)
@@ -1,7 +1,7 @@
 MD5 f881d3e35a8d3a9c27e1d29984b9d3fd openoffice-ximian-1.3.6.ebuild 16873
 MD5 26f1b4de2d99cba28eb2b09825c69475 openoffice-ximian-1.3.5-r1.ebuild 16129
-MD5 fe2f89a142b83705c437cf77504f71e0 openoffice-ximian-1.3.7.ebuild 17378
-MD5 bc8b2c8418d8815ba19eb20911a07124 ChangeLog 23531
+MD5 d97c6ae594692c16756c4bdaf210c10d openoffice-ximian-1.3.7.ebuild 17295
+MD5 91a1e484df4e7f1f1ab930e68d7e3b8c ChangeLog 23767
 MD5 f3942f82433bf5ae16461240cbcc4984 metadata.xml 300
 MD5 b7a3ab0336f7e514b6641e5871c1bbbb files/digest-openoffice-ximian-1.3.5-r1 437
 MD5 2595967ac130a541e50bffc75e105041 files/digest-openoffice-ximian-1.3.6 502
@@ -16,6 +16,7 @@ MD5 f9578015a434c209259917e9df3c0b27 files/1.1.3/gcc34_2.patch.bz2 33535
 MD5 04621a43bfeb4fac8077a770a8eba7e3 files/1.1.3/gcc34.patch.bz2 33661
 MD5 a5ef896f6a59b91fa3367c92de077769 files/1.1.3/gentoo-1.3.6.patch 597
 MD5 6ecbfeab440a03f031dbfa0631404aa0 files/1.1.3/ximian-openoffice.applications 980
+MD5 ffcbf659ca6f54e8e15401cced99af77 files/1.1.3/gcc-instlib.patch 393
 MD5 9abefd659e5b06ff9d9f515f312cdc4b files/1.1.3/gentoo-splash.diff 890
 MD5 24035033f41d743378e16582c2e51469 files/1.1.3/javafix.patch 1382
 MD5 d1a499cfa276614323b547e013d5c6a0 files/1.1.3/ximian-openoffice.keys 6298
diff --git a/app-office/openoffice-ximian/files/1.1.3/gcc-instlib.patch b/app-office/openoffice-ximian/files/1.1.3/gcc-instlib.patch
new file mode 100644 (file)
index 0000000..99e424a
--- /dev/null
@@ -0,0 +1,12 @@
+diff -urN solenv/bin/gccinstlib.pl oo_1.1.2_src/solenv/bin/gccinstlib.pl
+--- solenv/bin/gccinstlib.pl   2004-03-16 11:15:42.000000000 +0100
++++ solenv/bin/gccinstlib.pl   2004-09-27 10:36:02.338394960 +0200
+@@ -63,7 +63,7 @@
+ #
+ #*************************************************************************
+ 
+-$ENV{'LC_MESSAGES'} = 'C';
++$ENV{'LC_ALL'} = 'C';
+ 
+ %SearchDirs = GetGccSearchDirs ();
+ 
index 950b587d09aab2e4f0b2bfdb31eea9b25a9626f4..064d82207deb5dc5fd500abc17e29e1ec5ec5b87 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2005 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-office/openoffice-ximian/openoffice-ximian-1.3.7.ebuild,v 1.7 2005/01/17 14:57:53 suka Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-office/openoffice-ximian/openoffice-ximian-1.3.7.ebuild,v 1.8 2005/01/17 20:43:25 suka Exp $
 
 # Notes:
 #
@@ -37,6 +37,7 @@ INSTDIR="/opt/Ximian-OpenOffice"
 PATCHDIR="${WORKDIR}/ooo-build-${PV}"
 S="${WORKDIR}/OOo_${OO_VER}_src"
 DESCRIPTION="Ximian-ized version of OpenOffice.org, a full office productivity suite."
+
 SRC_URI="mirror://openoffice/stable/${OO_VER}/OOo_${OO_VER}-1_source.tar.gz
        http://www.stlport.org/archive/STLport-4.6.2.tar.gz
        http://ooo.ximian.com/packages/${PATCHLEVEL}/ooo-build-${PV}.tar.gz
@@ -56,7 +57,6 @@ RDEPEND="!app-office/openoffice-ximian-bin
        virtual/x11
        virtual/libc
        virtual/lpr
-       !=sys-libs/glibc-2.3.1*
        >=dev-lang/perl-5.0
        gnome? ( >=x11-libs/gtk+-2.0
                >=gnome-base/gnome-vfs-2.0
@@ -73,7 +73,7 @@ RDEPEND="!app-office/openoffice-ximian-bin
        app-arch/zip
        app-arch/unzip
        dev-libs/expat
-       java? ( >=virtual/jdk-1.4.1 )
+       java? ( >=virtual/jre-1.4.1 )
        ppc? ( >=sys-libs/glibc-2.2.5-r7
        >=sys-devel/gcc-3.2.1 )"
 
@@ -86,6 +86,7 @@ DEPEND="${RDEPEND}
        zlib? ( sys-libs/zlib )
        sys-libs/pam
        !dev-util/dmake
+       java? ( >=virtual/jdk-1.4.1 )
        !java? ( dev-libs/libxslt )"
 
 pkg_setup() {
@@ -103,10 +104,6 @@ pkg_setup() {
                fi
        fi
 
-       ewarn " This version should now also compile fine with gcc 3.4.x "
-       ewarn " If you encounter problems in relation to this, please report "
-       ewarn " them to http://bugs.gentoo.org "
-       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  "
@@ -239,18 +236,22 @@ src_unpack() {
        #Fix java problems in 1.3.7
        epatch ${FILESDIR}/${OO_VER}/nojvmfwk-fix.patch
 
-       #Still needed: The STLport patch
        cd ${S}
+
+       #Still needed: The STLport patch
        cp ${DISTDIR}/STLport-4.6.2.tar.gz ${S}/stlport/download || die
        epatch ${FILESDIR}/${OO_VER}/newstlportfix.patch
 
-       if use ppc; then
-               epatch ${FILESDIR}/${OO_VER}/STLport-vector.patch
-       fi
+       epatch ${FILESDIR}/${OO_VER}/gcc-instlib.patch
 
        #Another java problem
        epatch ${FILESDIR}/${OO_VER}/javafix.patch
 
+       # Workaround for bug #73940, may break debug use flag on ppc
+       if use ppc; then
+               epatch ${FILESDIR}/${OO_VER}/STLport-vector.patch
+       fi
+
        #Add our own splash screen
        epatch ${FILESDIR}/${OO_VER}/gentoo-splash.diff
 
@@ -328,7 +329,6 @@ src_compile() {
 
        addpredict /bin
        addpredict /root/.gconfd
-       local buildcmd=""
 
        # dmake security patch
        cd ${S}/dmake
@@ -361,10 +361,15 @@ src_compile() {
        cd ${S}/config_office
        rm -f config.cache || die
        autoconf || die
+
+       if [ "LANGNAME" != "ENUS" ]; then
+               LANGNAME="${LANGNAME},ENUS"
+       fi
+
        MYCONF="${MYCONF} --enable-libart \
                --enable-libsn \
                --enable-crashdump=no \
-               --with-lang=ENUS,${LANGNAME} \
+               --with-lang=${LANGNAME} \
                --without-fonts \
                --disable-rpath \
                --enable-fontconfig \
@@ -517,9 +522,6 @@ src_install() {
        find ${D}${INSTDIR}/ -type f -exec chmod a+r {} \;
        chmod a+x ${D}${INSTDIR}/share/config/webcast/*.pl
 
-       # Fix symlinks
-       dosym program/setup ${INSTDIR}/setup
-
        # Install user autoresponse file
        insinto /etc/ximian-openoffice
        sed -e "s|<pv>|${OO_VER}|g" ${T}/rsfile-local > ${T}/autoresponse-${OO_VER}.conf
@@ -532,7 +534,7 @@ src_install() {
        doexe ${T}/xooffice
 
        # Component symlinks
-       for app in calc draw html impress math writer setup; do
+       for app in calc draw impress math web writer setup; do
                dosym xooffice /usr/bin/xoo${app}
        done
 
@@ -590,5 +592,5 @@ pkg_postinst() {
        einfo
        einfo " Also, for individual components, you can use any of:"
        einfo
-       einfo " xoocalc, xoodraw, xoohtml, xooimpress, xoomath or xoowriter"
+       einfo " xoocalc, xoodraw, xooimpress, xoomath, xooweb or xoowriter"
 }