2013-12-20 12:25:37 +11:00
|
|
|
# Description: A middleware layer between C libraries (using GObject) and language bindings.
|
|
|
|
# URL: https://live.gnome.org/GObjectIntrospection
|
2014-11-10 23:25:50 +11:00
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
2022-02-13 13:44:32 +11:00
|
|
|
# Depends on: glib libffi
|
|
|
|
# Optional: cairo python3-mako python3-markdown
|
2013-12-20 12:25:37 +11:00
|
|
|
|
|
|
|
name=gobject-introspection
|
2023-03-23 11:39:47 +01:00
|
|
|
version=1.76.1
|
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 12:25:37 +11:00
|
|
|
|
|
|
|
build() {
|
2021-09-18 13:45:28 +02:00
|
|
|
prt-get isinst cairo || PKGMK_GOBJECTINTROSPECTION+=' -D cairo=disabled'
|
2022-02-13 13:44:32 +11:00
|
|
|
prt-get isinst python3-mako python3-markdown || PKGMK_GOBJECTINTROSPECTION+=' -D doctool=disabled'
|
|
|
|
|
2021-09-18 13:45:28 +02:00
|
|
|
meson build $name-$version $PKGMK_GOBJECTINTROSPECTION \
|
2019-05-18 21:16:05 +10:00
|
|
|
--prefix /usr \
|
2022-02-13 13:44:32 +11:00
|
|
|
--buildtype plain \
|
2021-09-18 13:45:28 +02:00
|
|
|
--wrap-mode nodownload \
|
|
|
|
-D b_lto=true \
|
2022-02-13 13:44:32 +11:00
|
|
|
-D b_pie=true
|
2013-12-20 12:25:37 +11:00
|
|
|
|
2019-05-18 21:16:05 +10:00
|
|
|
ninja -C build -j ${JOBS:-1}
|
2020-04-17 23:01:17 +10:00
|
|
|
DESTDIR=$PKG meson install -C build
|
2021-09-18 13:45:28 +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 12:25:37 +11:00
|
|
|
}
|