pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
glib2-introspection: start package
Module Name: pkgsrc-wip
Committed By: Thomas Klausner <wiz%NetBSD.org@localhost>
Pushed By: wiz
Date: Thu May 14 10:32:00 2026 +0200
Changeset: d83fa7d37671bb8950b2ee9eb4b0b40d07d73166
Modified Files:
Makefile
Added Files:
glib2-introspection/DESCR
glib2-introspection/Makefile
glib2-introspection/PLIST
glib2-introspection/TODO
Log Message:
glib2-introspection: start package
Fails to build
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=d83fa7d37671bb8950b2ee9eb4b0b40d07d73166
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
Makefile | 4 +--
glib2-introspection/DESCR | 5 +++
glib2-introspection/Makefile | 85 ++++++++++++++++++++++++++++++++++++++++++++
glib2-introspection/PLIST | 15 ++++++++
glib2-introspection/TODO | 1 +
5 files changed, 108 insertions(+), 2 deletions(-)
diffs:
diff --git a/Makefile b/Makefile
index bc92c9b98a..3ac6e0aeba 100644
--- a/Makefile
+++ b/Makefile
@@ -468,6 +468,7 @@ SUBDIR+= cereal
SUBDIR+= cfiles
SUBDIR+= cgal
SUBDIR+= cgic
+SUBDIR+= cgit
SUBDIR+= cglib
SUBDIR+= cgnslib
SUBDIR+= cgterm
@@ -1314,6 +1315,7 @@ SUBDIR+= gjs
SUBDIR+= gksu
SUBDIR+= gleam-stdlib
SUBDIR+= glib-java
+SUBDIR+= glib2-introspection
SUBDIR+= glibc
SUBDIR+= glide3
SUBDIR+= glimmerm
@@ -5889,8 +5891,6 @@ SUBDIR+= unbound
SUBDIR+= undo-tree
SUBDIR+= unicorn5hc
SUBDIR+= unifi10
-SUBDIR+= unifi8
-SUBDIR+= unifi9
SUBDIR+= unimrcp
SUBDIR+= unimrcp-apr
SUBDIR+= unimrcp-aprutil
diff --git a/glib2-introspection/DESCR b/glib2-introspection/DESCR
new file mode 100644
index 0000000000..613459174a
--- /dev/null
+++ b/glib2-introspection/DESCR
@@ -0,0 +1,5 @@
+GLib2 GIRepository-3.0 introspection data.
+
+This package builds glib2 with introspection enabled and installs only
+the GIRepository-3.0 typelib and gir file required by pygobject3 and
+other packages using the new libgirepository-2.0 API.
diff --git a/glib2-introspection/Makefile b/glib2-introspection/Makefile
new file mode 100644
index 0000000000..e375e14968
--- /dev/null
+++ b/glib2-introspection/Makefile
@@ -0,0 +1,85 @@
+# $NetBSD$
+
+.include "../../devel/glib2/Makefile.common"
+
+PKGNAME= glib2-introspection-${DISTNAME:S/^glib-//}
+CATEGORIES= devel gnome
+
+COMMENT= GLib2 introspection data (GLibUnix and GIRepository typelibs)
+
+TOOL_DEPENDS+= ${PYPKGPREFIX}-packaging-[0-9]*:../../devel/py-packaging
+DEPENDS+= glib2>=2.88.1:../../devel/glib2
+
+MESON_ARGS+= -Ddtrace=disabled
+MESON_ARGS+= -Dglib_debug=disabled
+MESON_ARGS+= -Dintrospection=enabled
+MESON_ARGS+= -Dinstalled_tests=false
+MESON_ARGS+= -Dlibmount=disabled
+MESON_ARGS+= -Dlocalstatedir=${VARBASE}
+MESON_ARGS+= -Druntime_dir=${VARBASE}/run
+
+MAKE_ENV+= LD_LIBRARY_PATH=${WRKSRC}/output/girepository:${WRKSRC}/output/gio:${WRKSRC}/output/glib:${WRKSRC}/output/gobject:${WRKSRC}/output/gmodule:${WRKSRC}/output/gthread
+# For Darwin
+MAKE_ENV+= DYLD_LIBRARY_PATH=${WRKSRC}/output/girepository:${WRKSRC}/output/gio:${WRKSRC}/output/glib:${WRKSRC}/output/gobject:${WRKSRC}/output/gmodule:${WRKSRC}/output/gthread
+
+PATCHDIR= ${.CURDIR}/../../devel/glib2/patches
+DISTINFO_FILE= ${.CURDIR}/../../devel/glib2/distinfo
+
+SUBST_CLASSES+= meson
+SUBST_STAGE.meson= pre-configure
+SUBST_FILES.meson+= meson.build
+SUBST_MESSAGE.meson= Forcing meson to find proper Python.
+SUBST_VARS.meson+= PYTHONBIN
+
+SUBST_CLASSES+= python
+SUBST_MESSAGE.python= Replace PYTHON.
+SUBST_STAGE.python= pre-configure
+SUBST_FILES.python= glib/gtester-report.in
+SUBST_SED.python= -e 's,@PYTHON@,${PYTHONBIN},'
+
+SUBST_CLASSES+= libdirs
+SUBST_STAGE.libdirs= pre-configure
+SUBST_FILES.libdirs+= girepository/gitypelib.c
+SUBST_VARS.libdirs+= PREFIX
+
+NTARGETS+= girepository/introspection/GIRepository-3.0.gir
+NTARGETS+= girepository/introspection/GIRepository-3.0.typelib
+NTARGETS+= girepository/introspection/GLib-2.0.gir
+NTARGETS+= girepository/introspection/GLib-2.0.typelib
+NTARGETS+= girepository/introspection/GLibUnix-2.0.gir
+NTARGETS+= girepository/introspection/GLibUnix-2.0.typelib
+NTARGETS+= girepository/introspection/GModule-2.0.gir
+NTARGETS+= girepository/introspection/GModule-2.0.typelib
+NTARGETS+= girepository/introspection/GObject-2.0.gir
+NTARGETS+= girepository/introspection/GObject-2.0.typelib
+NTARGETS+= girepository/introspection/Gio-2.0.gir
+NTARGETS+= girepository/introspection/Gio-2.0.typelib
+NTARGETS+= girepository/introspection/GioUnix-2.0.gir
+NTARGETS+= girepository/introspection/GioUnix-2.0.typelib
+
+MESON_BUILD_TARGET= ${NTARGETS}
+
+MESON_INSTALL= no
+
+INSTALLATION_DIRS= lib/girepository-1.0 share/gir-1.0
+
+do-install:
+.for f in ${NTARGETS}
+. if ${f:Mgir}
+ ${INSTALL_DATA} ${WRKSRC}/output/${f} ${DESTDIR}${PREFIX}/share/gir-1.0/
+. else
+ ${INSTALL_DATA} ${WRKSRC}/output/${f} ${DESTDIR}${PREFIX}/lib/girepository-1.0/
+. endif
+.endfor
+
+.include "../../devel/meson/build.mk"
+.include "../../devel/pcre2/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../lang/python/application.mk"
+.include "../../lang/python/batteries-included.mk"
+.include "../../lang/python/tool.mk"
+.include "../../converters/libiconv/buildlink3.mk"
+.include "../../devel/gettext-lib/buildlink3.mk"
+.include "../../devel/gobject-introspection/buildlink3.mk"
+.include "../../devel/libffi/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/glib2-introspection/PLIST b/glib2-introspection/PLIST
new file mode 100644
index 0000000000..5decf6e732
--- /dev/null
+++ b/glib2-introspection/PLIST
@@ -0,0 +1,15 @@
+@comment $NetBSD$
+lib/girepository-1.0/GIRepository-3.0.typelib
+lib/girepository-1.0/GLib-2.0.typelib
+lib/girepository-1.0/GLibUnix-2.0.typelib
+lib/girepository-1.0/GModule-2.0.typelib
+lib/girepository-1.0/GObject-2.0.typelib
+lib/girepository-1.0/Gio-2.0.typelib
+lib/girepository-1.0/GioUnix-2.0.typelib
+share/gir-1.0/GIRepository-3.0.gir
+share/gir-1.0/GLib-2.0.gir
+share/gir-1.0/GLibUnix-2.0.gir
+share/gir-1.0/GModule-2.0.gir
+share/gir-1.0/GObject-2.0.gir
+share/gir-1.0/Gio-2.0.gir
+share/gir-1.0/GioUnix-2.0.gir
diff --git a/glib2-introspection/TODO b/glib2-introspection/TODO
new file mode 100644
index 0000000000..af3aced4e0
--- /dev/null
+++ b/glib2-introspection/TODO
@@ -0,0 +1 @@
+Build fails, works outside of pkgsrc.
Home |
Main Index |
Thread Index |
Old Index