mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 20:34:52 +03:00
openoffice: Remove
It's superseded by LibreOffice and doesn't build anymore.
This commit is contained in:
parent
97c5ab3a6d
commit
6dba65b51f
@ -1,105 +0,0 @@
|
||||
source $stdenv/setup
|
||||
|
||||
export nodep=TRUE
|
||||
export NO_HIDS=TRUE
|
||||
|
||||
export PATH=$icu/sbin:$PATH
|
||||
|
||||
postUnpack() {
|
||||
tar xvjf $src_system
|
||||
}
|
||||
|
||||
preConfigure() {
|
||||
./configure --help
|
||||
|
||||
for i in sysui/desktop/share/makefile.mk; do
|
||||
substituteInPlace $i --replace /bin/bash $shell
|
||||
done
|
||||
|
||||
SRCDIR=
|
||||
|
||||
sed -e '/CURL_NO_OLDIES/d' -i ucb/source/ucp/ftp/makefile.mk
|
||||
}
|
||||
|
||||
postConfigure() {
|
||||
for i in LinuxX86*Env.Set; do
|
||||
substituteInPlace $i --replace /usr /no-such-path
|
||||
done
|
||||
substituteInPlace solenv/inc/libs.mk \
|
||||
--replace /usr/lib/libjpeg.so $libjpeg/lib/libjpeg.so \
|
||||
--replace /usr/lib64/libjpeg.so $libjpeg/lib/libjpeg.so
|
||||
}
|
||||
|
||||
buildPhase() {
|
||||
source LinuxX86*Env.Set.sh
|
||||
./bootstrap
|
||||
# bootstrap defines the alias 'build', that mostly runs this perl script:
|
||||
(cd instsetoo_native; perl ../solenv/bin/build.pl --all) # wait a few hours... add -P4 for quadcores
|
||||
}
|
||||
|
||||
wrapSOffice() {
|
||||
local fn=$1
|
||||
local arg=$2
|
||||
|
||||
# !!! should use makeWrapper for this.
|
||||
|
||||
cat > $out/bin/$fn <<EOF
|
||||
#! $shell
|
||||
# Add fontconfig to the library search path; apparently OpenOffice
|
||||
# looks for it at runtime.
|
||||
export LD_LIBRARY_PATH=\$LD_LIBRARY_PATH\${LD_LIBRARY_PATH:+:}$fontconfig/lib:$libjpeg/lib:$cups/lib
|
||||
export JAVA_HOME=$jdk
|
||||
exec $ooFiles/openoffice.org3/program/soffice $arg "\$@"
|
||||
EOF
|
||||
chmod +x $out/bin/$fn
|
||||
}
|
||||
|
||||
installPhase() {
|
||||
ooFiles=$out/lib/openoffice
|
||||
|
||||
# This was all borrowed from ooo-build-2.2.1's bin/ooinstall.
|
||||
# This needs the ./bootstrap having run in the buildPhase to get some env vars.
|
||||
eval $(grep 'BUILD\|LAST_MINOR' $SOLARENV/inc/minor.mk)
|
||||
export PYTHONPATH=$SOLARVERSION/$INPATH/lib:$SRC_ROOT/instsetoo_native/$INPATH/bin:$PYTHONPATH
|
||||
export OUT=../$INPATH
|
||||
export LOCAL_OUT=../$INPATH
|
||||
export LOCAL_COMMON_OUT=../$INPATH
|
||||
|
||||
# Do the actual installation into $out.
|
||||
(cd $SRC_ROOT/instsetoo_native/util && perl -w $SOLARENV/bin/make_installer.pl \
|
||||
-f openoffice.lst -l en-US -p OpenOffice \
|
||||
-buildid $BUILD -simple $ooFiles)
|
||||
|
||||
mkdir -p $out/bin
|
||||
for i in soffice ooffice; do wrapSOffice $i; done
|
||||
|
||||
# Create some wrappers to start individual OpenOffice components.
|
||||
for i in writer calc draw impress base math web; do wrapSOffice oo$i -$i; done
|
||||
|
||||
# Create symlinks to desktop files, so that openoffice.org apps can be picked from
|
||||
# the application menu in KDE and GNOME
|
||||
mkdir -p $out/share
|
||||
ln -s $out/lib/openoffice/openoffice.org3/share/xdg $out/share/applications
|
||||
|
||||
# Apply a minor correction to the *.desktop files in order to correctly address the icons
|
||||
# The openoffice- prefix should be removed from the icon identifiers
|
||||
for appl in $out/share/applications/*.desktop
|
||||
do
|
||||
chmod 644 $appl # What's wrong with the file permissions?
|
||||
sed -i '/Icon/d' $appl
|
||||
echo "Icon=$(echo $(basename $appl) | sed 's/.desktop//')" >> $appl
|
||||
done
|
||||
|
||||
# Copy icons so that the menu items in KDE and GNOME will look much nicer
|
||||
(cd $SRC_ROOT/sysui/desktop/icons
|
||||
install -v -d $out/share/icons/{hicolor,locolor} -m 755
|
||||
cp -rv hicolor/*x* $out/share/icons/hicolor
|
||||
cp -rv locolor/*x* $out/share/icons/locolor
|
||||
)
|
||||
|
||||
# The desktop files expect a openoffice.org3 executable in the PATH, which is a symlink to soffice
|
||||
ln -s $out/bin/soffice $out/bin/openoffice.org3
|
||||
}
|
||||
|
||||
genericBuild
|
||||
|
@ -1,105 +0,0 @@
|
||||
{ stdenv, fetchurl, pam, python, tcsh, libxslt, perl, ArchiveZip
|
||||
, CompressZlib, zlib, libjpeg, expat, pkgconfig, freetype, libwpd
|
||||
, libxml2, db4, sablotron, curl, libXaw, fontconfig, libsndfile, neon
|
||||
, bison, flex, zip, unzip, gtk, libmspack, getopt, file, cairo, which
|
||||
, icu, boost, jdk, ant, libXext, libX11, libXtst, libXi, cups
|
||||
, libXinerama, openssl, gperf, cppunit, GConf, ORBit2
|
||||
}:
|
||||
|
||||
let version = "3.2.1"; in
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "openoffice.org-${version}";
|
||||
builder = ./builder.sh;
|
||||
|
||||
downloadRoot = "http://openoffice.mirrorbrain.org/files/stable";
|
||||
versionDirs = true;
|
||||
|
||||
src = fetchurl {
|
||||
url = "${downloadRoot}/${if versionDirs then version + "/" else ""}OOo_${version}_src_core.tar.bz2";
|
||||
sha256 = "0gj2hinhnzkazh44k1an05x5cj7n6721f2grqrkjh31cm38r9p6i";
|
||||
};
|
||||
|
||||
patches = [ ./oo.patch ./root-required.patch ./xlib.patch ];
|
||||
|
||||
postPatch =
|
||||
/* Compiling with GCC 4.5 fails:
|
||||
|
||||
Compiling: cppu/source/AffineBridge/AffineBridge.cxx
|
||||
[...]
|
||||
../../inc/uno/lbnames.h:67:2: error: #error "Supported gcc majors are 2 , 3 and 4 <= 4.4. Unsupported gcc major version."
|
||||
|
||||
However, we can't compile with GCC 4.4 because then we'd end up with
|
||||
two different versions of libstdc++ (because the deps are compiled
|
||||
with 4.5), which isn't supported (link time error.)
|
||||
|
||||
Thus, force compilation with 4.5 and hope for the best. */
|
||||
'' sed -i "cppu/inc/uno/lbnames.h" \
|
||||
-e 's/#[[:blank:]]*error "Supported.*$//g'
|
||||
'';
|
||||
|
||||
src_system = fetchurl {
|
||||
url = "${downloadRoot}/${if versionDirs then version + "/" else ""}OOo_${version}_src_system.tar.bz2";
|
||||
sha256 = "0giy3sza64ij19w7b06rxcrkrb5kq2fvkz486vh3mv08s8xa8zfc";
|
||||
};
|
||||
|
||||
preConfigure = ''
|
||||
PATH=$PATH:${icu}/sbin
|
||||
'';
|
||||
|
||||
configureFlags = "
|
||||
--with-package-format=native
|
||||
--disable-epm
|
||||
--disable-fontooo
|
||||
--disable-gnome-vfs
|
||||
--disable-gnome-vfs
|
||||
--disable-mathmldtd
|
||||
--disable-mozilla
|
||||
--disable-odk
|
||||
--disable-pasf
|
||||
--with-cairo
|
||||
--with-system-libs
|
||||
--with-system-python
|
||||
--with-system-boost
|
||||
--with-system-db
|
||||
--with-jdk-home=${jdk}
|
||||
--with-ant-home=${ant}
|
||||
--without-afms
|
||||
--without-dict
|
||||
--without-fonts
|
||||
--without-myspell-dicts
|
||||
--without-nas
|
||||
--without-ppds
|
||||
--without-system-agg
|
||||
--without-system-beanshell
|
||||
--without-system-hsqldb
|
||||
--without-system-xalan
|
||||
--without-system-xerces
|
||||
--without-system-xml-apis
|
||||
--without-system-xt
|
||||
--without-system-jars
|
||||
--without-system-hunspell
|
||||
--without-system-altlinuxhyph
|
||||
--without-system-lpsolve
|
||||
--without-system-graphite
|
||||
";
|
||||
|
||||
LD_LIBRARY_PATH = "${libXext}/lib:${libX11}/lib:${libXtst}/lib:${libXi}/lib:${libjpeg}/lib";
|
||||
|
||||
buildInputs = [
|
||||
pam python tcsh libxslt perl ArchiveZip CompressZlib zlib
|
||||
libjpeg expat pkgconfig freetype libwpd libxml2 db4 sablotron curl
|
||||
libXaw fontconfig libsndfile neon bison flex zip unzip gtk libmspack
|
||||
getopt file jdk cairo which icu boost libXext libX11 libXtst libXi
|
||||
cups libXinerama openssl gperf GConf ORBit2
|
||||
];
|
||||
|
||||
inherit icu fontconfig libjpeg jdk cups;
|
||||
|
||||
meta = {
|
||||
description = "OpenOffice.org is a multiplatform and multilingual office suite";
|
||||
homepage = http://www.openoffice.org/;
|
||||
license = "LGPL";
|
||||
maintainers = [ stdenv.lib.maintainers.raskin ];
|
||||
};
|
||||
}
|
@ -1,72 +0,0 @@
|
||||
diff --git a/libtextcat/makefile.mk b/libtextcat/makefile.mk
|
||||
index 74c64bf..fbf8d21 100644
|
||||
--- a/libtextcat/makefile.mk
|
||||
+++ b/libtextcat/makefile.mk
|
||||
@@ -57,7 +57,7 @@ ADDITIONAL_FILES= \
|
||||
#CONFIGURE_DIR=$(BUILD_DIR)
|
||||
|
||||
#relative to CONFIGURE_DIR
|
||||
-CONFIGURE_ACTION=configure CFLAGS="$(ARCH_FLAGS) $(EXTRA_CFLAGS)"
|
||||
+CONFIGURE_ACTION=configure CFLAGS="$(ARCH_FLAGS) $(EXTRA_CFLAGS)" --prefix=$(TMPDIR)
|
||||
CONFIGURE_FLAGS=$(eq,$(OS),MACOSX CPPFLAGS="$(EXTRA_CDEFS)" $(NULL))
|
||||
|
||||
BUILD_ACTION=make
|
||||
diff --git a/redland/raptor/makefile.mk b/redland/raptor/makefile.mk
|
||||
index 0d92de9..aae3b4f 100644
|
||||
--- a/redland/raptor/makefile.mk
|
||||
+++ b/redland/raptor/makefile.mk
|
||||
@@ -130,7 +130,7 @@ XSLTLIB!:=$(XSLTLIB) # expand dmake variables for xslt-config
|
||||
CONFIGURE_DIR=
|
||||
CONFIGURE_ACTION=.$/configure
|
||||
# do not enable grddl parser (#i93768#)
|
||||
-CONFIGURE_FLAGS=--disable-static --disable-gtk-doc --with-threads --with-openssl-digests --with-xml-parser=libxml --enable-parsers="rdfxml ntriples turtle trig guess rss-tag-soup" --without-bdb --without-sqlite --without-mysql --without-postgresql --without-threestore --with-regex-library=posix --with-decimal=none --with-www=xml
|
||||
+CONFIGURE_FLAGS=--disable-static --disable-gtk-doc --with-threads --with-openssl-digests --with-xml-parser=libxml --enable-parsers="rdfxml ntriples turtle trig guess rss-tag-soup" --without-bdb --without-sqlite --without-mysql --without-postgresql --without-threestore --with-regex-library=posix --with-decimal=none --with-www=xml --prefix=$(TMPDIR)
|
||||
BUILD_ACTION=$(GNUMAKE)
|
||||
BUILD_FLAGS+= -j$(EXTMAXPROCESS)
|
||||
BUILD_DIR=$(CONFIGURE_DIR)
|
||||
diff --git a/redland/rasqal/makefile.mk b/redland/rasqal/makefile.mk
|
||||
index fba6460..fc70419 100644
|
||||
--- a/redland/rasqal/makefile.mk
|
||||
+++ b/redland/rasqal/makefile.mk
|
||||
@@ -126,7 +126,7 @@ XSLTLIB!:=$(XSLTLIB) # expand dmake variables for xslt-config
|
||||
|
||||
CONFIGURE_DIR=
|
||||
CONFIGURE_ACTION=.$/configure PATH="..$/..$/..$/bin:$$PATH"
|
||||
-CONFIGURE_FLAGS=--disable-static --disable-gtk-doc --with-threads --with-openssl-digests --with-xml-parser=libxml --without-bdb --without-sqlite --without-mysql --without-postgresql --without-threestore --with-regex-library=posix --with-decimal=none --with-www=xml
|
||||
+CONFIGURE_FLAGS=--disable-static --disable-gtk-doc --with-threads --with-openssl-digests --with-xml-parser=libxml --without-bdb --without-sqlite --without-mysql --without-postgresql --without-threestore --with-regex-library=posix --with-decimal=none --with-www=xml --prefix=$(TMPDIR)
|
||||
BUILD_ACTION=$(AUGMENT_LIBRARY_PATH) $(GNUMAKE)
|
||||
BUILD_FLAGS+= -j$(EXTMAXPROCESS)
|
||||
BUILD_DIR=$(CONFIGURE_DIR)
|
||||
diff --git a/redland/redland/makefile.mk b/redland/redland/makefile.mk
|
||||
index 710d7d6..dd60f0d 100644
|
||||
--- a/redland/redland/makefile.mk
|
||||
+++ b/redland/redland/makefile.mk
|
||||
@@ -132,7 +132,7 @@ XSLTLIB!:=$(XSLTLIB) # expand dmake variables for xslt-config
|
||||
|
||||
CONFIGURE_DIR=
|
||||
CONFIGURE_ACTION=.$/configure PATH="..$/..$/..$/bin:$$PATH"
|
||||
-CONFIGURE_FLAGS=--disable-static --disable-gtk-doc --with-threads --with-openssl-digests --with-xml-parser=libxml --with-raptor=system --with-rasqual=system --without-bdb --without-sqlite --without-mysql --without-postgresql --without-threestore --with-regex-library=posix --with-decimal=none --with-www=xml
|
||||
+CONFIGURE_FLAGS=--disable-static --disable-gtk-doc --with-threads --with-openssl-digests --with-xml-parser=libxml --with-raptor=system --with-rasqual=system --without-bdb --without-sqlite --without-mysql --without-postgresql --without-threestore --with-regex-library=posix --with-decimal=none --with-www=xml --prefix=$(TMPDIR)
|
||||
BUILD_ACTION=$(AUGMENT_LIBRARY_PATH) $(GNUMAKE)
|
||||
BUILD_FLAGS+= -j$(EXTMAXPROCESS)
|
||||
BUILD_DIR=$(CONFIGURE_DIR)
|
||||
diff --git a/hunspell/hunspell-1.2.8.patch b/hunspell/hunspell-1.2.8.patch
|
||||
index 37b7964..e6fd962 100644
|
||||
--- a/hunspell/hunspell-1.2.8.patch
|
||||
+++ b/hunspell/hunspell-1.2.8.patch
|
||||
@@ -619,3 +619,15 @@
|
||||
p++;
|
||||
}
|
||||
if (i > 0 && buf[i - 1] == '\n') {
|
||||
+diff --git a/hunspell/unxlngi6.pro/misc/build/hunspell-1.2.8/tests/test.sh b/hunspell/unxlngi6.pro/misc/build/hunspell-1.1.12/tests/test.sh
|
||||
+index 90080f6..f069517 100755
|
||||
+--- a/hunspell/unxlngi6.pro/misc/build/hunspell-1.2.8/tests/test.sh
|
||||
++++ b/hunspell/unxlngi6.pro/misc/build/hunspell-1.2.8/tests/test.sh
|
||||
+--- misc/hunspell-1.2.8/tests/test.sh Sep 4 01:25:35 2007
|
||||
++++ misc/build/hunspell-1.2.8/tests/test.sh Jun 18 11:53:11 2008
|
||||
+@@ -1,4 +1,4 @@
|
||||
+-#!/bin/bash
|
||||
++#!/bin/sh
|
||||
+ export LC_ALL="C"
|
||||
+
|
||||
+ function check_valgrind_log () {
|
@ -1,25 +0,0 @@
|
||||
As nix chroot environment does not have the 'root' as owner, we have to disable
|
||||
the "owner=root" tar parameters when doing these tar files.
|
||||
They are built at openoffice build time.
|
||||
diff --git a/sysui/desktop/slackware/makefile.mk b/sysui/desktop/slackware/makefile.mk
|
||||
index 3342aca..49679b1 100644
|
||||
--- a/sysui/desktop/slackware/makefile.mk
|
||||
+++ b/sysui/desktop/slackware/makefile.mk
|
||||
@@ -100,7 +100,7 @@ $(MISC)/$(TARGET)/usr/share/applications/ :
|
||||
|
||||
$(MISC)/$(TARGET)/empty.tar :
|
||||
@$(MKDIRHIER) $(@:d)/empty
|
||||
- @tar -C $(MISC)/$(TARGET)/empty --owner=root --group=root --same-owner -cf $@ .
|
||||
+ @tar -C $(MISC)/$(TARGET)/empty -cf $@ .
|
||||
|
||||
|
||||
# --- packaging ---------------------------------------------------
|
||||
@@ -112,7 +112,7 @@ $(MENUFILES) : $(MISC)/$(TARGET)/empty.tar
|
||||
-$(RM) -r $(MISC)$/$(@:b)
|
||||
dmake $(MISC)$/$(@:b)$/usr/share/applications $(MISC)$/$(@:b)$/install$/slack-desc $(MISC)$/$(@:b)$/install$/doinst.sh
|
||||
@$(COPY) $(MISC)/$(TARGET)$/empty.tar $@.tmp
|
||||
- @tar -C $(MISC)/$(@:b) --owner=root --group=root --same-owner --exclude application.flag -rf $@.tmp install usr opt
|
||||
+ @tar -C $(MISC)/$(@:b) --exclude application.flag -rf $@.tmp install usr opt
|
||||
@gzip < $@.tmp > $@
|
||||
@$(RM) $@.tmp
|
||||
$(RM) -r $(MISC)$/$(@:b)
|
@ -1,22 +0,0 @@
|
||||
https://bugs.freedesktop.org/show_bug.cgi?id=31322
|
||||
|
||||
diff -rc OOO320_m19-orig//vcl/unx/inc/dtint.hxx OOO320_m19//vcl/unx/inc/dtint.hxx
|
||||
*** OOO320_m19-orig//vcl/unx/inc/dtint.hxx 2010-05-26 20:34:28.000000000 +0200
|
||||
--- OOO320_m19//vcl/unx/inc/dtint.hxx 2011-02-15 17:04:32.134813676 +0100
|
||||
***************
|
||||
*** 36,42 ****
|
||||
class SalDisplay;
|
||||
class AllSettings;
|
||||
|
||||
! #ifndef _XLIB_H_
|
||||
// forwards from X
|
||||
struct Display;
|
||||
struct XEvent;
|
||||
--- 36,42 ----
|
||||
class SalDisplay;
|
||||
class AllSettings;
|
||||
|
||||
! #if !defined(_XLIB_H_) && !defined(_X11_XLIB_H_)
|
||||
// forwards from X
|
||||
struct Display;
|
||||
struct XEvent;
|
@ -7613,14 +7613,6 @@ let
|
||||
|
||||
openjump = callPackage ../applications/misc/openjump { };
|
||||
|
||||
openoffice = callPackage ../applications/office/openoffice {
|
||||
inherit (perlPackages) ArchiveZip CompressZlib;
|
||||
inherit (gnome) GConf ORBit2;
|
||||
neon = neon029;
|
||||
libwpd = libwpd_08;
|
||||
zip = zip.override { enableNLS = false; };
|
||||
};
|
||||
|
||||
openscad = callPackage ../applications/graphics/openscad {};
|
||||
|
||||
opera = callPackage ../applications/networking/browsers/opera {
|
||||
|
@ -10,7 +10,6 @@ let
|
||||
coreutils.hostDrv = nativePlatforms;
|
||||
dropbear.hostDrv = nativePlatforms;
|
||||
tigervnc.hostDrv = nativePlatforms;
|
||||
#openoffice.hostDrv = nativePlatforms;
|
||||
wxGTK.hostDrv = nativePlatforms;
|
||||
#firefox = nativePlatforms;
|
||||
xorg = {
|
||||
|
@ -1362,7 +1362,6 @@ in
|
||||
openfire = { type = "job"; systems = ["x86_64-linux"]; schedulingPriority = 4; };
|
||||
openlierox = { type = "job"; systems = ["x86_64-linux"]; schedulingPriority = 4; };
|
||||
openobex = { type = "job"; systems = ["x86_64-linux"]; schedulingPriority = 4; };
|
||||
openoffice = { type = "job"; systems = ["x86_64-linux"]; schedulingPriority = 4; };
|
||||
opensc = { type = "job"; systems = ["x86_64-linux"]; schedulingPriority = 4; };
|
||||
openscad = { type = "job"; systems = ["x86_64-linux"]; schedulingPriority = 4; };
|
||||
opensc_dnie_wrapper = { type = "job"; systems = ["x86_64-linux"]; schedulingPriority = 4; };
|
||||
|
@ -210,7 +210,6 @@ with (import ./release-lib.nix);
|
||||
ntp = linux;
|
||||
ocaml = linux;
|
||||
octave = linux;
|
||||
openoffice = linux;
|
||||
openssh = linux;
|
||||
openssl = all;
|
||||
pam_console = linux;
|
||||
|
Loading…
Reference in New Issue
Block a user