From 6acc671befa8567360bc014f43ee8a9dc69b33d9 Mon Sep 17 00:00:00 2001
From: Tobias Geerinckx-Rice <me@tobias.gr>
Date: Wed, 6 Jun 2018 23:08:14 +0200
Subject: [PATCH] gnu: jbig2dec: Update source and home page URIs.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

The old downloads.ghostscript.com returns a bogus 200 response, while
the new home page lists a different source.

Reported by Gábor Boskovits <boskovits@gmail.com>.

* gnu/packages/image.scm (jbig2dec)[source, home-page]: Update URIs.
---
 gnu/packages/image.scm | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/image.scm b/gnu/packages/image.scm
index 0f15685d333..a2874be1a8a 100644
--- a/gnu/packages/image.scm
+++ b/gnu/packages/image.scm
@@ -487,8 +487,9 @@ (define-public jbig2dec
     (source
       (origin
         (method url-fetch)
-        (uri (string-append "http://downloads.ghostscript.com/public/" name "/"
-                            name "-" version ".tar.gz"))
+        (uri
+         (string-append "https://github.com/ArtifexSoftware/ghostpdl-downloads/"
+                        "releases/download/gs922/" name "-" version ".tar.gz"))
         (sha256
           (base32 "0k01hp0q4275fj4rbr1gy64svfraw5w7wvwl08yjhvsnpb1rid11"))
         (patches (search-patches "jbig2dec-ignore-testtest.patch"))))
@@ -504,7 +505,7 @@ (define-public jbig2dec
 stage, meaning it doesn't completely work yet.  However, it is
 maintaining parity with available encoders, so it is useful for real
 work.")
-    (home-page "http://www.ghostscript.com/jbig2dec.html")
+    (home-page "https://jbig2dec.com")
     (license license:gpl2+)))
 
 (define-public openjpeg
-- 
GitLab