aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gnu/packages/gnome.scm27
1 files changed, 26 insertions, 1 deletions
diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index 04f69543d5..96ec260dec 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -4384,7 +4384,32 @@ targeting the GNOME stack simple.")
"vala-" version ".tar.xz"))
(sha256
(base32
- "0k0jj3xwjq222x0hbqqy5bykhgk1f1wsb85bqcdgsnbqn6dn3jb6"))))))
+ "0k0jj3xwjq222x0hbqqy5bykhgk1f1wsb85bqcdgsnbqn6dn3jb6"))))
+ (arguments
+ (list
+ #:configure-flags #~(list "CC=gcc" "--enable-coverage")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'use-gcc-by-default
+ (lambda _
+ (substitute* "codegen/valaccodecompiler.c"
+ (("cc_command = \"cc\"")
+ "cc_command = \"gcc\""))))
+ (add-after 'unpack 'patch-docbook-xml
+ (lambda* (#:key inputs #:allow-other-keys)
+ (with-directory-excursion "doc/manual"
+ (substitute* '("manual.xml" "version.xml.in")
+ (("http://www.oasis-open.org/docbook/xml/4.4/")
+ (search-input-directory inputs "xml/dtd/docbook"))))))
+ (add-before 'check 'pre-check
+ (lambda _
+ (substitute* "valadoc/tests/libvaladoc/tests-extra-environment.sh"
+ (("export PKG_CONFIG_PATH=" m)
+ (string-append m "$PKG_CONFIG_PATH:")))))
+ ;; Wrapping the binaries breaks vala's behavior adaptations based on
+ ;; the file name of the program executed (vala: compile and execute,
+ ;; valac: compile into a binary).
+ (delete 'glib-or-gtk-wrap))))))
;;; An older variant kept to build libsoup-minimal-2.
(define-public vala-0.52