From 8746f18f0dd9206086d3520a997f0f5bfc21b070 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 6 Sep 2007 15:00:33 +0000 Subject: [PATCH] * More OpenOffice hackery. Added the magic incantations to get it to install (of course there's no "make install", that would be too easy). Also create some wrapper scripts "oowriter", "oodraw" etc. (I haven't done a full build of this yet, I've hacked on a tmpdir left behind by nix-build -K.) svn path=/nixpkgs/trunk/; revision=9260 --- .../applications/office/openoffice/builder.sh | 58 +++++++++++++++++-- .../office/openoffice/default.nix | 6 ++ pkgs/development/tools/misc/epm/default.nix | 17 ++++++ pkgs/top-level/all-packages.nix | 4 ++ 4 files changed, 80 insertions(+), 5 deletions(-) create mode 100644 pkgs/development/tools/misc/epm/default.nix diff --git a/pkgs/applications/office/openoffice/builder.sh b/pkgs/applications/office/openoffice/builder.sh index edeb0e99760..3234e366b90 100644 --- a/pkgs/applications/office/openoffice/builder.sh +++ b/pkgs/applications/office/openoffice/builder.sh @@ -5,25 +5,73 @@ export NO_HIDS=TRUE export PATH=$icu/sbin:$PATH + preConfigure=preConfigure preConfigure() { for i in \ sysui/desktop/share/makefile.mk \ ; do - substituteInPlace $i --replace /bin/bash /bin/sh + substituteInPlace $i --replace /bin/bash $shell done + SRCDIR= + cd config_office/ } + postConfigure="cd .." + buildPhase=buildPhase buildPhase() { - source LinuxX86Env.Set.sh - ./bootstrap - - dmake + source LinuxX86Env.Set.sh + ./bootstrap + dmake # wait a few hours... } + +wrapSOffice() { + local fn=$1 + local arg=$2 + + # !!! should use makeWrapper for this. + + cat > $out/bin/$fn <