pstoedit: 3.78 -> 4.01 (#341040)

This commit is contained in:
Artturin 2024-10-31 03:00:29 +02:00 committed by GitHub
commit d84c4946ab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 22 deletions

View File

@ -1,24 +1,19 @@
{ 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/";

View File

@ -1,13 +0,0 @@
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.",