[Top][All Lists]

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

Re: [HELP] Packaging mupdf

From: Ricardo Wurmus
Subject: Re: [HELP] Packaging mupdf
Date: Sun, 03 Mar 2019 15:30:11 +0100
User-agent: mu4e 1.0; emacs 26.1

Hi Pierre-Henry,

the mupdf release tarball includes the freeglut sources.  We can reuse
the mupdf package’s “source” field and add a build phase after 'unpack
to change directories.

Here’s how (untested):

--8<---------------cut here---------------start------------->8---
(define freeglut-for-mupdf
    (inherit freeglut)
    (source (origin
              (method url-fetch)
              (uri (string-append "";
                                  name "-" version "-source.tar.xz"))
              (modules '((guix build utils)))
                   (lambda (dir)
                     (delete-file-recursively (string-append "thirdparty/" 
                   '("curl" "freetype" "harfbuzz" "jbig2dec" "lcms2"
                     "libjpeg" "mujs" "openjpeg" "zlib"))
     '(#:tests? #f ; there are none
       (modify-phases %standard-phases
         (add-after 'unpack 'chdir
           (lambda _ (chdir "thirdparty/freeglut") #t)))))))
--8<---------------cut here---------------end--------------->8---

Hope that helps!


reply via email to

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