Unverified Commit d84c4946 authored by Artturin's avatar Artturin Committed by GitHub
Browse files

pstoedit: 3.78 -> 4.01 (#341040)

parents 0573737d 468475a8
Loading
Loading
Loading
Loading
+9 −9
Original line number Diff line number Diff line
{ stdenv, fetchurl, pkg-config, darwin, lib
, zlib, ghostscript, imagemagick, plotutils, gd
, libjpeg, libwebp, libiconv
, libjpeg, libwebp, libiconv, makeWrapper
}:

stdenv.mkDerivation rec {
  pname = "pstoedit";
  version = "3.78";
  version = "4.01";

  src = fetchurl {
    url = "mirror://sourceforge/pstoedit/pstoedit-${version}.tar.gz";
    sha256 = "sha256-jMKONLx/iNkTeA+AdOgT3VqqCsIFams21L8ASg6Q2AE=";
    hash = "sha256-RZdlq3NssQ+VVKesAsXqfzVcbC6fz9IXYRx9UQKxB2s=";
  };

  #
  # Turn on "-rdb" option (REALLYDELAYBIND) by default to ensure compatibility with gs-9.22
  #
  patches = [ ./pstoedit-gs-9.22-compat.patch  ];

  outputs = [ "out" "dev" ];
  nativeBuildInputs = [ pkg-config ];
  nativeBuildInputs = [ makeWrapper pkg-config ];
  buildInputs = [ zlib ghostscript imagemagick plotutils gd libjpeg libwebp ]
  ++ lib.optionals stdenv.hostPlatform.isDarwin (with darwin.apple_sdk.frameworks; [
    libiconv ApplicationServices
@@ -30,6 +25,11 @@ stdenv.mkDerivation rec {
    substituteInPlace config/pstoedit.pc.in --replace '@LIBPNG_LDFLAGS@' ""
  '';

  postInstall = ''
    wrapProgram $out/bin/pstoedit \
      --prefix PATH : ${lib.makeBinPath [ ghostscript ]}
  '';

  meta = with lib; {
    description = "Translates PostScript and PDF graphics into other vector formats";
    homepage = "https://sourceforge.net/projects/pstoedit/";
+0 −13
Original line number Diff line number Diff line
diff --git a/src/pstoeditoptions.h b/src/pstoeditoptions.h
index 7846883..0fb6a6f 100755
--- a/src/pstoeditoptions.h
+++ b/src/pstoeditoptions.h
@@ -453,7 +453,7 @@ private:
 		"Later versions of Ghostscript will probably support -dDELAYBIND again. "
 		"But also in that case the security risk remains. So be careful with what "
 		"files you process with pstoedit and Ghostscript.",
-		false),	//
+		true),	//
 #endif
 	pagetoextract		(true, "-page","page number",g_t,"extract a specific page: 0 means all pages",
 		"Select a single page from a multi-page PostScript or PDF file.",