[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
18/22: gnu: lib2geom: Use gexps and remove input labels.
From: |
guix-commits |
Subject: |
18/22: gnu: lib2geom: Use gexps and remove input labels. |
Date: |
Sat, 9 Mar 2024 13:28:24 -0500 (EST) |
apteryx pushed a commit to branch core-updates
in repository guix.
commit 00a6855fb8513ba9dd1e7585c82418351910dca7
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Mon Feb 19 11:57:11 2024 -0500
gnu: lib2geom: Use gexps and remove input labels.
* gnu/packages/graphics.scm (lib2geom) [arguments]: Use gexps.
Add #:modules argument.
[native-inputs, inputs, propagated-inputs]: Remove labels.
Change-Id: Ia61ff5e8aa1f64231c98b1fb7f31a49513ede7f8
---
gnu/packages/graphics.scm | 75 +++++++++++++++++++++--------------------------
1 file changed, 33 insertions(+), 42 deletions(-)
diff --git a/gnu/packages/graphics.scm b/gnu/packages/graphics.scm
index 003a24d65b..a565000180 100644
--- a/gnu/packages/graphics.scm
+++ b/gnu/packages/graphics.scm
@@ -907,49 +907,40 @@ exception-handling library.")
"1ypcn0yxk9ny7qg8s8h3px2wpimhfgkwk7x1548ky12iqmdjjmcn"))))
(build-system cmake-build-system)
(arguments
- `(#:imported-modules ((guix build python-build-system)
+ (list
+ #:imported-modules `((guix build python-build-system)
,@%cmake-build-system-modules)
- #:configure-flags '("-D2GEOM_BUILD_SHARED=ON"
- "-D2GEOM_BOOST_PYTHON=ON"
- ;; Compiling the Cython bindings fail (see:
- ;; https://gitlab.com/inkscape/lib2geom/issues/21).
- "-D2GEOM_CYTHON_BINDINGS=OFF")
- #:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'patch-python-lib-install-path
- (lambda* (#:key inputs outputs #:allow-other-keys)
- (let* ((python-version (@ (guix build python-build-system)
- python-version))
- (python-maj-min-version (python-version
- (assoc-ref inputs "python")))
- (site-package (string-append
- (assoc-ref outputs "out")
- "/lib/python" python-maj-min-version
- "/site-packages")))
- (substitute* '("src/cython/CMakeLists.txt"
- "src/py2geom/CMakeLists.txt")
- (("PYTHON_LIB_INSTALL \"[^\"]*\"")
- (format #f "PYTHON_LIB_INSTALL ~s" site-package))))))
- ,@(if (target-x86-32?)
- `((add-after 'unpack 'skip-faulty-test
- (lambda _
- ;; This test fails on i686 when comparing floating point
- ;; values, probably due to excess precision. However,
- ;; '-fexcess-precision' is not implemented for C++ in
- ;; GCC 10 so just skip it.
- (substitute* "tests/CMakeLists.txt"
- (("bezier-test") "")))))
- '()))))
- (native-inputs `(("python" ,python-wrapper)
- ("googletest" ,googletest)
- ("pkg-config" ,pkg-config)))
- (inputs `(("cairo" ,cairo)
- ("pycairo" ,python-pycairo)
- ("double-conversion" ,double-conversion)
- ("glib" ,glib)
- ("gsl" ,gsl)))
- (propagated-inputs
- (list boost)) ;referred to in 2geom/pathvector.h.
+ #:modules '((guix build cmake-build-system)
+ (guix build utils)
+ ((guix build python-build-system) #:prefix python:))
+ #:configure-flags
+ #~(list "-D2GEOM_BUILD_SHARED=ON"
+ "-D2GEOM_BOOST_PYTHON=ON"
+ ;; Compiling the Cython bindings fail (see:
+ ;; https://gitlab.com/inkscape/lib2geom/issues/21).
+ "-D2GEOM_CYTHON_BINDINGS=OFF")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'patch-python-lib-install-path
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (substitute* '("src/cython/CMakeLists.txt"
+ "src/py2geom/CMakeLists.txt")
+ (("PYTHON_LIB_INSTALL \"[^\"]*\"")
+ (format #f "PYTHON_LIB_INSTALL ~s"
+ (python:site-packages inputs outputs))))))
+ #$@(if (target-x86-32?)
+ #~((add-after 'unpack 'skip-faulty-test
+ (lambda _
+ ;; This test fails on i686 when comparing floating
point
+ ;; values, probably due to excess precision. However,
+ ;; '-fexcess-precision' is not implemented for C++ in
+ ;; GCC 10 so just skip it.
+ (substitute* "tests/CMakeLists.txt"
+ (("bezier-test") "")))))
+ #~()))))
+ (native-inputs (list python-wrapper googletest pkg-config))
+ (inputs (list cairo python-pycairo double-conversion glib gsl))
+ (propagated-inputs (list boost)) ;included in 2geom/pathvector.h
(home-page "https://gitlab.com/inkscape/lib2geom/")
(synopsis "C++ 2D graphics library")
(description "2geom is a C++ library of mathematics for paths, curves,
- branch core-updates updated (11d73c8aeb -> a723a7b3b7), guix-commits, 2024/03/09
- 10/22: gnu: pkg-config: Alias to pkgconf-as-pkg-config., guix-commits, 2024/03/09
- 14/22: gnu: autotrace: Fix pkg-config file., guix-commits, 2024/03/09
- 15/22: gnu: gd: Update to 2.3.3., guix-commits, 2024/03/09
- 17/22: gnu: inkscape: Truly enable ImageMagic support., guix-commits, 2024/03/09
- 18/22: gnu: lib2geom: Use gexps and remove input labels.,
guix-commits <=
- 19/22: gnu: inkscape: Update to 1.3.2., guix-commits, 2024/03/09
- 06/22: gnu: pkgconf: Enable test suite., guix-commits, 2024/03/09
- 11/22: gnu: pstoedit: Update to 4.00., guix-commits, 2024/03/09
- 08/22: gnu: pkgconf: Add $PKG_CONFIG_PATH search path., guix-commits, 2024/03/09
- 05/22: gnu: Add kyua., guix-commits, 2024/03/09
- 02/22: gnu: ld-wrapper: Also unset GUILE_LOAD_PATH., guix-commits, 2024/03/09
- 13/22: gnu: autotrace: Remove libtool archives., guix-commits, 2024/03/09
- 04/22: gnu: Add lutok., guix-commits, 2024/03/09
- 22/22: Revert "gnu: mpv: Propagate most libraries.", guix-commits, 2024/03/09
- 03/22: gnu: Add atf., guix-commits, 2024/03/09