gnu: universal-ctags: Update to 5.9.20201018.0.
* gnu/packages/code.scm (universal-ctags): Update to 5.9.20201018.0. [native-inputs]: Replace PACKCC with a forked origin.master
parent
cad55e91fd
commit
0658cc83d2
|
@ -339,81 +339,91 @@ features that are not supported by the standard @code{stdio} implementation.")
|
||||||
"http://sourceforge.net/p/ctrio/git/ci/master/tree/README"))))
|
"http://sourceforge.net/p/ctrio/git/ci/master/tree/README"))))
|
||||||
|
|
||||||
(define-public universal-ctags
|
(define-public universal-ctags
|
||||||
;; The project is unable to decide whether to use 1.0 or 6.0 as the
|
(package
|
||||||
;; first public release version (it started as a fork of another ctags
|
(name "universal-ctags")
|
||||||
;; project that was on version 5.8), and five years later have been
|
(version "5.9.20201018.0")
|
||||||
;; unable to tag a release. Thus, we just take the master branch.
|
(source
|
||||||
(let ((commit "0c78c0c4a68030df0d025c90bad291108b5e7107")
|
(origin
|
||||||
(revision "0"))
|
(method git-fetch)
|
||||||
(package
|
(uri (git-reference
|
||||||
(name "universal-ctags")
|
(url "https://github.com/universal-ctags/ctags")
|
||||||
(version (git-version "0.0.0" revision commit))
|
(commit (string-append "p" version))))
|
||||||
(source
|
(file-name (git-file-name name version))
|
||||||
(origin
|
(sha256
|
||||||
(method git-fetch)
|
(base32
|
||||||
(uri (git-reference
|
"174p1w20pl25k996hfw61inw4mqhskmmic1lyw2m65firmkyvs7x"))
|
||||||
(url "https://github.com/universal-ctags/ctags")
|
(modules '((guix build utils)))
|
||||||
(commit commit)))
|
(snippet
|
||||||
(file-name (git-file-name name version))
|
'(begin
|
||||||
(sha256
|
;; Remove the bundled PackCC and associated build rules.
|
||||||
(base32
|
(substitute* "Makefile.am"
|
||||||
"0lnxc3kwi6srw0015m16vyjfdc7pdr9d1qzxjsbfv3c69ag87jhc"))
|
(("\\$\\(packcc_verbose\\)\\$\\(PACKCC\\)")
|
||||||
(modules '((guix build utils)))
|
"packcc")
|
||||||
(snippet
|
(("\\$\\(PEG_SRCS\\) \\$\\(PEG_HEADS\\): packcc\\$\\(EXEEXT\\)")
|
||||||
'(begin
|
"$(PEG_SRCS) $(PEG_HEADS):")
|
||||||
;; Remove the bundled PackCC and associated build rules.
|
(("noinst_PROGRAMS \\+= packcc")
|
||||||
(substitute* "Makefile.am"
|
""))
|
||||||
(("\\$\\(packcc_verbose\\)\\$\\(PACKCC\\)")
|
(delete-file-recursively "misc/packcc")
|
||||||
"packcc")
|
#t))))
|
||||||
(("\\$\\(PEG_SRCS\\) \\$\\(PEG_HEADS\\): packcc\\$\\(EXEEXT\\)")
|
(build-system gnu-build-system)
|
||||||
"$(PEG_SRCS) $(PEG_HEADS):")
|
(arguments
|
||||||
(("noinst_PROGRAMS \\+= packcc")
|
'(#:phases (modify-phases %standard-phases
|
||||||
""))
|
(add-after 'unpack 'make-files-writable
|
||||||
(delete-file-recursively "misc/packcc")
|
(lambda _
|
||||||
#t))))
|
(for-each make-file-writable (find-files "."))
|
||||||
(build-system gnu-build-system)
|
#t))
|
||||||
(arguments
|
(add-before 'bootstrap 'patch-optlib2c
|
||||||
'(#:phases (modify-phases %standard-phases
|
(lambda _
|
||||||
(add-after 'unpack 'make-files-writable
|
;; The autogen.sh script calls out to optlib2c to
|
||||||
(lambda _
|
;; generate translations, so we can not wait for the
|
||||||
(for-each make-file-writable (find-files "."))
|
;; patch-source-shebangs phase.
|
||||||
#t))
|
(patch-shebang "misc/optlib2c")
|
||||||
(add-before 'bootstrap 'patch-optlib2c
|
#t))
|
||||||
(lambda _
|
(add-before 'check 'patch-tests
|
||||||
;; The autogen.sh script calls out to optlib2c to
|
(lambda _
|
||||||
;; generate translations, so we can not wait for the
|
(substitute* "misc/units"
|
||||||
;; patch-source-shebangs phase.
|
(("SHELL=/bin/sh")
|
||||||
(patch-shebang "misc/optlib2c")
|
(string-append "SHELL=" (which "sh"))))
|
||||||
#t))
|
(substitute* "Tmain/utils.sh"
|
||||||
(add-before 'check 'patch-tests
|
(("/bin/echo") (which "echo")))
|
||||||
(lambda _
|
#t)))))
|
||||||
(substitute* "misc/units"
|
(native-inputs
|
||||||
(("SHELL=/bin/sh")
|
`(("autoconf" ,autoconf)
|
||||||
(string-append "SHELL=" (which "sh"))))
|
("automake" ,automake)
|
||||||
(substitute* "Tmain/utils.sh"
|
;; XXX: Use ctags' own packcc fork even though we meticolously unbundle
|
||||||
(("/bin/echo") (which "echo")))
|
;; it above. Mainly for historical reasons, and perhaps their changes
|
||||||
#t)))))
|
;; get upstreamed in the future.
|
||||||
(native-inputs
|
("packcc"
|
||||||
`(("autoconf" ,autoconf)
|
,(let ((commit "03402b79505dc0024f90d5bebfd7e5d3fb62da9a"))
|
||||||
("automake" ,automake)
|
(package
|
||||||
("packcc" ,packcc)
|
(inherit packcc)
|
||||||
("perl" ,perl)
|
(source (origin
|
||||||
("pkg-config" ,pkg-config)))
|
(method git-fetch)
|
||||||
(inputs
|
(uri (git-reference
|
||||||
`(("jansson" ,jansson)
|
(url "https://github.com/universal-ctags/packcc")
|
||||||
("libseccomp" ,libseccomp)
|
(commit commit)))
|
||||||
("libxml2" ,libxml2)
|
(file-name (git-file-name "packcc-for-ctags"
|
||||||
("libyaml" ,libyaml)))
|
(string-take commit 7)))
|
||||||
(home-page "https://ctags.io/")
|
(sha256
|
||||||
(synopsis "Generate tag files for source code")
|
(base32
|
||||||
(description
|
"0vxpdk9l2lf7f32nx1p3b3xmw2kw2wp95vnf9bc4lyqrg69pblm0")))))))
|
||||||
"Universal Ctags generates an index (or tag) file of language objects
|
("perl" ,perl)
|
||||||
|
("pkg-config" ,pkg-config)))
|
||||||
|
(inputs
|
||||||
|
`(("jansson" ,jansson)
|
||||||
|
("libseccomp" ,libseccomp)
|
||||||
|
("libxml2" ,libxml2)
|
||||||
|
("libyaml" ,libyaml)))
|
||||||
|
(home-page "https://ctags.io/")
|
||||||
|
(synopsis "Generate tag files for source code")
|
||||||
|
(description
|
||||||
|
"Universal Ctags generates an index (or tag) file of language objects
|
||||||
found in source files for many popular programming languages. This index
|
found in source files for many popular programming languages. This index
|
||||||
makes it easy for text editors and other tools to locate the indexed items.
|
makes it easy for text editors and other tools to locate the indexed items.
|
||||||
Universal Ctags improves on traditional ctags because of its multilanguage
|
Universal Ctags improves on traditional ctags because of its multilanguage
|
||||||
support, its ability for the user to define new languages searched by regular
|
support, its ability for the user to define new languages searched by regular
|
||||||
expressions, and its ability to generate emacs-style TAGS files.")
|
expressions, and its ability to generate emacs-style TAGS files.")
|
||||||
(license license:gpl2+))))
|
(license license:gpl2+)))
|
||||||
|
|
||||||
(define-public withershins
|
(define-public withershins
|
||||||
(package
|
(package
|
||||||
|
|
Reference in New Issue