diff options
| author | Marius Bakke <marius@gnu.org> | 2021-05-15 20:44:12 +0200 |
|---|---|---|
| committer | Marius Bakke <marius@gnu.org> | 2021-05-18 22:23:48 +0200 |
| commit | 6ee590eca8d67c21d678fb808bce9dc91542db14 (patch) | |
| tree | 14c8ab1f34cc781ec7087b5974187039722565f4 /gnu/packages/code.scm | |
| parent | 8eea80d86a5f5799beb82a1f52801be480783a0f (diff) | |
gnu: universal-ctags: Update to 5.9.20210509.0.
* gnu/packages/code.scm (universal-ctags): Update to 5.9.20210509.0.
[source](snippet): Adjust unbundling substitution.
[arguments]: Add #:test-target. Patch more files before bootstrapping.
Remove trailing #t's.
[native-inputs]: Use PACKCC instead of an ad-hoc fork.
Diffstat (limited to 'gnu/packages/code.scm')
| -rw-r--r-- | gnu/packages/code.scm | 56 |
1 files changed, 18 insertions, 38 deletions
diff --git a/gnu/packages/code.scm b/gnu/packages/code.scm index 2e9b4f00167..86730b231fc 100644 --- a/gnu/packages/code.scm +++ b/gnu/packages/code.scm | |||
| @@ -13,7 +13,7 @@ | |||
| 13 | ;;; Copyright © 2014 Mark H Weaver <mhw@netris.org> | 13 | ;;; Copyright © 2014 Mark H Weaver <mhw@netris.org> |
| 14 | ;;; Copyright © 2019 Hartmut Goebel <h.goebel@goebel-consult.de> | 14 | ;;; Copyright © 2019 Hartmut Goebel <h.goebel@goebel-consult.de> |
| 15 | ;;; Copyright © 2020 Maxim Cournoyer <maxim.cournoyer@gmail.com> | 15 | ;;; Copyright © 2020 Maxim Cournoyer <maxim.cournoyer@gmail.com> |
| 16 | ;;; Copyright © 2020 Marius Bakke <marius@gnu.org> | 16 | ;;; Copyright © 2020, 2021 Marius Bakke <marius@gnu.org> |
| 17 | ;;; Copyright © 2020 Julien Lepiller <julien@lepiller.eu> | 17 | ;;; Copyright © 2020 Julien Lepiller <julien@lepiller.eu> |
| 18 | ;;; Copyright © 2021 lu hui <luhuins@163.com> | 18 | ;;; Copyright © 2021 lu hui <luhuins@163.com> |
| 19 | ;;; | 19 | ;;; |
| @@ -349,7 +349,7 @@ features that are not supported by the standard @code{stdio} implementation.") | |||
| 349 | (define-public universal-ctags | 349 | (define-public universal-ctags |
| 350 | (package | 350 | (package |
| 351 | (name "universal-ctags") | 351 | (name "universal-ctags") |
| 352 | (version "5.9.20201018.0") | 352 | (version "5.9.20210509.0") |
| 353 | (source | 353 | (source |
| 354 | (origin | 354 | (origin |
| 355 | (method git-fetch) | 355 | (method git-fetch) |
| @@ -359,64 +359,44 @@ features that are not supported by the standard @code{stdio} implementation.") | |||
| 359 | (file-name (git-file-name name version)) | 359 | (file-name (git-file-name name version)) |
| 360 | (sha256 | 360 | (sha256 |
| 361 | (base32 | 361 | (base32 |
| 362 | "174p1w20pl25k996hfw61inw4mqhskmmic1lyw2m65firmkyvs7x")) | 362 | "1sq94bnbzr40zwihfnsna759bbak0lw27j0yn12iwpg4xgb4hhwp")) |
| 363 | (modules '((guix build utils))) | 363 | (modules '((guix build utils))) |
| 364 | (snippet | 364 | (snippet |
| 365 | '(begin | 365 | '(begin |
| 366 | ;; Remove the bundled PackCC and associated build rules. | 366 | ;; Remove the bundled PackCC and associated build rules. |
| 367 | (substitute* "Makefile.am" | 367 | (substitute* "Makefile.am" |
| 368 | (("\\$\\(packcc_verbose\\)\\$\\(PACKCC\\)") | 368 | (("^PACKCC = .*") |
| 369 | "packcc") | 369 | "PACKCC = packcc") |
| 370 | (("\\$\\(PEG_SRCS\\) \\$\\(PEG_HEADS\\): packcc\\$\\(EXEEXT\\)") | 370 | (("\\$\\(PACKCC_FILES\\)") |
| 371 | "$(PEG_SRCS) $(PEG_HEADS):") | 371 | "") |
| 372 | (("noinst_PROGRAMS \\+= packcc") | 372 | (("\\$\\(PEG_SRCS\\) \\$\\(PEG_HEADS\\): \\$\\(PACKCC\\)") |
| 373 | "")) | 373 | "$(PEG_SRCS) $(PEG_HEADS):")) |
| 374 | (delete-file-recursively "misc/packcc") | 374 | (delete-file-recursively "misc/packcc"))))) |
| 375 | #t)))) | ||
| 376 | (build-system gnu-build-system) | 375 | (build-system gnu-build-system) |
| 377 | (arguments | 376 | (arguments |
| 378 | '(;; Don't use the build-time TMPDIR (/tmp/guix-build-...) at runtime. | 377 | '(;; Don't use the build-time TMPDIR (/tmp/guix-build-...) at runtime. |
| 379 | #:configure-flags '("--enable-tmpdir=/tmp") | 378 | #:configure-flags '("--enable-tmpdir=/tmp") |
| 379 | #:test-target "units" | ||
| 380 | #:phases (modify-phases %standard-phases | 380 | #:phases (modify-phases %standard-phases |
| 381 | (add-after 'unpack 'make-files-writable | 381 | (add-after 'unpack 'make-files-writable |
| 382 | (lambda _ | 382 | (lambda _ |
| 383 | (for-each make-file-writable (find-files ".")) | 383 | (for-each make-file-writable (find-files ".")))) |
| 384 | #t)) | 384 | (add-before 'bootstrap 'patch-misc |
| 385 | (add-before 'bootstrap 'patch-optlib2c | ||
| 386 | (lambda _ | 385 | (lambda _ |
| 387 | ;; The autogen.sh script calls out to optlib2c to | 386 | ;; The autogen.sh script calls out to these scripts, so |
| 388 | ;; generate translations, so we can not wait for the | 387 | ;; we cannot wait for the patch-source-shebangs phase. |
| 389 | ;; patch-source-shebangs phase. | 388 | (for-each patch-shebang (find-files "misc")))) |
| 390 | (patch-shebang "misc/optlib2c") | ||
| 391 | #t)) | ||
| 392 | (add-before 'check 'patch-tests | 389 | (add-before 'check 'patch-tests |
| 393 | (lambda _ | 390 | (lambda _ |
| 394 | (substitute* "misc/units" | 391 | (substitute* "misc/units" |
| 395 | (("SHELL=/bin/sh") | 392 | (("SHELL=/bin/sh") |
| 396 | (string-append "SHELL=" (which "sh")))) | 393 | (string-append "SHELL=" (which "sh")))) |
| 397 | (substitute* "Tmain/utils.sh" | 394 | (substitute* "Tmain/utils.sh" |
| 398 | (("/bin/echo") (which "echo"))) | 395 | (("/bin/echo") (which "echo")))))))) |
| 399 | #t))))) | ||
| 400 | (native-inputs | 396 | (native-inputs |
| 401 | `(("autoconf" ,autoconf) | 397 | `(("autoconf" ,autoconf) |
| 402 | ("automake" ,automake) | 398 | ("automake" ,automake) |
| 403 | ;; XXX: Use ctags' own packcc fork even though we meticolously unbundle | 399 | ("packcc" ,packcc) |
| 404 | ;; it above. Mainly for historical reasons, and perhaps their changes | ||
| 405 | ;; get upstreamed in the future. | ||
| 406 | ("packcc" | ||
| 407 | ,(let ((commit "03402b79505dc0024f90d5bebfd7e5d3fb62da9a")) | ||
| 408 | (package | ||
| 409 | (inherit packcc) | ||
| 410 | (source (origin | ||
| 411 | (method git-fetch) | ||
| 412 | (uri (git-reference | ||
| 413 | (url "https://github.com/universal-ctags/packcc") | ||
| 414 | (commit commit))) | ||
| 415 | (file-name (git-file-name "packcc-for-ctags" | ||
| 416 | (string-take commit 7))) | ||
| 417 | (sha256 | ||
| 418 | (base32 | ||
| 419 | "0vxpdk9l2lf7f32nx1p3b3xmw2kw2wp95vnf9bc4lyqrg69pblm0"))))))) | ||
| 420 | ("perl" ,perl) | 400 | ("perl" ,perl) |
| 421 | ("pkg-config" ,pkg-config))) | 401 | ("pkg-config" ,pkg-config))) |
| 422 | (inputs | 402 | (inputs |
