summaryrefslogtreecommitdiff
path: root/gnu/packages/code.scm
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2021-09-07 11:04:44 +0200
committerLudovic Courtès <ludo@gnu.org>2021-09-07 14:19:08 +0200
commitd9dfbf886ddbb92dfdaa118bb9765e78aad5c53a (patch)
tree2732020de20a38c09b66a60b0cb36022799f7c2e /gnu/packages/code.scm
parentb949f34f31a045eb0fb242b81a223178fb6994d3 (diff)
parent49922efb11da0f0e9d4f5979d081de5ea8c99d25 (diff)
Merge branch 'master' into core-updates-frozen
Diffstat (limited to 'gnu/packages/code.scm')
-rw-r--r--gnu/packages/code.scm34
1 files changed, 29 insertions, 5 deletions
diff --git a/gnu/packages/code.scm b/gnu/packages/code.scm
index d52621dfcb6..b9267b0f218 100644
--- a/gnu/packages/code.scm
+++ b/gnu/packages/code.scm
@@ -64,6 +64,7 @@
64 #:use-module (gnu packages perl-compression) 64 #:use-module (gnu packages perl-compression)
65 #:use-module (gnu packages pkg-config) 65 #:use-module (gnu packages pkg-config)
66 #:use-module (gnu packages python) 66 #:use-module (gnu packages python)
67 #:use-module (gnu packages python-xyz)
67 #:use-module (gnu packages serialization) 68 #:use-module (gnu packages serialization)
68 #:use-module (gnu packages sqlite) 69 #:use-module (gnu packages sqlite)
69 #:use-module (gnu packages texinfo) 70 #:use-module (gnu packages texinfo)
@@ -137,17 +138,26 @@ highlighting your own code that seemed comprehensible when you wrote it.")
137 (base32 138 (base32
138 "0g4aslm2zajq605py11s4rs1wdnzcqhkh7bc2xl5az42adzzg839")))) 139 "0g4aslm2zajq605py11s4rs1wdnzcqhkh7bc2xl5az42adzzg839"))))
139 (build-system gnu-build-system) 140 (build-system gnu-build-system)
140 (inputs `(("coreutils" ,coreutils) 141 (inputs
141 ("ncurses" ,ncurses) 142 `(("bash" ,bash-minimal) ; for wrap-program
142 ("libltdl" ,libltdl) 143 ("coreutils" ,coreutils)
143 ("sqlite" ,sqlite) 144 ("ctags" ,universal-ctags)
144 ("python-wrapper" ,python-wrapper))) 145 ("libltdl" ,libltdl)
146 ("ncurses" ,ncurses)
147 ("python-pygments" ,python-pygments)
148 ("python-wrapper" ,python-wrapper)
149 ("sqlite" ,sqlite)))
145 (arguments 150 (arguments
146 `(#:configure-flags 151 `(#:configure-flags
147 (list (string-append "--with-ncurses=" 152 (list (string-append "--with-ncurses="
148 (assoc-ref %build-inputs "ncurses")) 153 (assoc-ref %build-inputs "ncurses"))
149 (string-append "--with-sqlite3=" 154 (string-append "--with-sqlite3="
150 (assoc-ref %build-inputs "sqlite")) 155 (assoc-ref %build-inputs "sqlite"))
156 (string-append "--with-universal-ctags="
157 (assoc-ref %build-inputs "ctags") "/bin/ctags")
158 (string-append "--sysconfdir="
159 (assoc-ref %outputs "out") "/share/gtags")
160 "--localstatedir=/var" ; This needs to be a writable location.
151 "--disable-static") 161 "--disable-static")
152 162
153 #:phases 163 #:phases
@@ -158,6 +168,20 @@ highlighting your own code that seemed comprehensible when you wrote it.")
158 (assoc-ref inputs "coreutils") "/bin/echo"))) 168 (assoc-ref inputs "coreutils") "/bin/echo")))
159 (substitute* "globash/globash.in" 169 (substitute* "globash/globash.in"
160 (("/bin/echo") echo))))) 170 (("/bin/echo") echo)))))
171 (add-after 'post-install 'install-plugins
172 (lambda _
173 (with-directory-excursion "plugin-factory"
174 (invoke "make" "install"))))
175 (add-before 'install 'dont-install-to-/var
176 (lambda _
177 (substitute* "gozilla/Makefile"
178 (("DESTDIR\\)\\$\\{localstatedir\\}") "TMPDIR)"))))
179 (add-after 'install-plugins 'wrap-program
180 (lambda* (#:key inputs outputs #:allow-other-keys)
181 (wrap-program
182 (string-append (assoc-ref outputs "out")
183 "/share/gtags/script/pygments_parser.py")
184 `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH"))))))
161 (add-after 'install 'post-install 185 (add-after 'install 'post-install
162 (lambda* (#:key outputs #:allow-other-keys) 186 (lambda* (#:key outputs #:allow-other-keys)
163 ;; Install the plugin files in the right place. 187 ;; Install the plugin files in the right place.