gtksourceview: added gir build option.
This commit is contained in:
parent
8fe4cdc0a1
commit
e9c5e684a8
|
@ -1,10 +1,10 @@
|
|||
# Template file for 'gtksourceview'
|
||||
pkgname=gtksourceview
|
||||
version=3.10.2
|
||||
revision=1
|
||||
revision=2
|
||||
build_style=gnu-configure
|
||||
configure_args="--disable-static"
|
||||
hostmakedepends="pkg-config intltool gobject-introspection"
|
||||
hostmakedepends="pkg-config intltool gtk+3-devel"
|
||||
makedepends="gtk+3-devel>=3.8 libxml2-devel"
|
||||
short_desc="Text widget that extends GTK+3 GtkTextView widget"
|
||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||
|
@ -13,6 +13,22 @@ license="GPL-2"
|
|||
distfiles="${GNOME_SITE}/$pkgname/${version%.*}/${pkgname}-${version}.tar.xz"
|
||||
checksum=045d244b1fd6a2d1b91a40712cbbfb18c6e44844c266a0a16ac5ec1800add8f5
|
||||
|
||||
# Package build options
|
||||
build_options="gir"
|
||||
desc_option_gir="Enable support for building gobject introspection data"
|
||||
|
||||
# Disable gir for cross builds.
|
||||
if [ -z "$CROSS_BUILD" ]; then
|
||||
build_options_default="gir"
|
||||
fi
|
||||
|
||||
if [ "$build_option_gir" ]; then
|
||||
configure_args+=" --enable-introspection"
|
||||
makedepends+=" gobject-introspection"
|
||||
else
|
||||
configure_args+=" --disable-introspection"
|
||||
fi
|
||||
|
||||
gtksourceview-devel_package() {
|
||||
depends="gtk+3-devel libxml2-devel ${sourcepkg}>=${version}_${revision}"
|
||||
short_desc+=" - development files"
|
||||
|
@ -20,7 +36,9 @@ gtksourceview-devel_package() {
|
|||
vmove usr/include
|
||||
vmove usr/lib/pkgconfig
|
||||
vmove "usr/lib/*.so"
|
||||
vmove "usr/share/gir*"
|
||||
if [ "$build_option_gir" ]; then
|
||||
vmove usr/share/gir-1.0
|
||||
fi
|
||||
vmove usr/share/gtk-doc
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue