gnu: git: Add PCRE support to "git grep".
* gnu/packages/version-control.scm (git)[inputs]: Add pcre2. [arguments]: Add "USE_LIBPCRE2" to make-flags. (git-minimal)[arguments]: Do not inherit "USE_LIBPCRE2" in make-flags.
This commit is contained in:
parent
223492f350
commit
abb6a0e0d1
|
@ -183,14 +183,17 @@ (define-public git
|
|||
;; a problem in 'patch-shebangs'; see <https://bugs.gnu.org/31952>.
|
||||
("bash-for-tests" ,bash)
|
||||
|
||||
;; For 'gitweb.cgi'
|
||||
;; For PCRE support in git grep (USE_LIBPCRE2).
|
||||
("pcre" ,pcre2)
|
||||
|
||||
;; For 'gitweb.cgi'.
|
||||
("perl-cgi" ,perl-cgi)
|
||||
|
||||
;; For 'git-svn'.
|
||||
("subversion" ,subversion)
|
||||
("perl-term-readkey" ,perl-term-readkey)
|
||||
|
||||
;; For 'git-send-email'
|
||||
;; For 'git-send-email'.
|
||||
("perl-authen-sasl" ,perl-authen-sasl)
|
||||
("perl-net-smtp-ssl" ,perl-net-smtp-ssl)
|
||||
("perl-io-socket-ssl" ,perl-io-socket-ssl)
|
||||
|
@ -216,6 +219,8 @@ (define-public git
|
|||
(assoc-ref %build-inputs "bash-for-tests")
|
||||
"/bin/bash")
|
||||
|
||||
"USE_LIBPCRE2=yes"
|
||||
|
||||
;; By default 'make install' creates hard links for
|
||||
;; things in 'libexec/git-core', which leads to huge
|
||||
;; nars; see <https://bugs.gnu.org/21949>.
|
||||
|
@ -505,6 +510,8 @@ (define-public git-minimal
|
|||
(delete-file-recursively
|
||||
(string-append out "/share/gitweb"))
|
||||
#t)))))
|
||||
((#:make-flags flags)
|
||||
`(delete "USE_LIBPCRE2=yes" ,flags))
|
||||
((#:configure-flags flags)
|
||||
''())
|
||||
((#:disallowed-references lst '())
|
||||
|
|
Loading…
Reference in a new issue