diff --git a/gnu/packages/fontutils.scm b/gnu/packages/fontutils.scm index bdabe2adee..300290a21d 100644 --- a/gnu/packages/fontutils.scm +++ b/gnu/packages/fontutils.scm @@ -2,7 +2,7 @@ ;;; Copyright © 2013, 2014, 2015 Andreas Enge ;;; Copyright © 2014, 2016 Eric Bavier ;;; Copyright © 2016 Mark H Weaver -;;; Copyright © 2016, 2017, 2020, 2022 Efraim Flashner +;;; Copyright © 2016, 2017, 2020, 2022, 2023 Efraim Flashner ;;; Copyright © 2017 Rene Saavedra ;;; Copyright © 2017 Leo Famulari ;;; Copyright © 2017 Nikita @@ -97,7 +97,16 @@ (define-public freetype (arguments ;; The use of "freetype-config" is deprecated, but other packages still ;; depend on it. - `(#:configure-flags (list "--enable-freetype-config"))) + `(#:configure-flags (list "--enable-freetype-config") + #:disallowed-references (,pkg-config) + #:phases + (modify-phases %standard-phases + (add-after 'install 'remove-reference-to-pkg-config + (lambda* (#:key inputs outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (substitute* (string-append out "/bin/freetype-config") + (((search-input-file inputs "/bin/pkg-config")) + "pkg-config")))))))) (native-inputs (list pkg-config)) (propagated-inputs