me
/
guix
Archived
1
0
Fork 0

gnu: editorconfig-vim: Use copy-build-system.

* gnu/packages/vim.scm (editorconfig-vim)[build-system]: Switch to
copy-build-system.
[arguments]: Adjust accordingly.
master
Efraim Flashner 2020-03-04 12:00:09 +02:00
parent 8e38ed1f04
commit 94d53fbb07
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351
1 changed files with 7 additions and 17 deletions

View File

@ -589,30 +589,20 @@ are detected, the user is notified.")
(snippet (snippet
'(begin '(begin
(delete-file-recursively "plugin/editorconfig-core-py") #t)))) (delete-file-recursively "plugin/editorconfig-core-py") #t))))
(build-system gnu-build-system) (build-system copy-build-system)
(arguments (arguments
'(#:tests? #f ; tests require ruby and plugin-test repository '(#:phases
#:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(delete 'configure)
(delete 'build)
(add-after 'unpack 'patch-editorconfig-path (add-after 'unpack 'patch-editorconfig-path
(lambda* (#:key inputs #:allow-other-keys) (lambda* (#:key inputs #:allow-other-keys)
(let ((editorconfig (assoc-ref inputs "editorconfig-core"))) (let ((editorconfig (assoc-ref inputs "editorconfig-core")))
(substitute* "plugin/editorconfig.vim" (substitute* "plugin/editorconfig.vim"
(("/opt") editorconfig)) (("/opt") editorconfig))
#t))) #t))))
(replace 'install #:install-plan
(lambda* (#:key outputs #:allow-other-keys) '(("autoload" "share/vim/vimfiles/")
(let* ((out (assoc-ref outputs "out")) ("doc" "share/vim/vimfiles/")
(vimfiles (string-append out "/share/vim/vimfiles")) ("plugin" "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))))))
(inputs (inputs
`(("editorconfig-core" ,editorconfig-core-c))) `(("editorconfig-core" ,editorconfig-core-c)))
(home-page "https://editorconfig.org/") (home-page "https://editorconfig.org/")