[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
90/277: gnu: gtksourceview-3: Update package definition.
From: |
guix-commits |
Subject: |
90/277: gnu: gtksourceview-3: Update package definition. |
Date: |
Thu, 6 Aug 2020 17:02:59 -0400 (EDT) |
dannym pushed a commit to branch wip-desktop
in repository guix.
commit 6d72c7f247d51e0565e9ab28acd20b8c989d9106
Author: Raghav Gururajan <raghavgururajan@disroot.org>
AuthorDate: Sat Jul 4 06:58:44 2020 -0400
gnu: gtksourceview-3: Update package definition.
* gnu/packages/gtk.scm (gtksourceview-3) [version]: Update to 3.24.11.
[build-system]: Change from gnu to glib-or-gtk.
[arguments]<#:configure-flags>[--enable-glade-catalog]: New flag.
[--enable-gtk-doc]: New flag.
[--with-html-dir]: New flag.
<#:phases>['patch-docbook-xml]: New phase.
['move-glade]: New phase.
Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org>
---
gnu/packages/gtk.scm | 66 +++++++++++++++++++++++++++++++++++++++++++---------
1 file changed, 55 insertions(+), 11 deletions(-)
diff --git a/gnu/packages/gtk.scm b/gnu/packages/gtk.scm
index dab2f8b..4e776e1 100644
--- a/gnu/packages/gtk.scm
+++ b/gnu/packages/gtk.scm
@@ -515,17 +515,61 @@ of a source code editor.")
(license license:lgpl2.1+)))
(define-public gtksourceview-3
- (package (inherit gtksourceview)
- (name "gtksourceview")
- (version "3.24.10")
- (source (origin
- (method url-fetch)
- (uri (string-append "mirror://gnome/sources/" name "/"
- (version-major+minor version) "/"
- name "-" version ".tar.xz"))
- (sha256
- (base32
- "16ym7jwiki4s1pilwr4incx0yg7ll94f1cajrnpndkxxs36hcm5b"))))))
+ (package
+ (inherit gtksourceview)
+ (name "gtksourceview")
+ (version "3.24.11")
+ (source
+ (origin
+ (method url-fetch)
+ (uri
+ (string-append "mirror://gnome/sources/" name "/"
+ (version-major+minor version) "/"
+ name "-" version ".tar.xz"))
+ (sha256
+ (base32"1zbpj283b5ycz767hqz5kdq02wzsga65pp4fykvhg8xj6x50f6v9"))))
+ (build-system glib-or-gtk-build-system)
+ (arguments
+ `(#:configure-flags
+ (list
+ "--enable-glade-catalog"
+ "--enable-gtk-doc"
+ (string-append "--with-html-dir="
+ (assoc-ref %outputs "doc")
+ "/share/gtk-doc/html"))
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'patch-docbook-xml
+ (lambda* (#:key inputs #:allow-other-keys)
+ (with-directory-excursion "docs/reference"
+ (substitute* '("gtksourceview-docs.xml.in" "intro.xml.in"
+ "lang-reference.xml.in" "lang-tutorial.xml"
+ "style-reference.xml.in")
+ (("http://www.oasis-open.org/docbook/xml/4.3/")
+ (string-append (assoc-ref inputs "docbook-xml")
+ "/xml/dtd/docbook/"))))
+ #t))
+ (add-before 'check 'pre-check
+ (lambda _
+ ;; Tests require a running X server.
+ (system "Xvfb :1 +extension GLX &")
+ (setenv "DISPLAY" ":1")
+ ;; Tests write to $HOME.
+ (setenv "HOME" (getcwd))
+ ;; Tests look for $XDG_RUNTIME_DIR.
+ (setenv "XDG_RUNTIME_DIR" (getcwd))
+ ;; For missing '/etc/machine-id'.
+ (setenv "DBUS_FATAL_WARNINGS" "0")
+ #t))
+ (add-after 'install 'move-glade
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (glade (assoc-ref outputs "glade")))
+ (mkdir-p (string-append glade "/share"))
+ (rename-file
+ (string-append out "/share/glade")
+ (string-append glade "/share/glade")))
+ #t)))))))
(define-public gdk-pixbuf
(package
- 38/277: gnu: Add esound., (continued)
- 38/277: gnu: Add esound., guix-commits, 2020/08/06
- 63/277: gnu: Add libde265., guix-commits, 2020/08/06
- 66/277: gnu: Add libquicktime., guix-commits, 2020/08/06
- 67/277: gnu: Add mjpegtools., guix-commits, 2020/08/06
- 76/277: gnu: Add vo-aacenc., guix-commits, 2020/08/06
- 77/277: gnu: Add webrtc-audio-processing., guix-commits, 2020/08/06
- 80/277: gnu: Add iqa., guix-commits, 2020/08/06
- 81/277: gnu: Add rtmpdump., guix-commits, 2020/08/06
- 83/277: gnu: Add rust-imgref., guix-commits, 2020/08/06
- 84/277: gnu: gtk+-2: Update package definition., guix-commits, 2020/08/06
- 90/277: gnu: gtksourceview-3: Update package definition.,
guix-commits <=
- 92/277: gnu: fuse: Update package definition., guix-commits, 2020/08/06
- 45/277: gnu: Add libvisual., guix-commits, 2020/08/06
- 46/277: gnu: Add libvisual-plugins., guix-commits, 2020/08/06
- 49/277: gnu: Add nanomsg., guix-commits, 2020/08/06
- 51/277: gnu: Add ccextractor., guix-commits, 2020/08/06
- 52/277: gnu: Add libdc1394., guix-commits, 2020/08/06
- 57/277: gnu: Add libtimidity., guix-commits, 2020/08/06
- 60/277: gnu: Add flite., guix-commits, 2020/08/06
- 61/277: gnu: Add ffmpeg-2.8., guix-commits, 2020/08/06
- 68/277: gnu: Add libofa., guix-commits, 2020/08/06