gnu: global: Move vim plugins to correct directory.
* gnu/packages/code.scm (global)[arguments]: Adjust 'post-install phase to install vim plugin files to the expected directory.
This commit is contained in:
		
							parent
							
								
									9ab2790e2a
								
							
						
					
					
						commit
						683910e983
					
				
					 1 changed files with 11 additions and 4 deletions
				
			
		| 
						 | 
					@ -2,7 +2,7 @@
 | 
				
			||||||
;;; Copyright © 2013, 2015, 2018 Ludovic Courtès <ludo@gnu.org>
 | 
					;;; Copyright © 2013, 2015, 2018 Ludovic Courtès <ludo@gnu.org>
 | 
				
			||||||
;;; Copyright © 2015 Andreas Enge <andreas@enge.fr>
 | 
					;;; Copyright © 2015 Andreas Enge <andreas@enge.fr>
 | 
				
			||||||
;;; Copyright © 2015, 2018 Ricardo Wurmus <rekado@elephly.net>
 | 
					;;; Copyright © 2015, 2018 Ricardo Wurmus <rekado@elephly.net>
 | 
				
			||||||
;;; Copyright © 2016, 2017, 2019 Efraim Flashner <efraim@flashner.co.il>
 | 
					;;; Copyright © 2016, 2017, 2019, 2020 Efraim Flashner <efraim@flashner.co.il>
 | 
				
			||||||
;;; Copyright © 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
 | 
					;;; Copyright © 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
 | 
				
			||||||
;;; Copyright © 2017, 2018 Clément Lassieur <clement@lassieur.org>
 | 
					;;; Copyright © 2017, 2018 Clément Lassieur <clement@lassieur.org>
 | 
				
			||||||
;;; Copyright © 2017 Andy Wingo <wingo@igalia.com>
 | 
					;;; Copyright © 2017 Andy Wingo <wingo@igalia.com>
 | 
				
			||||||
| 
						 | 
					@ -146,12 +146,19 @@ highlighting your own code that seemed comprehensible when you wrote it.")
 | 
				
			||||||
       (modify-phases %standard-phases
 | 
					       (modify-phases %standard-phases
 | 
				
			||||||
        (add-after 'install 'post-install
 | 
					        (add-after 'install 'post-install
 | 
				
			||||||
          (lambda* (#:key outputs #:allow-other-keys)
 | 
					          (lambda* (#:key outputs #:allow-other-keys)
 | 
				
			||||||
            ;; Install the Emacs Lisp file in the right place.
 | 
					            ;; Install the plugin files in the right place.
 | 
				
			||||||
            (let* ((out  (assoc-ref outputs "out"))
 | 
					            (let* ((out  (assoc-ref outputs "out"))
 | 
				
			||||||
                   (data (string-append out "/share/gtags"))
 | 
					                   (data (string-append out "/share/gtags"))
 | 
				
			||||||
 | 
					                   (vim  (string-append out "/share/vim/vimfiles/plugin"))
 | 
				
			||||||
                   (lisp (string-append out "/share/emacs/site-lisp")))
 | 
					                   (lisp (string-append out "/share/emacs/site-lisp")))
 | 
				
			||||||
              (install-file (string-append data "/gtags.el") lisp)
 | 
					              (mkdir-p lisp)
 | 
				
			||||||
              (delete-file (string-append data "/gtags.el"))
 | 
					              (mkdir-p vim)
 | 
				
			||||||
 | 
					              (rename-file (string-append data "/gtags.el")
 | 
				
			||||||
 | 
					                           (string-append lisp "/gtags.el"))
 | 
				
			||||||
 | 
					              (rename-file (string-append data "/gtags.vim")
 | 
				
			||||||
 | 
					                           (string-append vim "/gtags.vim"))
 | 
				
			||||||
 | 
					              (rename-file (string-append data "/gtags-cscope.vim")
 | 
				
			||||||
 | 
					                           (string-append vim "/gtags-cscope.vim"))
 | 
				
			||||||
              #t))))))
 | 
					              #t))))))
 | 
				
			||||||
    (home-page "https://www.gnu.org/software/global/")
 | 
					    (home-page "https://www.gnu.org/software/global/")
 | 
				
			||||||
    (synopsis "Cross-environment source code tag system")
 | 
					    (synopsis "Cross-environment source code tag system")
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue