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
|
2019-05-19 02:34:05 +10:00
|
|
|
# Depends on: glib
|
2021-09-18 13:45:28 +02:00
|
|
|
# Optional: cairo
|
2013-12-20 12:25:37 +11:00
|
|
|
|
|
|
|
name=gobject-introspection
|
2021-09-18 13:45:28 +02:00
|
|
|
version=1.70.0
|
2013-12-20 12:25:37 +11:00
|
|
|
release=1
|
2021-09-19 15:15:30 +10:00
|
|
|
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'
|
|
|
|
|
|
|
|
meson build $name-$version $PKGMK_GOBJECTINTROSPECTION \
|
2019-05-18 21:16:05 +10:00
|
|
|
--prefix /usr \
|
2021-09-18 13:45:28 +02:00
|
|
|
--wrap-mode nodownload \
|
|
|
|
-D b_lto=true \
|
|
|
|
-D b_pie=true \
|
2020-03-08 17:03:42 +11:00
|
|
|
-D doctool=disabled
|
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
|
|
|
}
|