mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 15:36:20 -05:00
gnu: global: Add ctags support.
* gnu/packages/code.scm (global)[inputs]: Add bash-minimal, universal-ctags, python-pygments. [arguments]: Add configure-flags to find ctags. Add phases to install plugins and to wrap python script with PYTHONPATH.
This commit is contained in:
parent
6fd69dd816
commit
590be0a1ed
1 changed files with 29 additions and 5 deletions
|
@ -64,6 +64,7 @@ (define-module (gnu packages code)
|
||||||
#:use-module (gnu packages perl-compression)
|
#:use-module (gnu packages perl-compression)
|
||||||
#:use-module (gnu packages pkg-config)
|
#:use-module (gnu packages pkg-config)
|
||||||
#:use-module (gnu packages python)
|
#:use-module (gnu packages python)
|
||||||
|
#:use-module (gnu packages python-xyz)
|
||||||
#:use-module (gnu packages serialization)
|
#:use-module (gnu packages serialization)
|
||||||
#:use-module (gnu packages sqlite)
|
#:use-module (gnu packages sqlite)
|
||||||
#:use-module (gnu packages texinfo)
|
#:use-module (gnu packages texinfo)
|
||||||
|
@ -137,17 +138,26 @@ (define-public global ; a global variable
|
||||||
(base32
|
(base32
|
||||||
"0g4aslm2zajq605py11s4rs1wdnzcqhkh7bc2xl5az42adzzg839"))))
|
"0g4aslm2zajq605py11s4rs1wdnzcqhkh7bc2xl5az42adzzg839"))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(inputs `(("coreutils" ,coreutils)
|
(inputs
|
||||||
("ncurses" ,ncurses)
|
`(("bash" ,bash-minimal) ; for wrap-program
|
||||||
|
("coreutils" ,coreutils)
|
||||||
|
("ctags" ,universal-ctags)
|
||||||
("libltdl" ,libltdl)
|
("libltdl" ,libltdl)
|
||||||
("sqlite" ,sqlite)
|
("ncurses" ,ncurses)
|
||||||
("python-wrapper" ,python-wrapper)))
|
("python-pygments" ,python-pygments)
|
||||||
|
("python-wrapper" ,python-wrapper)
|
||||||
|
("sqlite" ,sqlite)))
|
||||||
(arguments
|
(arguments
|
||||||
`(#:configure-flags
|
`(#:configure-flags
|
||||||
(list (string-append "--with-ncurses="
|
(list (string-append "--with-ncurses="
|
||||||
(assoc-ref %build-inputs "ncurses"))
|
(assoc-ref %build-inputs "ncurses"))
|
||||||
(string-append "--with-sqlite3="
|
(string-append "--with-sqlite3="
|
||||||
(assoc-ref %build-inputs "sqlite"))
|
(assoc-ref %build-inputs "sqlite"))
|
||||||
|
(string-append "--with-universal-ctags="
|
||||||
|
(assoc-ref %build-inputs "ctags") "/bin/ctags")
|
||||||
|
(string-append "--sysconfdir="
|
||||||
|
(assoc-ref %outputs "out") "/share/gtags")
|
||||||
|
"--localstatedir=/var" ; This needs to be a writable location.
|
||||||
"--disable-static")
|
"--disable-static")
|
||||||
|
|
||||||
#:phases
|
#:phases
|
||||||
|
@ -158,6 +168,20 @@ (define-public global ; a global variable
|
||||||
(assoc-ref inputs "coreutils") "/bin/echo")))
|
(assoc-ref inputs "coreutils") "/bin/echo")))
|
||||||
(substitute* "globash/globash.in"
|
(substitute* "globash/globash.in"
|
||||||
(("/bin/echo") echo)))))
|
(("/bin/echo") echo)))))
|
||||||
|
(add-after 'post-install 'install-plugins
|
||||||
|
(lambda _
|
||||||
|
(with-directory-excursion "plugin-factory"
|
||||||
|
(invoke "make" "install"))))
|
||||||
|
(add-before 'install 'dont-install-to-/var
|
||||||
|
(lambda _
|
||||||
|
(substitute* "gozilla/Makefile"
|
||||||
|
(("DESTDIR\\)\\$\\{localstatedir\\}") "TMPDIR)"))))
|
||||||
|
(add-after 'install-plugins 'wrap-program
|
||||||
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
|
(wrap-program
|
||||||
|
(string-append (assoc-ref outputs "out")
|
||||||
|
"/share/gtags/script/pygments_parser.py")
|
||||||
|
`("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH"))))))
|
||||||
(add-after 'install 'post-install
|
(add-after 'install 'post-install
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
;; Install the plugin files in the right place.
|
;; Install the plugin files in the right place.
|
||||||
|
|
Loading…
Reference in a new issue