From 35bdd04e9f4b3d8cf613106c35abd8a2896fef2a Mon Sep 17 00:00:00 2001
From: Andreas Wacknitz <A.Wacknitz@gmx.de>
Date: Thu, 28 Mar 2024 22:32:59 +0100
Subject: [PATCH] mm-common: fix scripts

---
 components/library/mm-common/Makefile |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/components/library/mm-common/Makefile b/components/library/mm-common/Makefile
index 30ea623..cd3eceb 100644
--- a/components/library/mm-common/Makefile
+++ b/components/library/mm-common/Makefile
@@ -20,6 +20,7 @@
 
 COMPONENT_NAME=         mm-common
 COMPONENT_VERSION=      1.0.6
+COMPONENT_REVISION=		1
 COMPONENT_SUMMARY=      GNOME C++ bindings effort https://www.gtkmm.org support tools
 COMPONENT_SRC=          $(COMPONENT_NAME)-$(COMPONENT_VERSION)
 COMPONENT_ARCHIVE=      $(COMPONENT_SRC).tar.xz
@@ -47,7 +48,12 @@
 CONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)
 CONFIGURE_OPTIONS += --libexecdir=$(USRLIBEXECDIR)
 
-COMPONENT_POST_INSTALL_ACTION.64= $(GSED) -i -e 's:env python3:python$(PYTHON_VERSION):' $(PROTOUSRBINDIR)/mm-common-get
+# Fix scripts
+COMPONENT_POST_INSTALL_ACTION= ( \
+	$(GSED) -i -e 's:env python3:python$(PYTHON_VERSION):' $(PROTOUSRBINDIR)/mm-common-get; \
+	$(GSED) -i -e 's:@datadir_py@:/usr/share:' $(PROTOUSRBINDIR)/mm-common-get; \
+	$(GSED) -i -e 's:env python3:python$(PYTHON_VERSION):' $(PROTOUSRSHAREDIR)/mm-common/build/*.py; \
+	$(GSED) -i -e 's:env python3:python$(PYTHON_VERSION):' $(PROTOUSRSHAREDIR)/mm-common/doctool/*.py; )
 
 # Configure checks
 REQUIRED_PACKAGES += text/gawk

--
Gitblit v1.9.3