From 3d97b5d2e1e836d3c2fc20241f84cf0f2e2bd6b8 Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Sat, 18 Jul 2020 08:13:48 -0400 Subject: [PATCH 16/17] gnu: gtksourceviewmm: Update package definition. * gnu/packages/gtk.scm (gtksourceviewmm) [version]: Update to 3.21.3. [source][sha256]: Modify base32. [build-system]: Change from gnu to glib-or-gtk. [outputs]: New output "doc". [arguments]<#:phases>['move-doc]: New phase. [native-inputs]: Add graphviz, doxygen, m4, mm-common, perl and libxslt. [propagated-inputs]: Change glibmm to glibmm-2.64. [synopsis]: Modify. [description]: Modify. [home-page]: Mofify. --- gnu/packages/gtk.scm | 58 +++++++++++++++++++++++++++++--------------- 1 file changed, 38 insertions(+), 20 deletions(-) diff --git a/gnu/packages/gtk.scm b/gnu/packages/gtk.scm index 7f839a6da2..9087f662a1 100644 --- a/gnu/packages/gtk.scm +++ b/gnu/packages/gtk.scm @@ -1635,30 +1635,48 @@ tutorial.") (define-public gtksourceviewmm (package (name "gtksourceviewmm") - (version "3.18.0") - (source (origin - (method url-fetch) - (uri (string-append "mirror://gnome/sources/" name "/" - (version-major+minor version) "/" - name "-" version ".tar.xz")) - (sha256 - (base32 "0fgvmhm4h4qmxig87qvangs6ijw53mi40siz7pixlxbrsgiil22i")))) - (build-system gnu-build-system) + (version "3.21.3") + (source + (origin + (method url-fetch) + (uri + (string-append "mirror://gnome/sources/" name "/" + (version-major+minor version) "/" + name "-" version ".tar.xz")) + (sha256 + (base32 "1danc9mp5mnb65j01qxkwj92z8jf1gns41wbgp17qh7050f0pc6v")))) + (build-system glib-or-gtk-build-system) + (outputs '("out" "doc")) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'install 'move-doc + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (doc (assoc-ref outputs "doc"))) + (mkdir-p (string-append doc "/share")) + (rename-file + (string-append out "/share/doc") + (string-append doc "/share/doc")) + #t)))))) (native-inputs - `(("pkg-config" ,pkg-config))) + `(("dot" ,graphviz) + ("doxygen" ,doxygen) + ("m4" ,m4) + ("mm-common" ,mm-common) + ("perl" ,perl) + ("pkg-config" ,pkg-config) + ("xsltproc" ,libxslt))) (propagated-inputs - ;; In 'Requires' of gtksourceviewmm-3.0.pc. - `(("glibmm" ,glibmm) + `(("glibmm" ,glibmm-2.64) ("gtkmm" ,gtkmm) ("gtksourceview" ,gtksourceview-3))) - (synopsis "C++ interface to the GTK+ 'GtkTextView' widget") - (description - "gtksourceviewmm is a portable C++ library that extends the standard GTK+ -framework for multiline text editing with support for configurable syntax -highlighting, unlimited undo/redo, search and replace, a completion framework, -printing and other features typical of a source code editor.") - (license license:lgpl2.1+) - (home-page "https://developer.gnome.org/gtksourceview/"))) + (synopsis "C++ binding for GtkSourceView") + (description "GtkSourceViewmm is a C++ wrapper for the gtksourceview widget +library. It offers all the power of gtksourceview with an interface familiar to +C++ developers, including users of the gtkmm library.") + (home-page "https://wiki.gnome.org/Projects/GtkSourceView") + (license license:lgpl2.1+))) ;;; ;;; Python bindings. -- 2.27.0