ORIG_PN="glib" inherit gnome2 python3 meson NAME="glib2.0" VERSION=2.83.4 RELEASE=1 CATEGORY="Libs" SUMMARY="GNOME core C function library" DESCRIPTION="GLib is the low-level core library that forms the basis for projects such as GTK+ and GNOME. It provides data structure handling for C, portability wrappers, and interfaces for such runtime functionality as an event loop, threads, dynamic loading, and an object system." LICENSE="LGPL-2.1-or-later" HOMEPAGE="https://www.gtk.org/" PATCH_URI=" 2.34.3-m4macros.patch 2.58.3-winsock2.patch 2.83.4-not-win32.patch " BUILD_REQUIRES="gnome-common \ gettext \ gettext-devel \ libdbus1-devel \ libfam-devel \ libffi-devel \ libiconv-devel \ libpcre-devel \ libxslt \ zlib-devel \ libpcre2-devel" DISTCLEANFILES="gmodule/gmodule-cygwin.c gio/gdbus-2.0/codegen/config.py" CYGMESON_ARGS=" --wrap-mode=default --auto-features=auto -Dman-pages=enabled -Ddocumentation=true -Dnls=enabled " DEPS_PATH="usr/lib/gio/modules" PKG_NAMES="lib${NAME}_0 lib${NAME}-devel lib${NAME}-doc" libglib2_0_0_SUMMARY="${SUMMARY} (runtime)" libglib2_0_0_REQUIRES="desktop-file-utils gsettings-desktop-schemas shared-mime-info tzdata" libglib2_0_0_CONTENTS=" etc/ usr/bin/cyg*-2.0-0.dll usr/bin/gapplication.exe usr/bin/gdbus.exe usr/bin/gio.exe usr/bin/gio-querymodules.exe usr/bin/glib-compile-schemas.exe usr/bin/gobject-query.exe usr/bin/gsettings.exe usr/libexec/gio-launch-desktop.exe usr/share/glib-2.0/schemas/ usr/share/locale/ usr/share/man/man1/gapplication.* usr/share/man/man1/gdbus.* usr/share/man/man1/gio* usr/share/man/man1/glib-compile-schemas* usr/share/man/man1/gobject* usr/share/man/man1/gsettings.* " libglib2_0_devel_SUMMARY="${SUMMARY} (development)" libglib2_0_devel_CONTENTS=" --exclude=glib-compile-schemas.[^html]* usr/bin/gdbus-codegen usr/bin/glib-* usr/bin/gresource* usr/bin/gtester* usr/bin/gi-compile-repository.exe usr/bin/gi-decompile-typelib.exe usr/bin/gi-inspect-typelib.exe usr/include/gio-unix-2.0/ usr/include/glib-2.0/ usr/lib/glib-2.0/include/ usr/lib/lib*-2.0.dll.a usr/lib/pkgconfig/* usr/share/aclocal/ usr/share/gettext/ usr/share/glib-2.0/codegen/ usr/share/glib-2.0/gettext/ usr/share/glib-2.0/dtds/gresource.dtd usr/share/man/man1/gdbus-codegen* usr/share/man/man1/glib-* usr/share/man/man1/gresource* usr/share/man/man1/gtester* usr/share/man/man1/gi-compile-repository.* usr/share/man/man1/gi-decompile-typelib.* usr/share/man/man1/gi-inspect-typelib.* " libglib2_0_doc_CATEGORY="Doc" libglib2_0_doc_CONTENTS="usr/share/doc" glib2_0_debuginfo_CONTENTS+=" usr/share/glib-2.0/gdb/" PKG_IGNORE=" usr/share/glib-2.0/valgrind/ " src_install() { local giomodule_cache=/usr/lib/gio/modules/giomodule.cache local gschemas_compiled=/usr/share/glib-2.0/schemas/gschemas.compiled cd ${S} meson_install # remove useless import lib for loadable module rm -f ${D}/usr/lib/gio/modules/*.dll.a dodir /etc/bash_completion.d mv ${D}/usr/share/bash-completion/completions/* ${D}/etc/bash_completion.d rm -f ${D}/usr/lib/charset.alias pushd ${D}/usr/share/gdb/auto-load mkdir -p usr/bin mv usr/lib/libglib* usr/bin/cygglib-2.0-0.dll-gdb.py mv usr/lib/libgobject* usr/bin/cyggobject-2.0-0.dll-gdb.py popd python3_optimize /usr/share/glib-2.0/codegen python3_optimize /usr/share/glib-2.0/gdb dodir /etc/postinstall /etc/preremove cat > ${D}/etc/postinstall/zp_${NAME}.sh < ${D}/etc/preremove/${NAME}.sh <