2010-07-28 17:35:01 +02:00
|
|
|
{ stdenv, fetchurl, pkgconfig, perl, perlXMLParser, gtk, libXft
|
|
|
|
, libpng, zlib, popt, boehmgc, libxml2, libxslt, glib, gtkmm
|
|
|
|
, glibmm, libsigcxx, lcms, boost, gettext, makeWrapper, intltool
|
|
|
|
, gsl, python, pyxml, lxml }:
|
2005-09-07 16:57:30 +02:00
|
|
|
|
2008-02-03 14:17:59 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2009-11-26 13:39:22 +01:00
|
|
|
name = "inkscape-0.47";
|
2005-09-07 16:57:30 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2009-11-26 13:39:22 +01:00
|
|
|
url = "mirror://sourceforge/inkscape/${name}.tar.gz";
|
|
|
|
sha256 = "15wvcllq0nj69hkyanzvxbjhlq06cwabqabaa54n5n4307hrp2g5";
|
2005-09-07 16:57:30 +02:00
|
|
|
};
|
|
|
|
|
2009-11-26 13:39:22 +01:00
|
|
|
patches = [ ./configure-python-libs.patch ];
|
2008-02-22 17:24:58 +01:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
# Python is used at run-time to execute scripts, e.g., those from
|
|
|
|
# the "Effects" menu.
|
2009-10-18 06:43:40 +02:00
|
|
|
python pyxml lxml
|
2008-02-22 17:24:58 +01:00
|
|
|
];
|
|
|
|
|
2005-09-07 16:57:30 +02:00
|
|
|
buildInputs = [
|
2009-11-26 13:39:22 +01:00
|
|
|
pkgconfig perl perlXMLParser gtk libXft libpng zlib popt boehmgc
|
2008-02-03 14:17:59 +01:00
|
|
|
libxml2 libxslt glib gtkmm glibmm libsigcxx lcms boost gettext
|
2009-11-26 13:39:22 +01:00
|
|
|
makeWrapper intltool gsl
|
2005-09-07 16:57:30 +02:00
|
|
|
];
|
2008-01-31 11:41:45 +01:00
|
|
|
|
2008-02-22 17:24:58 +01:00
|
|
|
configureFlags = "--with-python";
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
# Make sure PyXML modules can be found at run-time.
|
|
|
|
for i in "$out/bin/"*
|
|
|
|
do
|
|
|
|
wrapProgram "$i" --prefix PYTHONPATH : \
|
2009-10-18 06:43:40 +02:00
|
|
|
"$(toPythonPath ${pyxml}):$(toPythonPath ${lxml})" || \
|
2008-02-22 17:24:58 +01:00
|
|
|
exit 2
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2009-11-26 13:39:22 +01:00
|
|
|
NIX_LDFLAGS = "-lX11";
|
|
|
|
|
2008-01-31 11:41:45 +01:00
|
|
|
meta = {
|
2008-02-22 17:24:58 +01:00
|
|
|
license = "GPL";
|
2008-01-31 11:41:45 +01:00
|
|
|
homepage = http://www.inkscape.org;
|
2009-03-03 14:27:40 +01: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 06:43:53 +02:00
|
|
|
|
2009-11-26 13:39:22 +01:00
|
|
|
If you want to import .eps files install ps2edit.
|
2009-03-03 14:27:40 +01:00
|
|
|
'';
|
2008-01-31 11:41:45 +01:00
|
|
|
};
|
2005-09-07 16:57:30 +02:00
|
|
|
}
|