From f3ccd1d26b50a529165fbb7323df1c49c08c80b3 Mon Sep 17 00:00:00 2001 From: oreo639 Date: Thu, 21 Mar 2024 12:27:39 -0700 Subject: [PATCH] New package: glib-bootstrap-2.80.0 --- srcpkgs/glib-bootstrap/patches | 1 + srcpkgs/glib-bootstrap/template | 46 +++++++++++++++++++++++++++++++++ srcpkgs/glib-bootstrap/update | 2 ++ 3 files changed, 49 insertions(+) create mode 120000 srcpkgs/glib-bootstrap/patches create mode 100644 srcpkgs/glib-bootstrap/template create mode 100644 srcpkgs/glib-bootstrap/update diff --git a/srcpkgs/glib-bootstrap/patches b/srcpkgs/glib-bootstrap/patches new file mode 120000 index 00000000000..4beb39573ca --- /dev/null +++ b/srcpkgs/glib-bootstrap/patches @@ -0,0 +1 @@ +../glib/patches \ No newline at end of file diff --git a/srcpkgs/glib-bootstrap/template b/srcpkgs/glib-bootstrap/template new file mode 100644 index 00000000000..8839d8b24c8 --- /dev/null +++ b/srcpkgs/glib-bootstrap/template @@ -0,0 +1,46 @@ +# Template file for 'glib-bootstrap' +# keep in sync with glib +# +# This aloing with gobject-introspection-bootstrap is unfortunately necessary as a part of the +# libgirepository-1.0 to libgirepository-2.0 migration. +pkgname=glib-bootstrap +version=2.80.0 +revision=1 +build_style=meson +# static version is necessary for qemu-user-static; +# also disable LTO, otherwise there are multiple failures when linking qemu +configure_args="-Dman=true -Dselinux=disabled + --default-library=both -Db_lto=false -Dintrospection=disabled" +hostmakedepends="gettext pkg-config libxslt docbook-xsl python3-packaging python3-docutils" +makedepends="zlib-devel pcre2-devel libffi-devel dbus-devel elfutils-devel libmount-devel" +depends="${makedepends}" +checkdepends="desktop-file-utils shared-mime-info dbus python3-pytest" +short_desc="GNU library of C routines" +maintainer="Orphaned " +license="LGPL-2.1-or-later" +homepage="https://wiki.gnome.org/Projects/GLib" +#changelog="https://gitlab.gnome.org/GNOME/glib/raw/glib-2-78/NEWS" +changelog="https://gitlab.gnome.org/GNOME/glib/raw/main/NEWS" +distfiles="${GNOME_SITE}/glib/${version%.*}/glib-${version}.tar.xz" +checksum=8228a92f92a412160b139ae68b6345bd28f24434a7b5af150ebe21ff587a561d +make_check_pre="dbus-run-session" + +repository=bootstrap +conflicts="glib libglib-devel glib-devel" +provides="glib-${version}_${revision}" + +post_patch() { + # Timer test is flaky on 32 bit (does float comparisons) + if [ "${XBPS_TARGET_WORDSIZE}" = "32" ]; then + vsed -e "s/'timer' : {},//" -i glib/tests/meson.build + fi +} + +pre_check() { + # machine-id is a random, non-zero value + echo 'dcb30309cd6c8b7cc20383d85a5c7012' > /etc/machine-id +} + +post_check() { + rm /etc/machine-id +} diff --git a/srcpkgs/glib-bootstrap/update b/srcpkgs/glib-bootstrap/update new file mode 100644 index 00000000000..4d29b9118be --- /dev/null +++ b/srcpkgs/glib-bootstrap/update @@ -0,0 +1,2 @@ +pattern="glib-[0-9]+\.[0-9]*[02468]\.[0-9]+" +pkgname="glib"