liblangtag: enable gir

This commit is contained in:
maxice8 2019-02-08 02:34:35 -02:00
parent d5e56a089d
commit ef5004e7c2
No known key found for this signature in database
GPG Key ID: 543B9D4F4299F06B
1 changed files with 15 additions and 9 deletions

View File

@ -1,22 +1,28 @@
# Template file for 'liblangtag'
pkgname=liblangtag
version=0.6.2
revision=1
revision=2
build_style=gnu-configure
build_helper="gir"
configure_args="$(vopt_enable gir introspection)"
hostmakedepends="automake libtool pkg-config"
makedepends="libxml2-devel"
short_desc="Interface library to access tags for identifying languages"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="LGPL-2, MPL"
license="LGPL-2.0-or-later, MPL"
homepage="http://tagoh.bitbucket.org/liblangtag"
distfiles="https://bitbucket.org/tagoh/${pkgname}/downloads/${pkgname}-${version}.tar.bz2"
makedepends="libxml2-devel"
hostmakedepends="automake libtool pkg-config gobject-introspection"
configure_args="$(vopt_enable gir introspection)"
checksum=d6242790324f1432fb0a6fae71b6851f520b2c5a87675497cf8ea14c2924d52e
build_options="gir"
if [ -z "$CROSS_BUILD" ]; then
build_options_default="gir"
else
case "$XBPS_TARGET_MACHINE" in
x86_64-musl) build_options_default+=" gir" ;;
*-musl) ;;
*) build_options_default+=" gir" ;;
esac
if [ "$CROSS_BUILD" ]; then
# Avoid non-working tests for va_copy
configure_args+=" ac_cv_va_copy=C99"
fi
@ -28,7 +34,7 @@ liblangtag-devel_package() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
if [ -z "$CROSS_BUILD" ]; then
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
fi
}