about summary refs log tree commit diff
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2015-02-22 08:14:53 +0100
committeraszlig <aszlig@redmoonstudios.org>2015-02-22 08:14:53 +0100
commit7cd6dd9ada44602e9df778aa290b7e166d0ac7bb (patch)
tree9a02eb082a88d807b84c542a76b21fbcf7b4d7b3
parent030895f075af7308bbbdbe2945a43e65342a326c (diff)
downloadnixlib-7cd6dd9ada44602e9df778aa290b7e166d0ac7bb.tar
nixlib-7cd6dd9ada44602e9df778aa290b7e166d0ac7bb.tar.gz
nixlib-7cd6dd9ada44602e9df778aa290b7e166d0ac7bb.tar.bz2
nixlib-7cd6dd9ada44602e9df778aa290b7e166d0ac7bb.tar.lz
nixlib-7cd6dd9ada44602e9df778aa290b7e166d0ac7bb.tar.xz
nixlib-7cd6dd9ada44602e9df778aa290b7e166d0ac7bb.tar.zst
nixlib-7cd6dd9ada44602e9df778aa290b7e166d0ac7bb.zip
inkscape: Clean up and update to version 0.91.
This now also includes support vor visio and cdr and also adds the
missing dependency on libexif.

Forcing -lX11 in NIX_LDFLAGS is no longer needed in 0.91, so we drop
that as well as the patch and the --with-python configure flag, which is
now no longer even valid.

Tests now seem to run fine without -j1 as well.

I also tested it against the DXF test file mentioned in #3449, to be
sure we don't regress here.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
-rw-r--r--pkgs/applications/graphics/inkscape/default.nix28
1 files changed, 13 insertions, 15 deletions
diff --git a/pkgs/applications/graphics/inkscape/default.nix b/pkgs/applications/graphics/inkscape/default.nix
index 38ceefa45230..c370cc069c51 100644
--- a/pkgs/applications/graphics/inkscape/default.nix
+++ b/pkgs/applications/graphics/inkscape/default.nix
@@ -1,20 +1,22 @@
 { 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, poppler, imagemagick, libwpg }:
+, gsl, python, pyxml, lxml, poppler, imagemagick, libwpg, librevenge
+, libvisio, libcdr, libexif
+}:
 
 stdenv.mkDerivation rec {
-  name = "inkscape-0.48.5";
+  name = "inkscape-0.91";
 
   src = fetchurl {
-    url = "mirror://sourceforge/inkscape/${name}.tar.bz2";
-    sha256 = "0sfr7a1vr1066rrkkqbqvcqs3gawalj68ralnhd6k87jz62fcv1b";
+    url = "https://inkscape.global.ssl.fastly.net/media/resources/file/"
+        + "${name}.tar.bz2";
+    sha256 = "06ql3x732x2rlnanv0a8aharsnj91j5kplksg574090rks51z42d";
   };
 
-  patches = [ ./configure-python-libs.patch ];
-
-  postPatch = stdenv.lib.optionalString doCheck
-    ''sed -i 's:#include "../../src:#include "src:' src/cxxtests.cpp'';
+  postPatch = ''
+    patchShebangs share/extensions
+  '';
 
   propagatedBuildInputs = [
     # Python is used at run-time to execute scripts, e.g., those from
@@ -25,14 +27,12 @@ stdenv.mkDerivation rec {
   buildInputs = [
     pkgconfig perl perlXMLParser gtk libXft libpng zlib popt boehmgc
     libxml2 libxslt glib gtkmm glibmm libsigcxx lcms boost gettext
-    makeWrapper intltool gsl poppler imagemagick libwpg
+    makeWrapper intltool gsl poppler imagemagick libwpg librevenge
+    libvisio libcdr libexif
   ];
 
-  configureFlags = "--with-python";
-
   enableParallelBuilding = true;
   doCheck = true;
-  checkFlags = "-j1";
 
   postInstall = ''
     # Make sure PyXML modules can be found at run-time.
@@ -43,11 +43,9 @@ stdenv.mkDerivation rec {
        --prefix PATH : ${python}/bin ||  \
         exit 2
     done
-    rm $out/share/icons/hicolor/icon-theme.cache
+    rm "$out/share/icons/hicolor/icon-theme.cache"
   '';
 
-  NIX_LDFLAGS = "-lX11";
-
   meta = with stdenv.lib; {
     license = "GPL";
     homepage = http://www.inkscape.org;