From 06f8964dc426acd4edb70d31132982e0c1d5dca9 Mon Sep 17 00:00:00 2001 From: David Hashe Date: Sat, 7 Nov 2015 22:38:09 -0600 Subject: [PATCH 1/3] gnu: Add gtksourceview. * gnu/packages/gnome.scm (gtksourceview): New variable. --- gnu/packages/gnome.scm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm index 5440433..9c4b182 100644 --- a/gnu/packages/gnome.scm +++ b/gnu/packages/gnome.scm @@ -3659,3 +3659,37 @@ environment that allows users to view, unpack, and create compressed archives such as gzip tarballs.") (home-page "http://fileroller.sourceforge.net/") (license license:gpl2+))) + +(define-public gtksourceview + (package + (name "gtksourceview") + (version "3.18.1") + (source (origin + (method url-fetch) + (uri (string-append "mirror://gnome/sources/" name "/" + (version-major+minor version) "/" + name "-" version ".tar.xz")) + (sha256 + (base32 + "1rpdg8rcjlqv8yk13vsh5148mads0zbfih8cak3hm7wb0spmzsbv")))) + (build-system glib-or-gtk-build-system) + (arguments + '(#:tests? #f)) ; Tries to open graphical display during testing and fails + (native-inputs + `(("intltool" ,intltool) + ("itstool", itstool) + ("gobject-introspection" ,gobject-introspection) + ("pkg-config" ,pkg-config))) + (inputs + `(("glib" ,glib) + ("gtk+" ,gtk+) + ("libxml2" ,libxml2) + ("pango" ,pango) + ("gdk-pixbuf" ,gdk-pixbuf) + ("vala" ,vala))) + (home-page "https://wiki.gnome.org/Projects/GtkSourceView ") + (synopsis "GNOME source code widget") + (description "GtkSourceView is a text widget that extends the standard +GTK+ text widget GtkTextView. It improves GtkTextView by implementing syntax +highlighting and other features typical of a source code editor.") + (license license:lgpl2.1+))) -- 1.9.1