[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
90/334: gnu: gtksourceview-3: Update package definition.
From: |
guix-commits |
Subject: |
90/334: gnu: gtksourceview-3: Update package definition. |
Date: |
Sat, 15 Aug 2020 16:26:30 -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
- 261/334: gnu: rust-serial-test-derive: Remove duplicate definition., (continued)
- 261/334: gnu: rust-serial-test-derive: Remove duplicate definition., guix-commits, 2020/08/15
- 262/334: gnu: rust-string-cache-codegen: Remove duplicate definition., guix-commits, 2020/08/15
- 265/334: gnu: rust-cssparser-macros@0.6.0: Fix reference to rust-quote., guix-commits, 2020/08/15
- 205/334: gnu: libgweather: Update package definition., guix-commits, 2020/08/15
- 228/334: gnu: tepl: Update package definition., guix-commits, 2020/08/15
- 242/334: gnu: file-roller: Update package definition., guix-commits, 2020/08/15
- 249/334: gnu: gnome-characters: Update package definition., guix-commits, 2020/08/15
- 263/334: gnu: rust-cssparser-macros: Remove duplicate definition., guix-commits, 2020/08/15
- 270/334: gnu: rust-serial-test: Remove duplicate definition., guix-commits, 2020/08/15
- 271/334: gnu: rust-servo-arc: Remove duplicate definition., guix-commits, 2020/08/15
- 90/334: gnu: gtksourceview-3: Update package definition.,
guix-commits <=
- 218/334: gnu: libappindicator: Propagate gtk+ and libdbusmenu., guix-commits, 2020/08/15
- 230/334: gnu: libquvi: Update package definition., guix-commits, 2020/08/15
- 235/334: gnu: baobab: Update package definition., guix-commits, 2020/08/15
- 238/334: gnu: eog: Update package definition., guix-commits, 2020/08/15
- 240/334: gnu: texlive-bin: Recompile with -fPIC., guix-commits, 2020/08/15
- 252/334: gnu: gnome-contacts: Update package definition., guix-commits, 2020/08/15
- 259/334: gnu: rust-pin-project-internal@0.4.22: Fix reference to rust-proc-macro2., guix-commits, 2020/08/15
- 275/334: gnu: rust-pin-project-internal@0.4.22: Fix reference to rust-syn., guix-commits, 2020/08/15
- 276/334: gnu: rust-serial-test-derive@0.4.0: Fix reference to rust-syn., guix-commits, 2020/08/15
- 280/334: gnu: gnome-disk-utility: Update package definition., guix-commits, 2020/08/15