[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/03: gnu: g-wrap: Install modules to 'site/2.0'.
From: |
Ludovic Courtès |
Subject: |
01/03: gnu: g-wrap: Install modules to 'site/2.0'. |
Date: |
Fri, 10 Jun 2016 13:21:31 +0000 (UTC) |
civodul pushed a commit to branch master
in repository guix.
commit 9e8599a3b13d0322f8f5a7e8dfaf9f66e78139f6
Author: Patrick Hetu <address@hidden>
Date: Wed Jun 8 13:18:07 2016 -0400
gnu: g-wrap: Install modules to 'site/2.0'.
* gnu/packages/guile.scm (g-wrap)[arguments]: New field.
Signed-off-by: Ludovic Courtès <address@hidden>
---
gnu/packages/guile.scm | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/gnu/packages/guile.scm b/gnu/packages/guile.scm
index 74e58c4..6f00edb 100644
--- a/gnu/packages/guile.scm
+++ b/gnu/packages/guile.scm
@@ -939,6 +939,16 @@ capabilities.")
("guile-lib" ,guile-lib)))
(inputs
`(("libffi" ,libffi)))
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-before 'configure 'pre-configure
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out")))
+ (substitute* (find-files "." "^Makefile.in$")
+ (("guilemoduledir =.*guile/site" all)
+ (string-append all "/2.0")))
+ #t))))))
(synopsis "Generate C bindings for Guile")
(description "G-Wrap is a tool and Guile library for generating function
wrappers for inter-language calls. It currently only supports generating Guile