Index: 44.0/Makefile
===================================================================
--- 44.0/Makefile (revision 124)
+++ 44.0/Makefile (revision 125)
@@ -56,6 +56,8 @@
SOURCE_REQUIRES = sources/GNOME/apps/gnome-calculator
REQUIRES = X11/libs/gtk4/4.11.2
+REQUIRES += libs/gobject-introspection/1.76.1
+REQUIRES += dev/vala/0.56.6
REQUIRES += X11/libs/libadwaita/1.3.2
REQUIRES += X11/libs/gtksourceview/5.8.0
REQUIRES += libs/libsoup3/3.4.2
@@ -178,7 +180,7 @@
endif
-extra_configure_switches += -Ddisable-introspection=true
+extra_configure_switches += -Ddisable-introspection=false
extra_configure_switches += -Ddisable-ui=false
extra_configure_switches += -Ddevelopment=false
extra_configure_switches += -Dui-tests=false
@@ -187,6 +189,12 @@
extra_configure_switches += -Ddoc=true
+PYTHON3_VERSION = 3.10
+
+python_environment = PYTHON=$(PYTHON3)
+python_environment += PYTHONPATH='$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/gobject-introspection:$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/python$(PYTHON3_VERSION)/lib-dynload'
+
+
VALAC_FLAGS = --vapidir=$(TARGET_DEST_DIR)/usr/share/vala/vapi --disable-warnings
CFLAGS += -Wno-maybe-uninitialized
@@ -232,7 +240,8 @@
@echo "strip = '$(STRIP)'" >> $(cross_file)
@echo "pkgconfig = 'pkg-config'" >> $(cross_file)
@echo "" >> $(cross_file)
- @meson setup \
+ @$(python_environment) \
+ meson setup \
--prefix=/usr \
--libdir=lib$(LIBSUFFIX) \
--libexecdir=/usr/libexec \
@@ -254,7 +263,10 @@
@( cd $(build_dir) ; \
sed -i 's,^\( command = valac\) \(\$$ARGS \$$in\),\1 $(VALAC_FLAGS) \2,' build.ninja ; \
)
- @cd $(build_dir) && ninja -v
+ @( cd $(build_dir) ; \
+ sed -i '/COMMAND = /s, /usr/bin/g-ir-scanner , $(python_environment) $(TARGET_DEST_DIR)/usr/bin/g-ir-scanner-wrapper ,g' build.ninja ; \
+ )
+ @( cd $(build_dir) ; env -i ninja -v )
@touch $@
$(install_target): $(build_target)