2014-08-11 21:39:48 +00:00
|
|
|
{ stdenv, fetchurl, boost, libwpd, libwpg, pkgconfig, zlib, gperf
|
|
|
|
, librevenge, libxml2, icu, perl
|
|
|
|
}:
|
2012-08-29 20:21:13 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-09-03 20:24:43 +00:00
|
|
|
name = "libvisio-0.1.3";
|
2012-08-29 20:21:13 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-08-11 21:39:48 +00:00
|
|
|
url = "http://dev-www.libreoffice.org/src/${name}.tar.bz2";
|
2015-09-03 20:24:43 +00:00
|
|
|
sha256 = "1blgdwxprqkasm2175imcvy647sqv6xyf3k09p0b1i7hlq889wvy";
|
2012-08-29 20:21:13 +00:00
|
|
|
};
|
|
|
|
|
2012-12-28 18:20:09 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2014-08-11 21:39:48 +00:00
|
|
|
buildInputs = [ boost libwpd libwpg zlib gperf librevenge libxml2 icu perl ];
|
2012-08-29 20:21:13 +00:00
|
|
|
|
2015-09-03 20:25:18 +00:00
|
|
|
# Boost 1.59 compatability fix
|
|
|
|
# Attempt removing when updating
|
|
|
|
postPatch = ''
|
|
|
|
sed -i 's,^CPPFLAGS.*,\0 -DBOOST_ERROR_CODE_HEADER_ONLY -DBOOST_SYSTEM_NO_DEPRECATED,' src/lib/Makefile.in
|
|
|
|
'';
|
|
|
|
|
2015-09-03 20:24:43 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--disable-werror"
|
|
|
|
"--disable-tests"
|
|
|
|
];
|
2012-08-29 20:21:13 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A library providing ability to interpret and import visio diagrams into various applications";
|
|
|
|
homepage = http://www.freedesktop.org/wiki/Software/libvisio;
|
2015-04-08 03:52:55 +00:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2012-08-29 20:21:13 +00:00
|
|
|
};
|
|
|
|
}
|