diff options
Diffstat (limited to 'gnu/packages/plotutils.scm')
| -rw-r--r-- | gnu/packages/plotutils.scm | 50 |
1 files changed, 33 insertions, 17 deletions
diff --git a/gnu/packages/plotutils.scm b/gnu/packages/plotutils.scm index 4968cebb50e..397709c8e40 100644 --- a/gnu/packages/plotutils.scm +++ b/gnu/packages/plotutils.scm | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | ;;; Copyright © 2015 Eric Bavier <bavier@member.fsf.org> | 3 | ;;; Copyright © 2015 Eric Bavier <bavier@member.fsf.org> |
| 4 | ;;; Copyright © 2016-2025 Nicolas Goaziou <mail@nicolasgoaziou.fr> | 4 | ;;; Copyright © 2016-2025 Nicolas Goaziou <mail@nicolasgoaziou.fr> |
| 5 | ;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr> | 5 | ;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr> |
| 6 | ;;; Copyright © 2020 Maxim Cournoyer <maxim@guixotic.coop> | 6 | ;;; Copyright © 2020, 2025 Maxim Cournoyer <maxim@guixotic.coop> |
| 7 | ;;; Copyright © 2022 Antero Mejr <antero@mailbox.org> | 7 | ;;; Copyright © 2022 Antero Mejr <antero@mailbox.org> |
| 8 | ;;; Copyright © 2023 gemmaro <gemmaro.dev@gmail.com> | 8 | ;;; Copyright © 2023 gemmaro <gemmaro.dev@gmail.com> |
| 9 | ;;; | 9 | ;;; |
| @@ -45,6 +45,7 @@ | |||
| 45 | #:use-module (gnu packages flex) | 45 | #:use-module (gnu packages flex) |
| 46 | #:use-module (gnu packages ghostscript) | 46 | #:use-module (gnu packages ghostscript) |
| 47 | #:use-module (gnu packages gl) | 47 | #:use-module (gnu packages gl) |
| 48 | #:use-module (gnu packages graphics) | ||
| 48 | #:use-module (gnu packages gtk) | 49 | #:use-module (gnu packages gtk) |
| 49 | #:use-module (gnu packages guile) | 50 | #:use-module (gnu packages guile) |
| 50 | #:use-module (gnu packages image) | 51 | #:use-module (gnu packages image) |
| @@ -375,17 +376,27 @@ colors, styles, options and details.") | |||
| 375 | (substitute* "libplot/z_write.c" | 376 | (substitute* "libplot/z_write.c" |
| 376 | (("png_ptr->jmpbuf") | 377 | (("png_ptr->jmpbuf") |
| 377 | "png_jmpbuf (png_ptr)")) | 378 | "png_jmpbuf (png_ptr)")) |
| 378 | #t)) | 379 | ;; Unbundle libxmi. |
| 380 | (delete-file-recursively "libxmi"))) | ||
| 379 | (patches | 381 | (patches |
| 380 | ;; The test suite fails on some architectures such as i686 (see: | 382 | (search-patches |
| 381 | ;; https://lists.gnu.org/archive/html/bug-plotutils/2016-04/msg00002.html). | 383 | "plotutils-c23.patch" |
| 382 | ;; The following Debian patch works around it. | 384 | "plotutils-configure-c99.patch" |
| 383 | (search-patches "plotutils-spline-test.patch")))) | 385 | "plotutils-cxx17-fix.patch" |
| 386 | "plotutils-format-security.patch" | ||
| 387 | "plotutils-libxmi.patch" | ||
| 388 | "plotutils-makefile.patch" | ||
| 389 | "plotutils-rangecheck.patch" | ||
| 390 | ;; The test suite fails on some architectures such as i686 | ||
| 391 | ;; (see: | ||
| 392 | ;; https://lists.gnu.org/archive/html/bug-plotutils/2016-04/msg00002.html). | ||
| 393 | ;; The following Debian patch works around it. | ||
| 394 | "plotutils-spline-test.patch")))) | ||
| 384 | (build-system gnu-build-system) | 395 | (build-system gnu-build-system) |
| 385 | (arguments | 396 | (arguments |
| 386 | (list #:configure-flags | 397 | (list #:configure-flags |
| 387 | #~(list "--enable-libplotter" | 398 | #~(list "--enable-libplotter" |
| 388 | 399 | "--disable-static" | |
| 389 | ;; On i686 some tests fail due to excess floating point | 400 | ;; On i686 some tests fail due to excess floating point |
| 390 | ;; precision; work around it. However, libplotter is C++ | 401 | ;; precision; work around it. However, libplotter is C++ |
| 391 | ;; and thus unaffected by CFLAGS, but '-fexcess-precision' | 402 | ;; and thus unaffected by CFLAGS, but '-fexcess-precision' |
| @@ -395,16 +406,21 @@ colors, styles, options and details.") | |||
| 395 | #~())) | 406 | #~())) |
| 396 | 407 | ||
| 397 | #:phases | 408 | #:phases |
| 398 | (if (target-x86-32?) | 409 | #~(modify-phases %standard-phases |
| 399 | #~(modify-phases %standard-phases | 410 | (add-after 'unpack 'force-bootstrap |
| 400 | (add-before 'check 'skip-sloppy-test | 411 | (lambda _ |
| 401 | (lambda _ | 412 | (delete-file "configure"))) |
| 402 | ;; This test reveals a slight difference in the SVG | 413 | #$@(if (target-x86-32?) |
| 403 | ;; output due to floating point inequalities. Skip it. | 414 | #~((add-before 'check 'skip-sloppy-test |
| 404 | (substitute* "test/plot2svg.test" | 415 | (lambda _ |
| 405 | (("^exit .*") "exit 77"))))) | 416 | ;; This test reveals a slight difference in the |
| 406 | #~%standard-phases))) | 417 | ;; SVG output due to floating point inequalities. |
| 407 | (inputs (list libpng libx11 libxt libxaw)) | 418 | ;; Skip it. |
| 419 | (substitute* "test/plot2svg.test" | ||
| 420 | (("^exit .*") "exit 77"))))) | ||
| 421 | #~())))) | ||
| 422 | (native-inputs (list autoconf automake libtool)) | ||
| 423 | (inputs (list libpng libx11 libxaw libxmi libxt)) | ||
| 408 | (home-page "https://www.gnu.org/software/plotutils/") | 424 | (home-page "https://www.gnu.org/software/plotutils/") |
| 409 | (synopsis "Plotting utilities and library") | 425 | (synopsis "Plotting utilities and library") |
| 410 | (description | 426 | (description |
