libgee: enable gir
This commit is contained in:
parent
07c71d54d5
commit
59f16c9c57
@ -1,32 +1,37 @@
|
|||||||
# Template file for 'libgee'
|
# Template file for 'libgee'
|
||||||
pkgname=libgee
|
pkgname=libgee
|
||||||
version=0.6.8
|
version=0.6.8
|
||||||
revision=6
|
revision=7
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--disable-static"
|
build_helper="gir"
|
||||||
hostmakedepends="pkg-config intltool glib-devel"
|
configure_args="--disable-static $(vopt_enable gir introspection)"
|
||||||
makedepends="libglib-devel vala-devel"
|
hostmakedepends="pkg-config intltool glib-devel $(vopt_if vala vala)"
|
||||||
|
makedepends="libglib-devel"
|
||||||
short_desc="GObject collection library"
|
short_desc="GObject collection library"
|
||||||
maintainer="Juan RP <xtraeme@voidlinux.org>"
|
maintainer="Juan RP <xtraeme@voidlinux.org>"
|
||||||
license="LGPL-2.1-or-later"
|
license="LGPL-2.1-or-later"
|
||||||
homepage="http://live.gnome.org/Libgee"
|
homepage="http://live.gnome.org/Libgee"
|
||||||
distfiles="${GNOME_SITE}/$pkgname/0.6/$pkgname-$version.tar.xz"
|
distfiles="${GNOME_SITE}/${pkgname}/0.6/${pkgname}-${version}.tar.xz"
|
||||||
checksum=a61f8d796173d41f6144a030d4bd22461f0bb3fa18a3ebe02341b315feebf5d3
|
checksum=a61f8d796173d41f6144a030d4bd22461f0bb3fa18a3ebe02341b315feebf5d3
|
||||||
|
|
||||||
# Package build options
|
# Package build options
|
||||||
build_options="gir"
|
build_options="gir vala"
|
||||||
|
|
||||||
# Disable gir for cross builds.
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
if [ -z "$CROSS_BUILD" ]; then
|
i686-musl|x86_64-musl) build_options_default+=" gir vala" ;;
|
||||||
build_options_default="gir"
|
*-musl) ;;
|
||||||
fi
|
*) build_options_default+=" gir vala" ;;
|
||||||
|
esac
|
||||||
|
|
||||||
if [ "$build_option_gir" ]; then
|
post_install() {
|
||||||
configure_args+=" --enable-introspection"
|
if [ "$build_option_gir" -a "$CROSS_BUILD" ]; then
|
||||||
makedepends+=" gobject-introspection"
|
mv ${DESTDIR}/usr/${XBPS_CROSS_TRIPLET}/usr/share/gir-1.0 \
|
||||||
else
|
${DESTDIR}/usr/share
|
||||||
configure_args+=" --disable-introspection"
|
|
||||||
|
mv ${DESTDIR}/usr/${XBPS_CROSS_TRIPLET}/usr/lib/girepository-1.0 \
|
||||||
|
${DESTDIR}/usr/lib
|
||||||
fi
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
libgee-devel_package() {
|
libgee-devel_package() {
|
||||||
depends="glib-devel ${sourcepkg}>=${version}_${revision}"
|
depends="glib-devel ${sourcepkg}>=${version}_${revision}"
|
||||||
@ -37,6 +42,8 @@ libgee-devel_package() {
|
|||||||
if [ "$build_option_gir" ]; then
|
if [ "$build_option_gir" ]; then
|
||||||
vmove usr/share/gir-1.0
|
vmove usr/share/gir-1.0
|
||||||
fi
|
fi
|
||||||
|
if [ "$build_option_vala" ]; then
|
||||||
vmove usr/share/vala
|
vmove usr/share/vala
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user