From 37f434ffc0ec0c4d55edb37bbd0fa377167718d1 Mon Sep 17 00:00:00 2001 From: Rasmus Thomsen Date: Wed, 5 Sep 2018 15:33:56 +0200 Subject: [PATCH] New package: gtksourceview4-4.0.2 --- common/shlibs | 1 + srcpkgs/gtksourceview4-devel | 1 + srcpkgs/gtksourceview4/template | 49 +++++++++++++++++++++++++++++++++ 3 files changed, 51 insertions(+) create mode 120000 srcpkgs/gtksourceview4-devel create mode 100644 srcpkgs/gtksourceview4/template diff --git a/common/shlibs b/common/shlibs index 6f23b60d03a..bbb25d704e9 100644 --- a/common/shlibs +++ b/common/shlibs @@ -3413,3 +3413,4 @@ libKF5Syndication.so.5 syndication-18.08.0_1 liblqr-1.so.0 liblqr-0.4.2_1 libmozjs-60.so mozjs60-60.0.2_1 libmozjs-60.so.0 mozjs60-60.0.2_1 +libgtksourceview-4.so.0 gtksourceview4-4.0.2_1 diff --git a/srcpkgs/gtksourceview4-devel b/srcpkgs/gtksourceview4-devel new file mode 120000 index 00000000000..d0e4ad8fb5c --- /dev/null +++ b/srcpkgs/gtksourceview4-devel @@ -0,0 +1 @@ +gtksourceview4 \ No newline at end of file diff --git a/srcpkgs/gtksourceview4/template b/srcpkgs/gtksourceview4/template new file mode 100644 index 00000000000..aa198f56550 --- /dev/null +++ b/srcpkgs/gtksourceview4/template @@ -0,0 +1,49 @@ +# Template file for 'gtksourceview4' +pkgname=gtksourceview4 +version=4.0.2 +revision=1 +wrksrc="gtksourceview-${version}" +build_style=gnu-configure +configure_args="$(vopt_enable gir introspection)" +hostmakedepends="gtk+3-devel glib-devel itstool libxslt pkg-config + $(vopt_if gir "gobject-introspection")" +makedepends="gtk+3-devel libgladeui3 libglib-devel libxml2-devel vala-devel" +short_desc="Text widget that extends GTK+ GtkTextView widget" +maintainer="Rasmus Thomsen " +license="GPL-2.0-or-later" +homepage="https://wiki.gnome.org/Projects/GtkSourceView" +distfiles="${GNOME_SITE}/gtksourceview/${version%.*}/gtksourceview-${version}.tar.xz" +checksum=15829fc728f74e2005e2fc65c2aada4b223f3b361b2200b7e02ff7a9014b5fac + +# 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() { + depends="${makedepends} ${sourcepkg}>=${version}_${revision}" + short_desc+=" - development files" + pkg_install() { + vmove usr/include + vmove usr/lib/pkgconfig + vmove "usr/lib/*.so" + if [ "$build_option_gir" ]; then + vmove usr/share/gir-1.0 + fi + if [ -z "$CROSS_BUILD" ]; then + vmove usr/share/gtk-doc + fi + } +}