mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-13 22:50:23 -05:00
gnu: graphite2: Build against Python 3.
Previously, the Python tests were skipped, because they require Python 3. * gnu/packages/fontutils.scm (graphite2)[arguments]: New field. [native-inputs]: Change PYTHON-2 and PYTHON2-FONTTOOLS to PYTHON and PYTHON-FONTTOOLS.
This commit is contained in:
parent
b0dc2454cc
commit
c4fa39188a
1 changed files with 14 additions and 2 deletions
|
@ -9,6 +9,7 @@
|
||||||
;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
|
;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
|
||||||
;;; Copyright © 2018 Ricardo Wurmus <rekado@elephly.net>
|
;;; Copyright © 2018 Ricardo Wurmus <rekado@elephly.net>
|
||||||
;;; Copyright © 2018 Ludovic Courtès <ludo@gnu.org>
|
;;; Copyright © 2018 Ludovic Courtès <ludo@gnu.org>
|
||||||
|
;;; Copyright © 2019 Marius Bakke <mbakke@fastmail.com>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
;;;
|
;;;
|
||||||
|
@ -438,9 +439,20 @@ (define-public graphite2
|
||||||
(base32
|
(base32
|
||||||
"01jzhwnj1c3d68dmw15jdxly0hwkmd8ja4kw755rbkykn1ly2qyx"))))
|
"01jzhwnj1c3d68dmw15jdxly0hwkmd8ja4kw755rbkykn1ly2qyx"))))
|
||||||
(build-system cmake-build-system)
|
(build-system cmake-build-system)
|
||||||
|
(arguments
|
||||||
|
`(#:phases (modify-phases %standard-phases
|
||||||
|
(add-after 'unpack 'adjust-test-PYTHONPATH
|
||||||
|
(lambda _
|
||||||
|
;; Tell the build system not to override PYTHONPATH
|
||||||
|
;; while running the Python tests.
|
||||||
|
(substitute* "Graphite.cmake"
|
||||||
|
(("ENVIRONMENT PYTHONPATH=")
|
||||||
|
(string-append "ENVIRONMENT PYTHONPATH="
|
||||||
|
(getenv "PYTHONPATH") ":")))
|
||||||
|
#t)))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("python" ,python-2) ; because of "import imap" in tests
|
`(("python" ,python)
|
||||||
("python-fonttools" ,python2-fonttools)))
|
("python-fonttools" ,python-fonttools)))
|
||||||
(inputs
|
(inputs
|
||||||
`(("freetype" ,freetype)))
|
`(("freetype" ,freetype)))
|
||||||
(synopsis "Reimplementation of the SIL Graphite text processing engine")
|
(synopsis "Reimplementation of the SIL Graphite text processing engine")
|
||||||
|
|
Loading…
Reference in a new issue