2018-09-05 13:33:56 +00:00
|
|
|
# Template file for 'gtksourceview4'
|
|
|
|
pkgname=gtksourceview4
|
2018-09-16 13:44:56 +00:00
|
|
|
version=4.0.3
|
2018-09-18 19:29:10 +00:00
|
|
|
revision=2
|
2018-09-05 13:33:56 +00:00
|
|
|
wrksrc="gtksourceview-${version}"
|
|
|
|
build_style=gnu-configure
|
2018-09-18 19:29:10 +00:00
|
|
|
configure_args="--enable-glade-catalog $(vopt_enable gir introspection)"
|
2018-09-05 13:33:56 +00:00
|
|
|
hostmakedepends="gtk+3-devel glib-devel itstool libxslt pkg-config
|
|
|
|
$(vopt_if gir "gobject-introspection")"
|
2018-09-18 19:29:10 +00:00
|
|
|
makedepends="glade3-devel gtk+3-devel libglib-devel libxml2-devel vala-devel"
|
2018-09-05 13:33:56 +00:00
|
|
|
short_desc="Text widget that extends GTK+ GtkTextView widget"
|
|
|
|
maintainer="Rasmus Thomsen <rasmus.thomsen@protonmail.com>"
|
|
|
|
license="GPL-2.0-or-later"
|
|
|
|
homepage="https://wiki.gnome.org/Projects/GtkSourceView"
|
|
|
|
distfiles="${GNOME_SITE}/gtksourceview/${version%.*}/gtksourceview-${version}.tar.xz"
|
2018-09-16 13:44:56 +00:00
|
|
|
checksum=3d55a7b82841d96bf414ced2e1e912d4881c9ba2f7b74f0ff8aad636087f9d73
|
2018-09-05 13:33:56 +00:00
|
|
|
|
|
|
|
# Package build options
|
|
|
|
build_options="gir"
|
|
|
|
|
|
|
|
# Disable gir for cross builds.
|
|
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
|
|
# gtk-doc generation is broken on cross
|
|
|
|
configure_args+=" --enable-gtk-doc"
|
|
|
|
hostmakedepends+=" gtk-doc"
|
|
|
|
|
|
|
|
build_options_default="gir"
|
|
|
|
fi
|
|
|
|
|
|
|
|
do_check() {
|
|
|
|
# Needs access to X
|
|
|
|
:
|
|
|
|
}
|
|
|
|
|
|
|
|
gtksourceview4-devel_package() {
|
2018-09-18 19:29:10 +00:00
|
|
|
depends="gtk+3-devel libglib-devel libxml2-devel ${sourcepkg}>=${version}_${revision}"
|
2018-09-05 13:33:56 +00:00
|
|
|
short_desc+=" - development files"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
vmove "usr/lib/*.so"
|
2018-09-18 19:29:10 +00:00
|
|
|
vmove usr/share/glade
|
|
|
|
vmove usr/share/vala
|
2018-09-05 13:33:56 +00:00
|
|
|
if [ "$build_option_gir" ]; then
|
|
|
|
vmove usr/share/gir-1.0
|
|
|
|
fi
|
|
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
|
|
vmove usr/share/gtk-doc
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
}
|