2023-08-27 17:43:40 +02:00
|
|
|
# Description: A middleware layer between C libraries (using GObject) and language bindings
|
2013-12-20 02:25:37 +01:00
|
|
|
# URL: https://live.gnome.org/GObjectIntrospection
|
2023-08-27 17:43:40 +02:00
|
|
|
# Maintainer: CRUX System Team, core-ports at crux dot nu
|
|
|
|
# Depends on: glib
|
2022-02-13 03:44:32 +01:00
|
|
|
# Optional: cairo python3-mako python3-markdown
|
2013-12-20 02:25:37 +01:00
|
|
|
|
|
|
|
name=gobject-introspection
|
2023-09-08 19:08:14 +02:00
|
|
|
version=1.78.0
|
2022-05-31 22:32:44 +02:00
|
|
|
release=1
|
|
|
|
source=(https://download.gnome.org/sources/$name/${version::4}/$name-$version.tar.xz)
|
2013-12-20 02:25:37 +01:00
|
|
|
|
|
|
|
build() {
|
2023-08-27 17:43:40 +02:00
|
|
|
prt-get isinst cairo || PKGMK_GOBJECTINTROSPECTION+=' -D cairo=disabled'
|
|
|
|
prt-get isinst python3-mako python3-markdown || PKGMK_GOBJECTINTROSPECTION+=' -D doctool=disabled'
|
2022-02-13 03:44:32 +01:00
|
|
|
|
2023-08-27 17:43:40 +02:00
|
|
|
meson setup $name-$version build \
|
|
|
|
--prefix=/usr \
|
|
|
|
--buildtype=plain \
|
|
|
|
--wrap-mode nodownload \
|
|
|
|
-D b_lto=true \
|
|
|
|
-D b_pie=true
|
2013-12-20 02:25:37 +01:00
|
|
|
|
2023-08-27 17:43:40 +02:00
|
|
|
meson compile -C build -j ${JOBS:-1}
|
|
|
|
DESTDIR=$PKG meson install -C build
|
2021-09-18 13:45:28 +02:00
|
|
|
|
2023-08-27 17:43:40 +02:00
|
|
|
/usr/bin/python3 -m compileall -d /usr/lib/$name $PKG
|
|
|
|
/usr/bin/python3 -O -m compileall -d /usr/lib/$name $PKG
|
|
|
|
/usr/bin/python3 -OO -m compileall -d /usr/lib/$name $PKG
|
2013-12-20 02:25:37 +01:00
|
|
|
}
|