gnu: guile-bytestructures: Install .go files to lib/guile/X.Y.

* gnu/packages/guile.scm (guile-bytestructures)[arguments]: Install .go
files to OBJECT-DIR, defined as OUT/lib/guile/X.Y/site-ccache.
This commit is contained in:
Ludovic Courtès 2017-07-31 17:36:24 +02:00
parent 54727850c3
commit f0732ee485
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 3 additions and 1 deletions

View File

@ -1573,6 +1573,8 @@ is no support for parsing block and inline level HTML.")
"-c" "(display (effective-version))"))) "-c" "(display (effective-version))")))
(module-dir (string-append out "/share/guile/site/" (module-dir (string-append out "/share/guile/site/"
effective)) effective))
(object-dir (string-append out "/lib/guile/" effective
"/site-ccache"))
(source (getcwd)) (source (getcwd))
(doc (string-append out "/share/doc/scheme-bytestructures")) (doc (string-append out "/share/doc/scheme-bytestructures"))
(sld-files (with-directory-excursion source (sld-files (with-directory-excursion source
@ -1592,7 +1594,7 @@ is no support for parsing block and inline level HTML.")
(for-each (lambda (file) (for-each (lambda (file)
(let* ((dest-file (string-append module-dir "/" (let* ((dest-file (string-append module-dir "/"
file)) file))
(go-file (string-append module-dir "/" (go-file (string-append object-dir "/"
(substring file 0 (substring file 0
(string-rindex file #\.)) (string-rindex file #\.))
".go"))) ".go")))