mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-22 10:39:39 -05:00
gnu: mg: Set PKG_CONFIG instead of substituting.
* gnu/packages/text-editors.scm (mg)[arguments]: Add PKG_CONFIG to #:make-flags, and remove the custom 'pkg-config-for-cross-compiling-target phase.
This commit is contained in:
parent
7f2b9306ee
commit
5d2e3b6b23
1 changed files with 2 additions and 8 deletions
|
@ -532,7 +532,8 @@ (define-public mg
|
|||
;; No test suite available.
|
||||
`(#:tests? #f
|
||||
#:make-flags (list (string-append "prefix=" %output)
|
||||
(string-append "CC=" ,(cc-for-target)))
|
||||
(string-append "CC=" ,(cc-for-target))
|
||||
(string-append "PKG_CONFIG=" ,(pkg-config-for-target)))
|
||||
#:phases (modify-phases %standard-phases
|
||||
(delete 'configure) ; no configure script
|
||||
(add-before 'build 'correct-location-of-diff
|
||||
|
@ -541,13 +542,6 @@ (define-public mg
|
|||
(("/usr/bin/diff")
|
||||
(string-append (assoc-ref inputs "diffutils")
|
||||
"/bin/diff")))))
|
||||
(add-before 'build 'pkg-config-for-cross-compiling-target
|
||||
(lambda _
|
||||
(substitute* "GNUmakefile"
|
||||
(("pkg-config")
|
||||
(or (which "pkg-config")
|
||||
(string-append ,(%current-target-system)
|
||||
"-pkg-config"))))))
|
||||
(add-before 'install 'patch-tutorial-location
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(substitute* "mg.1"
|
||||
|
|
Loading…
Reference in a new issue