2009-04-20 12:49:35 +00:00
|
|
|
{ stdenv, fetchurl, pam, python, tcsh, libxslt, perl, ArchiveZip
|
|
|
|
, CompressZlib, zlib, libjpeg, expat, pkgconfig, freetype, libwpd
|
2007-07-18 16:45:07 +00:00
|
|
|
, libxml2, db4, sablotron, curl, libXaw, fontconfig, libsndfile, neon
|
2007-09-10 14:03:01 +00:00
|
|
|
, bison, flex, zip, unzip, gtk, libmspack, getopt, file, cairo, which
|
2009-04-20 13:50:07 +00:00
|
|
|
, icu, boost, jdk, ant, libXext, libX11, libXtst, libXi, cups
|
2009-09-29 15:36:33 +00:00
|
|
|
, libXinerama, openssl, gperf, cppunit, GConf, ORBit2
|
2007-09-05 13:56:12 +00:00
|
|
|
}:
|
2005-10-25 18:01:13 +00:00
|
|
|
|
2010-05-18 20:57:00 +00:00
|
|
|
let version = "3.2.0"; in
|
2007-09-06 15:57:34 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2008-08-14 15:09:41 +00:00
|
|
|
name = "openoffice.org-${version}";
|
2005-10-25 18:01:13 +00:00
|
|
|
builder = ./builder.sh;
|
2007-09-05 13:56:12 +00:00
|
|
|
|
2010-05-19 07:31:07 +00:00
|
|
|
downloadRoot = "http://download.services.openoffice.org/files/stable";
|
|
|
|
versionDirs = true;
|
2010-04-06 17:30:51 +00:00
|
|
|
|
2009-04-20 13:50:07 +00:00
|
|
|
src = fetchurl {
|
2010-04-15 11:15:08 +00:00
|
|
|
url = "${downloadRoot}/${if versionDirs then version + "/" else ""}OOo_${version}_src_core.tar.bz2";
|
2010-05-18 20:57:00 +00:00
|
|
|
sha256 = "0jl14rxmvhz86jlhhwqlbr9nfi9p271aknqxada9775qfm6bjjml";
|
2009-04-20 13:50:07 +00:00
|
|
|
};
|
|
|
|
|
2010-05-18 20:57:00 +00:00
|
|
|
patches = [ ./oo.patch ./root-required.patch ];
|
2009-04-20 13:50:07 +00:00
|
|
|
|
|
|
|
src_system = fetchurl {
|
2010-04-15 11:32:38 +00:00
|
|
|
url = "${downloadRoot}/${if versionDirs then version + "/" else ""}OOo_${version}_src_system.tar.bz2";
|
2010-05-18 20:57:00 +00:00
|
|
|
sha256 = "0nihw4iyh9qc188dkyfjr3zvp6ym6i1spm16j0cyh5rgxcrn6ycp";
|
2007-12-03 04:16:33 +00:00
|
|
|
};
|
2007-07-18 16:45:07 +00:00
|
|
|
|
2010-05-18 20:57:00 +00:00
|
|
|
preConfigure = ''
|
|
|
|
PATH=$PATH:${icu}/sbin
|
|
|
|
'';
|
|
|
|
|
2007-09-05 13:56:12 +00: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
|
2010-05-18 20:57:00 +00:00
|
|
|
--with-system-db
|
2007-09-06 15:31:41 +00:00
|
|
|
--with-jdk-home=${jdk}
|
|
|
|
--with-ant-home=${ant}
|
2007-09-05 13:56:12 +00: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
|
2009-04-20 13:50:07 +00:00
|
|
|
--without-system-jars
|
|
|
|
--without-system-hunspell
|
|
|
|
--without-system-altlinuxhyph
|
|
|
|
--without-system-lpsolve
|
2010-04-06 21:46:52 +00:00
|
|
|
--without-system-graphite
|
2007-09-05 13:56:12 +00:00
|
|
|
";
|
|
|
|
|
2007-09-07 07:08:20 +00:00
|
|
|
LD_LIBRARY_PATH = "${libXext}/lib:${libX11}/lib:${libXtst}/lib:${libXi}/lib:${libjpeg}/lib";
|
2007-09-06 15:57:34 +00:00
|
|
|
|
2007-09-06 15:31:41 +00:00
|
|
|
buildInputs = [
|
2009-04-20 12:49:35 +00:00
|
|
|
pam python tcsh libxslt perl ArchiveZip CompressZlib zlib
|
2007-09-05 13:56:12 +00:00
|
|
|
libjpeg expat pkgconfig freetype libwpd libxml2 db4 sablotron curl
|
|
|
|
libXaw fontconfig libsndfile neon bison flex zip unzip gtk libmspack
|
2007-09-06 18:51:10 +00:00
|
|
|
getopt file jdk cairo which icu boost libXext libX11 libXtst libXi
|
2009-09-29 15:36:33 +00:00
|
|
|
cups libXinerama openssl gperf GConf ORBit2
|
2007-09-05 13:56:12 +00:00
|
|
|
];
|
|
|
|
|
2007-09-10 14:03:01 +00:00
|
|
|
inherit icu fontconfig libjpeg jdk cups;
|
2007-09-06 15:00:33 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "OpenOffice.org is a multiplatform and multilingual office suite";
|
|
|
|
homepage = http://www.openoffice.org/;
|
|
|
|
license = "LGPL";
|
2010-04-06 21:46:52 +00:00
|
|
|
maintainers = [ stdenv.lib.maintainers.raskin ];
|
2007-09-06 15:00:33 +00:00
|
|
|
};
|
2005-10-25 18:01:13 +00:00
|
|
|
}
|