2009-04-20 13:49:35 +01:00
|
|
|
{ stdenv, fetchurl, pam, python, tcsh, libxslt, perl, ArchiveZip
|
|
|
|
, CompressZlib, zlib, libjpeg, expat, pkgconfig, freetype, libwpd
|
2007-07-18 17:45:07 +01:00
|
|
|
, 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
|
2009-04-20 14:50:07 +01:00
|
|
|
, icu, boost, jdk, ant, libXext, libX11, libXtst, libXi, cups
|
2009-09-29 15:16:23 +01:00
|
|
|
, libXinerama, openssl, gperf, cppunit, GConf
|
2007-09-05 14:56:12 +01:00
|
|
|
}:
|
2005-10-25 19:01:13 +01:00
|
|
|
|
2009-09-29 10:22:04 +01:00
|
|
|
let version = "3.1.1"; in
|
2007-09-06 16:57:34 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2008-08-14 16:09:41 +01:00
|
|
|
name = "openoffice.org-${version}";
|
2005-10-25 19:01:13 +01:00
|
|
|
builder = ./builder.sh;
|
2007-09-05 14:56:12 +01:00
|
|
|
|
2009-04-20 14:50:07 +01:00
|
|
|
src = fetchurl {
|
2008-08-14 16:09:41 +01:00
|
|
|
url = "http://openoffice.bouncer.osuosl.org/?product=OpenOffice.org&os=src_bzip&lang=core&version=${version}";
|
|
|
|
name = "OOo_${version}_src_core.tar.bz2";
|
2009-09-29 10:22:04 +01:00
|
|
|
sha256 = "95440f09f8dce616178b86b26af8e543c869d01579207aa68e8474019b59caca";
|
2009-04-20 14:50:07 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [ ./oo.patch ];
|
|
|
|
|
|
|
|
src_system = fetchurl {
|
|
|
|
url = "http://openoffice.bouncer.osuosl.org/?product=OpenOffice.org&os=src_bzip&lang=system&version=${version}";
|
|
|
|
name = "OOo_${version}_src_system.tar.bz2";
|
2009-09-29 10:22:04 +01:00
|
|
|
sha256 = "bb4a440ca91a40cd2b5692abbc19e8fbd3d311525edb266dc5cd9ebc324f2b4a";
|
2007-12-03 04:16:33 +00:00
|
|
|
};
|
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
|
|
|
|
--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
|
2009-04-20 14:50:07 +01:00
|
|
|
--without-system-jars
|
|
|
|
--without-system-hunspell
|
|
|
|
--without-system-altlinuxhyph
|
|
|
|
--without-system-lpsolve
|
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 = [
|
2009-04-20 13:49:35 +01:00
|
|
|
pam python tcsh libxslt perl ArchiveZip CompressZlib zlib
|
2007-09-05 14:56:12 +01:00
|
|
|
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
|
2009-09-29 15:16:23 +01:00
|
|
|
cups libXinerama openssl gperf GConf
|
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
|
|
|
|
|
|
|
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
|
|
|
}
|