liblangtag: fix for libtool>=2.4.6

Need to have gobject-introspection in hostmakedepends for
autoreconf to work. Now it is there anyway, enable it for
non-cross builds and keep usr/share/gir-1.0 in the -devel package.
This commit is contained in:
Jürgen Buchmüller 2015-10-25 11:48:17 +01:00
parent 90d3e77fb2
commit 93f432a83d

View file

@ -1,7 +1,7 @@
# Template file for 'liblangtag'
pkgname=liblangtag
version=0.5.7
revision=1
revision=2
build_style=gnu-configure
short_desc="Interface library to access tags for identifying languages"
maintainer="Enno Boland <gottox@voidlinux.eu>"
@ -9,11 +9,17 @@ license="LGPL-2, MPL"
homepage="http://tagoh.bitbucket.org/liblangtag"
distfiles="https://bitbucket.org/tagoh/${pkgname}/downloads/${pkgname}-${version}.tar.bz2"
makedepends="libxml2-devel"
hostmakedepends="libtool pkg-config"
hostmakedepends="automake libtool pkg-config gobject-introspection"
configure_args="$(vopt_enable gir instrospection)"
checksum=f2b20d7b66c37e3be73feb67831195e5db16d0bb7df0d05c2e4bb96c4deb11cf
build_options="gir"
if [ -z "$CROSS_BUILD" ]; then
build_options_default="gir"
fi
pre_configure() {
libtoolize -f
autoreconf -if
}
liblangtag-devel_package() {
@ -23,5 +29,8 @@ liblangtag-devel_package() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
if [ -z "$CROSS_BUILD" ]; then
vmove usr/share/gir-1.0
fi
}
}