Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/graphics/inkscape inkscape: work around "default.es_MX...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b59fcdf67ccf
branches:  trunk
changeset: 433012:b59fcdf67ccf
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Fri May 29 22:07:25 2020 +0000

description:
inkscape: work around "default.es_MX.svg" sometimes missing from DESTDIR

diffstat:

 graphics/inkscape/Makefile |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r 605d02bbf3bd -r b59fcdf67ccf graphics/inkscape/Makefile
--- a/graphics/inkscape/Makefile        Fri May 29 20:13:29 2020 +0000
+++ b/graphics/inkscape/Makefile        Fri May 29 22:07:25 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.211 2020/05/18 05:20:58 rillig Exp $
+# $NetBSD: Makefile,v 1.212 2020/05/29 22:07:25 tnn Exp $
 
 DISTNAME=      inkscape-1.0
 PKGREVISION=   3
@@ -74,6 +74,13 @@
 CMAKE_ARGS+=   -DIntl_INCLUDE_DIR=${BUILDLINK_PREFIX.gettext}/include
 .endif
 
+# There exists some race condition in create_default_templates.py that
+# makes default.es_MX.svg sometimes not get installed.
+# (gettext translation file dependency not correctly expressed in cmake?)
+# Run the script post-build to ensure all files are generated.
+post-build:
+       cd ${WRKSRC} && ${PYTHONBIN} ./share/templates/create_default_templates.py . .
+
 BUILDLINK_API_DEPENDS.boehm-gc+=       boehm-gc>=7.4
 .include "../../converters/libcdr/buildlink3.mk"
 .include "../../converters/librevenge/buildlink3.mk"



Home | Main Index | Thread Index | Old Index