aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2016-08-25 11:03:02 +0200
committerRicardo Wurmus <rekado@elephly.net>2016-08-25 11:09:28 +0200
commitd5332e756e8e45f22498c0d3d73a26d4b15731a8 (patch)
treef2781d866b088266fea89ed3ba7cf352c2becfe4 /gnu
parent590021db3f3fae35d9773ff8fce59623ad7236cd (diff)
downloadpatches-d5332e756e8e45f22498c0d3d73a26d4b15731a8.tar
patches-d5332e756e8e45f22498c0d3d73a26d4b15731a8.tar.gz
gnu: ibus: Generate C from Vala sources.
* gnu/packages/ibus.scm (ibus)[native-inputs]: Add vala. [arguments]: Add "delete-generated-files" phase.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/ibus.scm10
1 files changed, 10 insertions, 0 deletions
diff --git a/gnu/packages/ibus.scm b/gnu/packages/ibus.scm
index bf40b01b4f..8011a467e1 100644
--- a/gnu/packages/ibus.scm
+++ b/gnu/packages/ibus.scm
@@ -68,6 +68,15 @@
(substitute* "data/dconf/Makefile.in"
(("dconf update") "echo dconf update"))
#t))
+ (add-after 'unpack 'delete-generated-files
+ (lambda _
+ (for-each (lambda (file)
+ (let ((c (string-append (string-drop-right file 4) "c")))
+ (when (file-exists? c)
+ (format #t "deleting ~a\n" c)
+ (delete-file c))))
+ (find-files "." "\\.vala"))
+ #t))
(add-after 'wrap-program 'wrap-with-additional-paths
(lambda* (#:key outputs #:allow-other-keys)
;; Make sure 'ibus-setup' runs with the correct PYTHONPATH and
@@ -93,6 +102,7 @@
(native-inputs
`(("glib" ,glib "bin") ; for glib-genmarshal
("gobject-introspection" ,gobject-introspection) ; for g-ir-compiler
+ ("vala" ,vala)
("pkg-config" ,pkg-config)))
(native-search-paths
(list (search-path-specification