Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Oct 2019 07:25:12 +0000 (UTC)
From:      Max Brazhnikov <makc@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r514492 - head/graphics/inkscape
Message-ID:  <201910150725.x9F7PCrO056784@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: makc
Date: Tue Oct 15 07:25:12 2019
New Revision: 514492
URL: https://svnweb.freebsd.org/changeset/ports/514492

Log:
  graphics/inkscape:
  - Repair Python based extensions:
    patch Inkscape to look for suffixed python binary and add missing runtime
    dependencies. This also fixes export to optimized SVG [1].
  
  PR:		234797 [1]
  Reported by:	georg-bsd
  Approved by:	gnome (maintainer timeout, 2 weeks)

Modified:
  head/graphics/inkscape/Makefile

Modified: head/graphics/inkscape/Makefile
==============================================================================
--- head/graphics/inkscape/Makefile	Tue Oct 15 07:08:24 2019	(r514491)
+++ head/graphics/inkscape/Makefile	Tue Oct 15 07:25:12 2019	(r514492)
@@ -3,7 +3,7 @@
 
 PORTNAME=	inkscape
 PORTVERSION=	0.92.4
-PORTREVISION=	8
+PORTREVISION=	9
 CATEGORIES=	graphics gnome
 MASTER_SITES=	https://media.inkscape.org/dl/resources/file/
 
@@ -29,9 +29,12 @@ LIB_DEPENDS=	libpopt.so:devel/popt \
 		libpotrace.so:graphics/libpotrace \
 		libpng.so:graphics/png \
 		libMagick++-6.so:graphics/ImageMagick6
+RUN_DEPENDS=	${PYNUMPY} \
+		${PYTHON_PKGNAMEPREFIX}lxml>0:devel/py-lxml@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}scour>0:textproc/py-scour@${PY_FLAVOR}
 
 USES=		compiler:c++11-lib cmake cpe desktop-file-utils gnome \
-		iconv:wchar_t jpeg pathfix pkgconfig python:2.7,build \
+		iconv:wchar_t jpeg pathfix pkgconfig python:2.7 \
 		shebangfix tar:bzip2
 USE_GNOME=	gtkmm24 libxml2 libxslt
 USE_XORG=	x11
@@ -82,6 +85,9 @@ USES+=			gettext
 post-patch:
 	@${REINPLACE_CMD} -e 's|COMMAND python|COMMAND ${PYTHON_VERSION}|g' \
 		${WRKSRC}/share/*/CMakeLists.txt
+	# Third entry in the table of interpreters is basename of executable
+	@${REINPLACE_CMD} -e 's|python|${PYTHON_VERSION}|3' \
+		${WRKSRC}/src/extension/implementation/script.cpp
 	# Obtained from Arch Linux
 	@${REINPLACE_CMD} -e 's|gTrue|true|g' -e 's|gFalse|false|g' -e 's|GBool|bool|g' \
 		${WRKSRC}/src/extension/internal/pdfinput/pdf-parser.*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201910150725.x9F7PCrO056784>