[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
16/19: gnu: python-afdko: Update to 3.9.1.
From: |
guix-commits |
Subject: |
16/19: gnu: python-afdko: Update to 3.9.1. |
Date: |
Fri, 16 Sep 2022 13:04:33 -0400 (EDT) |
mbakke pushed a commit to branch master
in repository guix.
commit fa0efe133e5ba0313054699e6ee45a55f348ec3e
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Fri Sep 16 00:52:08 2022 +0200
gnu: python-afdko: Update to 3.9.1.
* gnu/packages/fontutils.scm (python-afdko): Update to 3.9.1.
[arguments]: Add phase to build with system libxml2. Substitute
antlr4_static
in one more file.
[native-inputs]: Add PKG-CONFIG.
[inputs]: Add LIBXML2.
---
gnu/packages/fontutils.scm | 28 ++++++++++++++++++++++++----
1 file changed, 24 insertions(+), 4 deletions(-)
diff --git a/gnu/packages/fontutils.scm b/gnu/packages/fontutils.scm
index 9ada1907f8..cf9c0d0a3c 100644
--- a/gnu/packages/fontutils.scm
+++ b/gnu/packages/fontutils.scm
@@ -138,13 +138,13 @@ them as it goes.")
(define-public python-afdko
(package
(name "python-afdko")
- (version "3.8.1")
+ (version "3.9.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "afdko" version))
(sha256
- (base32 "171r9f7n8fgz37dkcgpzj508lxfafcyzzx43ps12j1z2nk1sk905"))
+ (base32 "0k1204vykgx32saa495s1lgmz1dixcp8bjiv486imx77killvm02"))
(modules '((guix build utils)))
(snippet
#~(begin
@@ -164,6 +164,21 @@ them as it goes.")
(list
#:phases
#~(modify-phases %standard-phases
+ (add-after 'unpack 'use-system-libxml2
+ (lambda _
+ ;; XXX: These horrifying substitutions revert this upstream
+ ;; PR: <https://github.com/adobe-type-tools/afdko/pull/1527>.
+ ;; Hopefully it's only temporary..!
+ (substitute* (find-files "." "^CMakeLists.txt$")
+ (("\\(\\(NOT \\$\\{LibXml2_FOUND\\}\\) OR \
+\"\\$\\{CMAKE_SYSTEM\\}\" MATCHES \"Linux\"\\)")
+ "(NOT ${LibXml2_FOUND})")
+ (("\\(\\(\\$\\{LibXml2_FOUND\\}\\) AND \
+\\(NOT \"\\$\\{CMAKE_SYSTEM\\}\" MATCHES \"Linux\"\\)\\)")
+ "(${LibXml2_FOUND})"))
+ (substitute* "cmake/ExternalLibXML2.cmake"
+ (("set\\(LIBXML2_STATIC_INCLUDE_DIR")
+ "set(LIBXML2_INCLUDE_DIR)"))))
(add-after 'unpack 'patch-problematic-requirements
(lambda _
(substitute* "requirements.txt"
@@ -183,7 +198,8 @@ them as it goes.")
(format #f "include_directories(SYSTEM ~a)"
(search-input-directory inputs
"include/antlr4-runtime"))))
- (substitute* "c/makeotf/lib/hotconv/CMakeLists.txt"
+ (substitute* '("c/makeotf/lib/hotconv/CMakeLists.txt"
+ "c/makeotf/lib/cffread/CMakeLists.txt")
(("antlr4_static")
"antlr4-runtime"))))
(add-after 'unpack 'regenerate-hotconv-grammar
@@ -223,12 +239,16 @@ them as it goes.")
(list antlr4
openjdk ;required by antlr4
ninja
+ pkg-config
python-pytest
python-pytest-xdist
python-scikit-build
python-setuptools-scm
python-wheel))
- (inputs (list java-antlr4-runtime-cpp `(,util-linux "lib")))
+ (inputs
+ (list java-antlr4-runtime-cpp
+ libxml2
+ `(,util-linux "lib")))
(propagated-inputs
(list psautohint
python-booleanoperations
- branch master updated (106660e3ff -> 888dfc8eb6), guix-commits, 2022/09/16
- 09/19: gnu: python-fontparts: Update to 0.10.8., guix-commits, 2022/09/16
- 06/19: gnu: Add python-glyphsets., guix-commits, 2022/09/16
- 11/19: gnu: python-fonttools-next: Update to 4.37.1., guix-commits, 2022/09/16
- 12/19: gnu: python-statmake: Build with python-fonttools-next., guix-commits, 2022/09/16
- 16/19: gnu: python-afdko: Update to 3.9.1.,
guix-commits <=
- 17/19: gnu: antlr4: Update to 4.10.1., guix-commits, 2022/09/16
- 01/19: gnu: hitch: Update to 1.7.3., guix-commits, 2022/09/16
- 02/19: gnu: nfs-utils: Remove unused input., guix-commits, 2022/09/16
- 04/19: gnu: Add python-openstep-plist., guix-commits, 2022/09/16
- 15/19: gnu: font-amiri: Update to 0.117., guix-commits, 2022/09/16
- 10/19: gnu: python-compreffor: Update to 0.5.2., guix-commits, 2022/09/16
- 08/19: gnu: python-defcon: Update to 0.10.2., guix-commits, 2022/09/16
- 07/19: gnu: python-fontmath: Update to 0.9.2., guix-commits, 2022/09/16
- 05/19: gnu: Add python-glyphslib., guix-commits, 2022/09/16
- 13/19: gnu: psautohint: Build with python-fonttools-next., guix-commits, 2022/09/16