From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: [HELP] Packaging mupdf Date: Sun, 03 Mar 2019 15:30:11 +0100 Message-ID: <87h8ckvxn0.fsf@elephly.net> References: <87mumcx6rv.fsf@elephly.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:44669) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h0S8T-0000Et-2X for help-guix@gnu.org; Sun, 03 Mar 2019 09:30:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h0S8S-0001YG-9r for help-guix@gnu.org; Sun, 03 Mar 2019 09:30:37 -0500 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21007) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h0S8R-0001V5-N1 for help-guix@gnu.org; Sun, 03 Mar 2019 09:30:36 -0500 In-reply-to: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: "Pierre-Henry F." Cc: "help-guix@gnu.org" Hi Pierre-Henry, the mupdf release tarball includes the freeglut sources. We can reuse the mupdf package=E2=80=99s =E2=80=9Csource=E2=80=9D field and add a build = phase after 'unpack to change directories. Here=E2=80=99s how (untested): --8<---------------cut here---------------start------------->8--- (define freeglut-for-mupdf (package (inherit freeglut) (source (origin (method url-fetch) (uri (string-append "https://mupdf.com/downloads/archive/" name "-" version "-source.tar.xz")) (sha256 (base32 "1psnz02w5p7wc1s1ma7vvjmkjfy641xvsh9ykaqzkk84dflnjgk0")) (modules '((guix build utils))) (snippet '(begin (for-each (lambda (dir) (delete-file-recursively (string-append "thirdparty/" = dir))) '("curl" "freetype" "harfbuzz" "jbig2dec" "lcms2" "libjpeg" "mujs" "openjpeg" "zlib")) #t)))) (arguments '(#:tests? #f ; there are none #:phases (modify-phases %standard-phases (add-after 'unpack 'chdir (lambda _ (chdir "thirdparty/freeglut") #t))))))) --8<---------------cut here---------------end--------------->8--- Hope that helps! -- Ricardo