~ruther/guix-local

1a6870365b63459ef6623303ffac96381a7838e2 — Andreas Enge 1 year, 4 months ago cd3a45a
gnu: podofo: Modernise package definition.

* gnu/packages/pdf.scm (podofo)[source]: Use git download.
[arguments]: Use gexps.
[home-page]: Update.

Change-Id: I0ad13ed66d67c95fc189008bd043b3bd90aeb4c7
1 files changed, 14 insertions(+), 12 deletions(-)

M gnu/packages/pdf.scm
M gnu/packages/pdf.scm => gnu/packages/pdf.scm +14 -12
@@ 757,12 757,14 @@ interaction.")
    (name "podofo")
    (version "0.9.8")
    (source (origin
              (method url-fetch)
              (uri (string-append "mirror://sourceforge/podofo/podofo/" version
                                  "/podofo-" version ".tar.gz"))
              (method git-fetch)
              (uri (git-reference
                    (url "https://github.com/podofo/podofo")
                    (commit version)))
              (file-name (git-file-name name version))
              (sha256
               (base32
                "0m2icjy35jd0900g0fyfrmf0zsldv1chfc1q0zcqlaqrbzhhgrjx"))))
                "1fyv0zbl6zs93wy0qb3mjkfm99pgz5275nkzss115ww2w04h0ssl"))))
    (build-system cmake-build-system)
    (native-inputs
     (list cppunit pkg-config))


@@ 776,17 778,17 @@ interaction.")
           openssl
           zlib))
    (arguments
     `(#:configure-flags
       (list "-DPODOFO_BUILD_SHARED=ON")
     (list
       #:configure-flags
         #~(list "-DPODOFO_BUILD_SHARED=ON")
       #:phases
       (modify-phases %standard-phases
         (add-before 'configure 'patch
           (lambda* (#:key inputs #:allow-other-keys)
             (let ((freetype (assoc-ref inputs "freetype")))
         #~(modify-phases %standard-phases
           (add-before 'configure 'patch
             (lambda _
               ;; Look for freetype include files in the correct place.
               (substitute* "cmake/modules/FindFREETYPE.cmake"
                 (("/usr/local") freetype))))))))
    (home-page "https://podofo.sourceforge.net")
                 (("/usr/local") #$freetype)))))))
    (home-page "https://github.com/podofo/podofo")
    (synopsis "Tools to work with the PDF file format")
    (description
     "PoDoFo is a C++ library and set of command-line tools to work with the