gnu: clang-from-llvm: Fix install for clang-3.*.

* gnu/packages/llvm.scm (clang-from-llvm): Fix install for clang-3.*.
This commit is contained in:
Pierre Neidhardt 2018-11-28 13:41:50 +01:00
parent e91152e9f2
commit ad8a4a666d
No known key found for this signature in database
GPG Key ID: 9BDCF497A4BBCC7F
1 changed files with 14 additions and 10 deletions

View File

@ -243,17 +243,21 @@ compiler. In LLVM this library is called \"compiler-rt\".")
out "/etc/bash_completion.d"))) out "/etc/bash_completion.d")))
(with-directory-excursion (string-append out (with-directory-excursion (string-append out
"/share/clang") "/share/clang")
;; Delete extensions for proprietary text editors. (for-each
(delete-file "clang-format-bbedit.applescript") (lambda (file)
(delete-file "clang-format-sublime.py") (when (file-exists? file)
;; Delete Emacs extensions: see their respective Emacs (delete-file file)))
;; Guix package instead. ;; Delete extensions for proprietary text editors.
(delete-file "clang-rename.el") '("clang-format-bbedit.applescript"
(delete-file "clang-format.el") "clang-format-sublime.py"
;; Delete Emacs extensions: see their respective Emacs
;; Guix package instead.
"clang-rename.el" "clang-format.el"))
;; Install bash completion. ;; Install bash completion.
(mkdir-p compl-dir) (when (file-exists? "bash-autocomplete.sh")
(rename-file "bash-autocomplete.sh" (mkdir-p compl-dir)
(string-append compl-dir "/clang")))) (rename-file "bash-autocomplete.sh"
(string-append compl-dir "/clang")))))
#t))))) #t)))))
;; Clang supports the same environment variables as GCC. ;; Clang supports the same environment variables as GCC.