mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 05:48:07 -05:00
gnu: editorconfig-vim: Use copy-build-system.
* gnu/packages/vim.scm (editorconfig-vim)[build-system]: Switch to copy-build-system. [arguments]: Adjust accordingly.
This commit is contained in:
parent
8e38ed1f04
commit
94d53fbb07
1 changed files with 7 additions and 17 deletions
|
@ -589,30 +589,20 @@ (define-public editorconfig-vim
|
|||
(snippet
|
||||
'(begin
|
||||
(delete-file-recursively "plugin/editorconfig-core-py") #t))))
|
||||
(build-system gnu-build-system)
|
||||
(build-system copy-build-system)
|
||||
(arguments
|
||||
'(#:tests? #f ; tests require ruby and plugin-test repository
|
||||
#:phases
|
||||
'(#:phases
|
||||
(modify-phases %standard-phases
|
||||
(delete 'configure)
|
||||
(delete 'build)
|
||||
(add-after 'unpack 'patch-editorconfig-path
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
(let ((editorconfig (assoc-ref inputs "editorconfig-core")))
|
||||
(substitute* "plugin/editorconfig.vim"
|
||||
(("/opt") editorconfig))
|
||||
#t)))
|
||||
(replace 'install
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(let* ((out (assoc-ref outputs "out"))
|
||||
(vimfiles (string-append out "/share/vim/vimfiles"))
|
||||
(doc (string-append vimfiles "/doc"))
|
||||
(plugin (string-append vimfiles "/plugin"))
|
||||
(autoload (string-append vimfiles "/autoload")))
|
||||
(copy-recursively "doc" doc)
|
||||
(copy-recursively "autoload" autoload)
|
||||
(copy-recursively "plugin" plugin)
|
||||
#t))))))
|
||||
#t))))
|
||||
#:install-plan
|
||||
'(("autoload" "share/vim/vimfiles/")
|
||||
("doc" "share/vim/vimfiles/")
|
||||
("plugin" "share/vim/vimfiles/"))))
|
||||
(inputs
|
||||
`(("editorconfig-core" ,editorconfig-core-c)))
|
||||
(home-page "https://editorconfig.org/")
|
||||
|
|
Loading…
Reference in a new issue