mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-05-12 12:14:35 +02:00
meson 1.7.0 and later don't include test build targets in the default build target. With --no-rebuild the test targets aren't build at all. Removing --no-rebuild shouldn't cause any false rebuilds since the files aren't changed between the build() and check() step. Fixes https://gitlab.alpinelinux.org/alpine/aports/-/issues/16891 Ref https://github.com/mesonbuild/meson/pull/10413
53 lines
1.1 KiB
Text
53 lines
1.1 KiB
Text
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
|
|
# Maintainer: team/gnome <fossdd@pwned.life>
|
|
pkgname=gobject-introspection
|
|
pkgver=1.84.0
|
|
pkgrel=0
|
|
pkgdesc="Introspection system for GObject-based libraries"
|
|
url="https://gi.readthedocs.io"
|
|
arch="all"
|
|
license="LGPL-2.0-or-later AND GPL-2.0-or-later AND MIT"
|
|
depends_dev="
|
|
cairo-dev
|
|
libtool
|
|
py3-setuptools
|
|
python3
|
|
"
|
|
makedepends="$depends_dev
|
|
bison
|
|
flex
|
|
glib-dev
|
|
libffi-dev
|
|
meson
|
|
python3-dev
|
|
"
|
|
subpackages="$pkgname-doc $pkgname-dev"
|
|
replaces="libgirepository"
|
|
checkdepends="sed"
|
|
source="https://download.gnome.org/sources/gobject-introspection/${pkgver%.*}/gobject-introspection-$pkgver.tar.xz"
|
|
|
|
build() {
|
|
abuild-meson \
|
|
-Db_lto=true \
|
|
-Dcairo=enabled \
|
|
. output
|
|
meson compile -C output
|
|
}
|
|
|
|
check() {
|
|
meson test --print-errorlogs -C output
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" meson install --no-rebuild -C output
|
|
}
|
|
|
|
dev() {
|
|
amove usr/bin usr/share usr/lib/gobject-introspection
|
|
default_dev
|
|
replaces="gobject-introspection"
|
|
}
|
|
|
|
sha512sums="
|
|
764b5071472f93ed62bd64983c16fc4f73d4e20575d31eb475b40f4c6643080249aec4c5e9536d0ade719a99844cefa5a6e902b4d58e5644d0c0793212da3e5b gobject-introspection-1.84.0.tar.xz
|
|
"
|