2010-07-28 16:35:01 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, perl, perlXMLParser, gtk, libXft
|
|
|
|
, libpng, zlib, popt, boehmgc, libxml2, libxslt, glib, gtkmm
|
|
|
|
, glibmm, libsigcxx, lcms, boost, gettext, makeWrapper, intltool
|
2012-02-19 09:22:24 +00:00
|
|
|
, gsl, python, pyxml, lxml, poppler, imagemagick, libwpg }:
|
2005-09-07 15:57:30 +01:00
|
|
|
|
2008-02-03 13:17:59 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2014-07-18 10:07:10 +01:00
|
|
|
name = "inkscape-0.48.5";
|
2005-09-07 15:57:30 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2010-11-10 16:48:13 +00:00
|
|
|
url = "mirror://sourceforge/inkscape/${name}.tar.bz2";
|
2014-07-18 10:07:10 +01:00
|
|
|
sha256 = "0sfr7a1vr1066rrkkqbqvcqs3gawalj68ralnhd6k87jz62fcv1b";
|
2005-09-07 15:57:30 +01:00
|
|
|
};
|
|
|
|
|
2013-02-12 22:28:32 +00:00
|
|
|
patches = [ ./configure-python-libs.patch ];
|
2008-02-22 16:24:58 +00:00
|
|
|
|
2014-07-18 10:54:10 +01:00
|
|
|
postPatch = stdenv.lib.optionalString doCheck
|
|
|
|
''sed -i 's:#include "../../src:#include "src:' src/cxxtests.cpp'';
|
|
|
|
|
2008-02-22 16:24:58 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
# Python is used at run-time to execute scripts, e.g., those from
|
|
|
|
# the "Effects" menu.
|
2009-10-18 05:43:40 +01:00
|
|
|
python pyxml lxml
|
2008-02-22 16:24:58 +00:00
|
|
|
];
|
|
|
|
|
2005-09-07 15:57:30 +01:00
|
|
|
buildInputs = [
|
2009-11-26 12:39:22 +00:00
|
|
|
pkgconfig perl perlXMLParser gtk libXft libpng zlib popt boehmgc
|
2008-02-03 13:17:59 +00:00
|
|
|
libxml2 libxslt glib gtkmm glibmm libsigcxx lcms boost gettext
|
2012-02-19 09:22:24 +00:00
|
|
|
makeWrapper intltool gsl poppler imagemagick libwpg
|
2005-09-07 15:57:30 +01:00
|
|
|
];
|
2008-01-31 10:41:45 +00:00
|
|
|
|
2008-02-22 16:24:58 +00:00
|
|
|
configureFlags = "--with-python";
|
|
|
|
|
2014-07-18 10:54:10 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
doCheck = true;
|
|
|
|
checkFlags = "-j1";
|
|
|
|
|
2008-02-22 16:24:58 +00:00
|
|
|
postInstall = ''
|
|
|
|
# Make sure PyXML modules can be found at run-time.
|
|
|
|
for i in "$out/bin/"*
|
|
|
|
do
|
|
|
|
wrapProgram "$i" --prefix PYTHONPATH : \
|
2014-08-09 16:02:36 +01:00
|
|
|
"$(toPythonPath ${pyxml}):$(toPythonPath ${lxml})" \
|
|
|
|
--prefix PATH : ${python}/bin || \
|
2008-02-22 16:24:58 +00:00
|
|
|
exit 2
|
|
|
|
done
|
2010-11-10 18:13:00 +00:00
|
|
|
rm $out/share/icons/hicolor/icon-theme.cache
|
2008-02-22 16:24:58 +00:00
|
|
|
'';
|
|
|
|
|
2009-11-26 12:39:22 +00:00
|
|
|
NIX_LDFLAGS = "-lX11";
|
|
|
|
|
2014-07-18 10:54:10 +01:00
|
|
|
meta = with stdenv.lib; {
|
2008-02-22 16:24:58 +00:00
|
|
|
license = "GPL";
|
2008-01-31 10:41:45 +00:00
|
|
|
homepage = http://www.inkscape.org;
|
2014-07-18 10:54:10 +01:00
|
|
|
description = "Vector graphics editor";
|
|
|
|
platforms = platforms.all;
|
2009-03-03 13:27:40 +00:00
|
|
|
longDescription = ''
|
|
|
|
Inkscape is a feature-rich vector graphics editor that edits
|
|
|
|
files in the W3C SVG (Scalable Vector Graphics) file format.
|
2009-10-18 05:43:53 +01:00
|
|
|
|
2009-11-26 12:39:22 +00:00
|
|
|
If you want to import .eps files install ps2edit.
|
2009-03-03 13:27:40 +00:00
|
|
|
'';
|
2008-01-31 10:41:45 +00:00
|
|
|
};
|
2005-09-07 15:57:30 +01:00
|
|
|
}
|