Subject: [PATCH] gnu: lensfun: Update to 0.3.3.
From: John Kehayias <[email-masked]>
To: Guix-patches <[email-masked]>
Date: Tue, 26 Apr 2022 17:01:15 +0000
List-Id: <debbugs-submit.debbugs.gnu.org>

Hello,

A little update for the lensfun package, including new source and homepage URLs. I've tested this works with Darktable, bringing in lots of new lens corrections.

Thanks!
John

From 8500da1a3f4bd7890d269b3a4bdf5b205045c7c6 Mon Sep 17 00:00:00 2001
From: John Kehayias <[email-masked]>
Date: Tue, 26 Apr 2022 12:57:09 -0400
Subject: [PATCH] gnu: lensfun: Update to 0.3.3.

* gnu/packages/photo.scm (lensfun): Update to 0.3.3.
[source, homepage]: Update URLs as the project has moved.
---
 gnu/packages/photo.scm | 22 ++++++++++++----------
 1 file changed, 12 insertions(+), 10 deletions(-)

diff --git a/gnu/packages/photo.scm b/gnu/packages/photo.scm
index 2f561abc2f..f534a013bc 100644
--- a/gnu/packages/photo.scm
+++ b/gnu/packages/photo.scm
@@ -9,6 +9,7 @@
 ;;; Copyright © 2020 Sebastian Schott <[email-masked]>
 ;;; Copyright © 2020 Vincent Legoll <[email-masked]>
 ;;; Copyright © 2020. 2021, 2022 Vinicius Monego <[email-masked]>
+;;; Copyright © 2022 John Kehayias <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -415,15 +416,16 @@ (define-public enblend-enfuse
 (define-public lensfun
   (package
     (name "lensfun")
-    (version "0.3.2")
-    (source (origin
-              (method url-fetch)
-              (uri (string-append
-                    "mirror://sourceforge/lensfun/"
-                    version "/lensfun-" version ".tar.gz"))
-              (sha256
-               (base32
-                "0cfk8jjhs9nbfjfdy98plrj9ayi59aph0nx6ppslgjhlcvacm2xf"))))
+    (version "0.3.3")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/lensfun/lensfun")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1pv2y9yqzkw70p501425mf9cqv6yy8ppw5ilkpbd9bw9nss1js76"))))
     (build-system cmake-build-system)
     (arguments
      `(,@(if (any (cute string-prefix? <> (or (%current-system)
@@ -437,7 +439,7 @@ (define-public lensfun
      (list pkg-config))
     (inputs
      (list glib))
-    (home-page "https://sourceforge.net/projects/lensfun/")
+    (home-page "https://lensfun.github.io/")
     (synopsis "Library to correct optical lens defects with a lens database")
     (description "Digital photographs are not ideal.  Of course, the better is
 your camera, the better the results will be, but in any case if you look
-- 
2.35.1