void-packages/srcpkgs/gtksourceview/template

45 lines
1.2 KiB
Plaintext
Raw Normal View History

# Template file for 'gtksourceview'
pkgname=gtksourceview
2014-02-01 16:17:45 +01:00
version=3.10.2
2014-02-16 08:50:05 +01:00
revision=2
build_style=gnu-configure
configure_args="--disable-static"
2014-02-16 08:50:05 +01:00
hostmakedepends="pkg-config intltool gtk+3-devel"
2013-03-28 19:41:44 +01:00
makedepends="gtk+3-devel>=3.8 libxml2-devel"
2013-01-24 09:25:49 +01:00
short_desc="Text widget that extends GTK+3 GtkTextView widget"
maintainer="Juan RP <xtraeme@gmail.com>"
2011-09-30 16:54:11 +02:00
homepage="http://www.gnome.org"
license="GPL-2"
2013-09-26 21:03:18 +02:00
distfiles="${GNOME_SITE}/$pkgname/${version%.*}/${pkgname}-${version}.tar.xz"
2014-02-01 16:17:45 +01:00
checksum=045d244b1fd6a2d1b91a40712cbbfb18c6e44844c266a0a16ac5ec1800add8f5
2014-02-16 08:50:05 +01:00
# 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() {
2014-02-01 16:17:45 +01:00
depends="gtk+3-devel libxml2-devel ${sourcepkg}>=${version}_${revision}"
2013-07-08 15:11:35 +02:00
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
2013-07-08 15:11:35 +02:00
vmove "usr/lib/*.so"
2014-02-16 08:50:05 +01:00
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
fi
vmove usr/share/gtk-doc
}
}