Sun May 17 00:38:47 2020 UTC ()
inkscape: actually patch script.cpp so the pypath SUBST does something


(tnn)
diff -r1.209 -r1.210 pkgsrc/graphics/inkscape/Makefile
diff -r1.72 -r1.73 pkgsrc/graphics/inkscape/distinfo
diff -r0 -r1.1 pkgsrc/graphics/inkscape/patches/patch-src_extension_implementation_script.cpp

cvs diff -r1.209 -r1.210 pkgsrc/graphics/inkscape/Makefile (expand / switch to unified diff)

--- pkgsrc/graphics/inkscape/Makefile 2020/05/16 13:38:05 1.209
+++ pkgsrc/graphics/inkscape/Makefile 2020/05/17 00:38:47 1.210
@@ -1,17 +1,17 @@ @@ -1,17 +1,17 @@
1# $NetBSD: Makefile,v 1.209 2020/05/16 13:38:05 rillig Exp $ 1# $NetBSD: Makefile,v 1.210 2020/05/17 00:38:47 tnn Exp $
2 2
3DISTNAME= inkscape-1.0 3DISTNAME= inkscape-1.0
4PKGREVISION= 2 4PKGREVISION= 3
5CATEGORIES= graphics 5CATEGORIES= graphics
6MASTER_SITES= https://media.inkscape.org/dl/resources/file/ 6MASTER_SITES= https://media.inkscape.org/dl/resources/file/
7EXTRACT_SUFX= .tar.xz 7EXTRACT_SUFX= .tar.xz
8 8
9MAINTAINER= reed@reedmedia.net 9MAINTAINER= reed@reedmedia.net
10HOMEPAGE= https://www.inkscape.org/ 10HOMEPAGE= https://www.inkscape.org/
11COMMENT= Scalable Vector Graphics (SVG) editor 11COMMENT= Scalable Vector Graphics (SVG) editor
12LICENSE= gnu-gpl-v2 12LICENSE= gnu-gpl-v2
13 13
14WRKSRC= ${WRKDIR}/inkscape-1.0_2020-05-01_4035a4fb49 14WRKSRC= ${WRKDIR}/inkscape-1.0_2020-05-01_4035a4fb49
15 15
16.if !exists(/usr/bin/iconv) 16.if !exists(/usr/bin/iconv)
17BUILD_DEPENDS+= libiconv-[0-9]*:../../converters/libiconv 17BUILD_DEPENDS+= libiconv-[0-9]*:../../converters/libiconv

cvs diff -r1.72 -r1.73 pkgsrc/graphics/inkscape/distinfo (expand / switch to unified diff)

--- pkgsrc/graphics/inkscape/distinfo 2020/05/06 01:42:28 1.72
+++ pkgsrc/graphics/inkscape/distinfo 2020/05/17 00:38:47 1.73
@@ -1,7 +1,8 @@ @@ -1,7 +1,8 @@
1$NetBSD: distinfo,v 1.72 2020/05/06 01:42:28 ryoon Exp $ 1$NetBSD: distinfo,v 1.73 2020/05/17 00:38:47 tnn Exp $
2 2
3SHA1 (inkscape-1.0.tar.xz) = c59c5195bbd079deb5943686650230ddbdde0569 3SHA1 (inkscape-1.0.tar.xz) = c59c5195bbd079deb5943686650230ddbdde0569
4RMD160 (inkscape-1.0.tar.xz) = 2350d881891ac60324235a5745f76f21ba3fb3d0 4RMD160 (inkscape-1.0.tar.xz) = 2350d881891ac60324235a5745f76f21ba3fb3d0
5SHA512 (inkscape-1.0.tar.xz) = 37c18079eb926fd6874deee95e4008bae165c5e52d05cb53bbc8f4a48eedd0e0ab6b3e5dfbb23709169187bfe8eb5aa44d576268667f2566a2cd4dd5426554f0 5SHA512 (inkscape-1.0.tar.xz) = 37c18079eb926fd6874deee95e4008bae165c5e52d05cb53bbc8f4a48eedd0e0ab6b3e5dfbb23709169187bfe8eb5aa44d576268667f2566a2cd4dd5426554f0
6Size (inkscape-1.0.tar.xz) = 31935616 bytes 6Size (inkscape-1.0.tar.xz) = 31935616 bytes
7SHA1 (patch-CMakeScripts_Pod2man.cmake) = c7f0c0d3b28604c2594bc9265363c782a57af40c 7SHA1 (patch-CMakeScripts_Pod2man.cmake) = c7f0c0d3b28604c2594bc9265363c782a57af40c
 8SHA1 (patch-src_extension_implementation_script.cpp) = 2c2cbcee2fdda5a274906600930acc0257cc0ea2

File Added: pkgsrc/graphics/inkscape/patches/patch-src_extension_implementation_script.cpp
$NetBSD: patch-src_extension_implementation_script.cpp,v 1.1 2020/05/17 00:38:47 tnn Exp $

Replace python3 interpreter.

--- src/extension/implementation/script.cpp.orig	2020-05-01 13:18:52.000000000 +0000
+++ src/extension/implementation/script.cpp
@@ -77,10 +77,10 @@ const std::map<std::string, Script::inte
         { "python",  {"python-interpreter",  {"pythonw"           }}},
 #elif defined __APPLE__
         { "perl",    {"perl-interpreter",    {"perl"              }}},
-        { "python",  {"python-interpreter",  {"python3"           }}},
+        { "python",  {"python-interpreter",  {"@PYTHONBIN@", "python3"           }}},
 #else
         { "perl",    {"perl-interpreter",    {"perl"              }}},
-        { "python",  {"python-interpreter",  {"python3", "python" }}},
+        { "python",  {"python-interpreter",  {"@PYTHONBIN@", "python3", "python" }}},
 #endif
         { "python2", {"python2-interpreter", {"python2", "python" }}},
         { "ruby",    {"ruby-interpreter",    {"ruby"    }}},