2010-07-28 16:35:01 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, gtk, libglade, libgnomecanvas, fribidi
|
2011-08-08 13:11:46 +01:00
|
|
|
, libpng, popt, libgsf, enchant, wv, librsvg, bzip2, libjpeg
|
2006-07-08 13:44:00 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2010-06-26 12:13:14 +01:00
|
|
|
name = "abiword-2.8.6";
|
2012-12-12 05:02:05 +00:00
|
|
|
|
2006-07-08 13:44:00 +01:00
|
|
|
src = fetchurl {
|
2010-06-26 12:13:14 +01:00
|
|
|
url = http://www.abisource.org/downloads/abiword/2.8.6/source/abiword-2.8.6.tar.gz;
|
|
|
|
sha256 = "059sd2apxdmcacc4pll880i7vm18h0kyjsq299m1mz3c7ak8k46r";
|
2006-07-08 13:44:00 +01:00
|
|
|
};
|
|
|
|
|
2012-12-12 05:02:05 +00:00
|
|
|
prePatch = ''
|
|
|
|
sed -i -e '/#include <glib\/gerror.h>/d' src/af/util/xp/ut_go_file.h
|
|
|
|
sed -i -e 's|#include <glib/gmacros.h>|#include <glib.h>|' \
|
|
|
|
goffice-bits/goffice/app/goffice-app.h
|
|
|
|
sed -i -e 's/ptr->jmpbuf/jmpbuf(png_ptr)/' src/af/util/xp/ut_png.cpp
|
|
|
|
sed -i -e 's/\(m_pPNG\)->\(jmpbuf\)/png_\2(\1)/' \
|
|
|
|
src/wp/impexp/gtk/ie_impGraphic_GdkPixbuf.cpp
|
|
|
|
sed -i -e 's/--no-undefined //' src/Makefile*
|
|
|
|
'';
|
|
|
|
|
2012-12-12 05:02:50 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2010-07-28 16:35:01 +01:00
|
|
|
buildInputs =
|
|
|
|
[ pkgconfig gtk libglade librsvg bzip2 libgnomecanvas fribidi libpng popt
|
2011-08-08 13:11:46 +01:00
|
|
|
libgsf enchant wv libjpeg
|
2010-07-28 16:35:01 +01:00
|
|
|
];
|
2013-10-05 15:22:46 +01:00
|
|
|
|
2014-06-23 11:54:46 +01:00
|
|
|
meta = with stdenv.lib; {
|
2014-06-23 11:44:21 +01:00
|
|
|
description = "Word processing program, similar to Microsoft Word";
|
2014-06-23 11:54:46 +01:00
|
|
|
homepage = http://www.abisource.com/;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
2013-10-05 15:22:46 +01:00
|
|
|
};
|
2006-07-08 13:44:00 +01:00
|
|
|
}
|