build-system/gnu: Fix default name for the "doc" output directory.

* guix/build/gnu-build-system.scm (configure)[package-name]: Drop the
  prefix corresponding to the hash part of OUT.
This commit is contained in:
Ludovic Courtès 2013-04-27 17:27:16 +02:00
parent 5924080dcc
commit 593987671a
1 changed files with 4 additions and 3 deletions

View File

@ -109,9 +109,10 @@ makefiles."
(base (basename out))
(dash (string-rindex base #\-)))
;; XXX: We'd rather use `package-name->name+version' or similar.
(if dash
(string-drop (if dash
(substring base 0 dash)
base)))
base)
(+ 1 (string-index base #\-)))))
(let* ((prefix (assoc-ref outputs "out"))
(bindir (assoc-ref outputs "bin"))