guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/02: gnu: python-reportlib: Add missing libraries.


From: guix-commits
Subject: 01/02: gnu: python-reportlib: Add missing libraries.
Date: Sat, 25 Apr 2020 15:52:06 -0400 (EDT)

efraim pushed a commit to branch master
in repository guix.

commit 2d8270ad56e98035a4dd4dfdab77e730d929a001
Author: Efraim Flashner <address@hidden>
AuthorDate: Sat Apr 25 22:46:34 2020 +0300

    gnu: python-reportlib: Add missing libraries.
    
    * gnu/packages/pdf.scm (python-reportlib)[arguments]: Add
    'use-system-libart' configure flag. Add custom phase to find libraries.
    [inputs]: Add libart-lgpl, font-curve-files.
---
 gnu/packages/pdf.scm | 34 +++++++++++++++++++++++++++++-----
 1 file changed, 29 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/pdf.scm b/gnu/packages/pdf.scm
index a7d7ee1..90be195 100644
--- a/gnu/packages/pdf.scm
+++ b/gnu/packages/pdf.scm
@@ -5,7 +5,7 @@
 ;;; Copyright © 2015 Paul van der Walt <address@hidden>
 ;;; Copyright © 2016 Roel Janssen <address@hidden>
 ;;; Copyright © 2016 ng0 <address@hidden>
-;;; Copyright © 2016, 2017, 2018, 2019 Efraim Flashner <address@hidden>
+;;; Copyright © 2016, 2017, 2018, 2019, 2020 Efraim Flashner <address@hidden>
 ;;; Copyright © 2016, 2017 Marius Bakke <address@hidden>
 ;;; Copyright © 2016, 2017, 2019 Ludovic Courtès <address@hidden>
 ;;; Copyright © 2016 Julien Lepiller <address@hidden>
@@ -913,11 +913,35 @@ optimize toolbar for portrait / landscape
                 "0lf8hil9nbm74zl27l8rydxbhwnpr0pbghibsqrc9sglds9l9vw3"))))
     (build-system python-build-system)
     (arguments
-     '(;; FIXME: There is one test failure, but it does not cause the
-       ;; build to fail. No time to investigate right now.
-       #:test-target "tests"))
+     '(;; FIXME: There is one test failure, building the pdf manual from 
source,
+       ;; but it does not cause the build to fail.
+       #:test-target "tests"
+       #:configure-flags (list "--use-system-libart")
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'find-libraries
+           (lambda* (#:key inputs #:allow-other-keys)
+             (let ((libart (assoc-ref inputs "libart-lgpl"))
+                   (freetype (assoc-ref inputs "freetype"))
+                   (dlt1 (assoc-ref inputs "font-curve-files")))
+               (substitute* "setup.py"
+                 (("/usr/include/libart-\\*")
+                  (string-append libart "/include/libart-2.0"))
+                 (("/usr/include/freetype2")
+                  (string-append freetype "/include"))
+                 (("http://www.reportlab.com/ftp/pfbfer-20180109.zip";)
+                  (string-append "file://" dlt1)))
+               #t))))))
     (inputs
-     `(("freetype" ,freetype)))
+     `(("freetype" ,freetype)
+       ("libart-lgpl" ,libart-lgpl)
+       ("font-curve-files"
+        ,(origin
+           (method url-fetch)
+           (uri "http://www.reportlab.com/ftp/pfbfer-20180109.zip";)
+           (sha256
+            (base32
+             "1v0gy4mbx02ys96ssx89420y0njknlrxs2bx64bv4rp8a0al66w5"))))))
     (propagated-inputs
      `(("python-pillow" ,python-pillow)))
     (home-page "https://www.reportlab.com";)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]