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

View file

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