2007-07-18 17:45:07 +01:00
|
|
|
{ stdenv, fetchurl, pam, python, tcsh, libxslt, perl, perlArchiveZip
|
|
|
|
, perlCompressZlib, zlib, libjpeg, expat, pkgconfig, freetype, libwpd
|
|
|
|
, libxml2, db4, sablotron, curl, libXaw, fontconfig, libsndfile, neon
|
2007-09-10 15:03:01 +01:00
|
|
|
, bison, flex, zip, unzip, gtk, libmspack, getopt, file, cairo, which
|
|
|
|
, icu, boost, jdk, ant, hsqldb, libXext, libX11, libXtst, libXi, cups
|
2007-09-19 04:15:37 +01:00
|
|
|
, libXinerama
|
2007-09-05 14:56:12 +01:00
|
|
|
}:
|
2005-10-25 19:01:13 +01:00
|
|
|
|
2007-09-06 16:57:34 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2007-09-19 04:15:37 +01:00
|
|
|
name = "openoffice.org-2.3.0";
|
2005-10-25 19:01:13 +01:00
|
|
|
builder = ./builder.sh;
|
2007-09-05 14:56:12 +01:00
|
|
|
|
2007-12-03 04:16:33 +00:00
|
|
|
src =
|
|
|
|
#if (stdenv.system == "i686-linux") then
|
|
|
|
#fetchurl {
|
|
|
|
# stable 2.3.0 is failing - got the tip on the mailinglist to have look
|
|
|
|
# at http://www.openoffice.org/issues/show_bug.cgi?id=74751
|
|
|
|
# now I'm trying snapshot because it should already have this patch
|
|
|
|
#url = http://ftp.ussg.iu.edu/openoffice/contrib/rc/2.3.1rc1/OOo_2.3.1rc1_src_core.tar.bz2;
|
|
|
|
#name = "OOo_2.3.1_src_core.tar.bz2";
|
|
|
|
#sha256 = "";
|
|
|
|
#} else
|
|
|
|
fetchurl {
|
|
|
|
url = http://openoffice.bouncer.osuosl.org/?product=OpenOffice.org&os=src_bzip&lang=core&version=2.3.0;
|
|
|
|
name = "OOo_2.3.0_src_core.tar.bz2";
|
|
|
|
sha256 = "0mkxn9qj3f03rjkmxc4937gr2w429hnxzb9j5j2grdknfga5a1c3";
|
|
|
|
};
|
2007-07-18 17:45:07 +01:00
|
|
|
|
2007-09-05 14:56:12 +01:00
|
|
|
configureFlags = "
|
|
|
|
--with-package-format=native
|
|
|
|
--disable-epm
|
|
|
|
--disable-fontooo
|
|
|
|
--disable-gnome-vfs
|
|
|
|
--disable-gnome-vfs
|
|
|
|
--disable-mathmldtd
|
|
|
|
--disable-mozilla
|
|
|
|
--disable-odk
|
|
|
|
--disable-pasf
|
|
|
|
--disable-qadevooo
|
|
|
|
--with-cairo
|
|
|
|
--with-system-libs
|
|
|
|
--with-system-python
|
|
|
|
--with-system-boost
|
2007-09-06 16:31:41 +01:00
|
|
|
--with-jdk-home=${jdk}
|
|
|
|
--with-ant-home=${ant}
|
2007-09-05 14:56:12 +01:00
|
|
|
--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
|
2007-09-06 16:31:41 +01:00
|
|
|
--without-system-db
|
2007-09-06 17:51:14 +01:00
|
|
|
--with-system-hsqldb
|
2007-09-06 16:57:34 +01:00
|
|
|
--with-hsqldb-jar=${hsqldb}/lib/hsqldb.jar
|
2007-09-05 14:56:12 +01:00
|
|
|
";
|
|
|
|
|
2007-09-07 08:08:20 +01:00
|
|
|
LD_LIBRARY_PATH = "${libXext}/lib:${libX11}/lib:${libXtst}/lib:${libXi}/lib:${libjpeg}/lib";
|
2007-09-06 16:57:34 +01:00
|
|
|
|
2007-09-06 16:31:41 +01:00
|
|
|
buildInputs = [
|
2007-09-05 14:56:12 +01:00
|
|
|
pam python tcsh libxslt perl perlArchiveZip perlCompressZlib zlib
|
|
|
|
libjpeg expat pkgconfig freetype libwpd libxml2 db4 sablotron curl
|
|
|
|
libXaw fontconfig libsndfile neon bison flex zip unzip gtk libmspack
|
2007-09-06 19:51:10 +01:00
|
|
|
getopt file jdk cairo which icu boost libXext libX11 libXtst libXi
|
2007-09-19 04:15:37 +01:00
|
|
|
cups libXinerama
|
2007-09-05 14:56:12 +01:00
|
|
|
];
|
|
|
|
|
2007-09-10 15:03:01 +01:00
|
|
|
inherit icu fontconfig libjpeg jdk cups;
|
2007-09-06 16:00:33 +01:00
|
|
|
|
2007-12-03 04:16:33 +00:00
|
|
|
# libawt_problem see http://www.openoffice.org/issues/show_bug.cgi?id=74751
|
|
|
|
# Can be removed in newer releases than 2.3.0
|
|
|
|
patch_file = ./libawt_problem;
|
|
|
|
patches = [./ooo-libtextcat.patch ];
|
|
|
|
patchPhase = "
|
|
|
|
patch config_office/set_soenv.in \$patch_file
|
|
|
|
unset patchPhase; patchPhase;
|
|
|
|
";
|
2007-09-19 04:15:37 +01:00
|
|
|
|
2007-09-06 16:00:33 +01:00
|
|
|
meta = {
|
|
|
|
description = "OpenOffice.org is a multiplatform and multilingual office suite";
|
|
|
|
homepage = http://www.openoffice.org/;
|
|
|
|
license = "LGPL";
|
|
|
|
};
|
2005-10-25 19:01:13 +01:00
|
|
|
}
|