Managed to make it segfault...
haven't found a fix yet, but getting it
somewhat unified with gimp proper

(should gimp/stable have MODPY_ADJ_FILES ?... I know it doesn't run python
by itself, but still...)

Index: Makefile
===================================================================
RCS file: /cvs/ports/graphics/gimp/resynthesizer/Makefile,v
retrieving revision 1.2
diff -u -p -r1.2 Makefile
--- Makefile    5 Oct 2020 12:14:23 -0000       1.2
+++ Makefile    25 Jul 2021 11:32:22 -0000
@@ -6,6 +6,7 @@ V = 2.0.3
 GH_ACCOUNT = bootchk
 GH_PROJECT = resynthesizer
 GH_TAGNAME = v$V
+REVISION =   0
 
 PKGNAME =      gimp-resynthesizer-plugin-$V
 
@@ -28,13 +29,16 @@ WANTLIB += X11 Xcomposite Xcursor Xdamag
 # MASTER_SITES = http://www.logarithmic.net/pfh-files/resynthesizer/
 MASTER_SITES = ${MASTER_SITES_GITHUB}
 
+MODULES =      lang/python
+MODPY_VERSION =        ${MODPY_DEFAULT_VERSION_2}
+MODPY_ADJ_FILES = PluginScripts/*.py
+
 BUILD_DEPENDS =        graphics/gimp/stable \
                devel/gettext,-tools \
                textproc/intltool
 RUN_DEPENDS =  graphics/gimp/stable
 # there is no actual test and it errors out
 NO_TEST =      Yes
-
 AUTOCONF_VERSION = 2.69
 AUTOMAKE_VERSION = 1.16
 CONFIGURE_STYLE = autoreconf
@@ -43,5 +47,9 @@ AUTORECONF =  ./autogen.sh
 ## for an easier time if we ever get gimp 3.0
 GIMPV = 2.0
 SUBST_VARS +=  GIMPV
+
+post-install:
+       ${MODPY_BIN} ${MODPY_LIBDIR}/compileall.py \
+           ${PREFIX}/lib/gimp/${GIMPV}/plug-ins
 
 .include <bsd.port.mk>
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/graphics/gimp/resynthesizer/pkg/PLIST,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 PLIST
--- pkg/PLIST   2 Oct 2020 22:04:17 -0000       1.1.1.1
+++ pkg/PLIST   25 Jul 2021 11:32:22 -0000
@@ -1,12 +1,20 @@
 @comment $OpenBSD: PLIST,v 1.1.1.1 2020/10/02 22:04:17 espie Exp $
 lib/gimp/${GIMPV}/plug-ins/plugin-heal-selection.py
+lib/gimp/${GIMPV}/plug-ins/plugin-heal-selection.pyc
 lib/gimp/${GIMPV}/plug-ins/plugin-heal-transparency.py
+lib/gimp/${GIMPV}/plug-ins/plugin-heal-transparency.pyc
 lib/gimp/${GIMPV}/plug-ins/plugin-map-style.py
+lib/gimp/${GIMPV}/plug-ins/plugin-map-style.pyc
 lib/gimp/${GIMPV}/plug-ins/plugin-render-texture.py
+lib/gimp/${GIMPV}/plug-ins/plugin-render-texture.pyc
 lib/gimp/${GIMPV}/plug-ins/plugin-resynth-enlarge.py
+lib/gimp/${GIMPV}/plug-ins/plugin-resynth-enlarge.pyc
 lib/gimp/${GIMPV}/plug-ins/plugin-resynth-fill-pattern.py
+lib/gimp/${GIMPV}/plug-ins/plugin-resynth-fill-pattern.pyc
 lib/gimp/${GIMPV}/plug-ins/plugin-resynth-sharpen.py
+lib/gimp/${GIMPV}/plug-ins/plugin-resynth-sharpen.pyc
 lib/gimp/${GIMPV}/plug-ins/plugin-uncrop.py
+lib/gimp/${GIMPV}/plug-ins/plugin-uncrop.pyc
 @bin lib/gimp/${GIMPV}/plug-ins/resynthesizer
 @bin lib/gimp/${GIMPV}/plug-ins/resynthesizer_gui
 share/resynthesizer/

Reply via email to