mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-14 00:17:36 +00:00
pstoedit: 3.78 -> 4.01 (#341040)
This commit is contained in:
commit
d84c4946ab
@ -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/";
|
||||
|
@ -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.",
|
Loading…
Reference in New Issue
Block a user