guix_mirror_bot pushed a commit to branch python-team
in repository guix.

commit 4ab395d0eb5799694c6bffe774ebca9b28846688
Author: Sergey Trofimov <[email protected]>
AuthorDate: Wed Jan 28 14:43:27 2026 +0100

    gnu: libyuv: Update to 1922.
    
    * gnu/packages/image.scm (libyuv): Update to 1922.
    [arguments]<#:configure-flags>: Add -DUNIT_TEST=ON.
    <#:phases>: Replace 'check with custom test.
    [inputs]: Add libjpeg-turbo.
    [native-inputs]: Add googletest.
    * gnu/packages/image.scm (libyuv-prev): Package wrongly versioned
    [email protected] to be superseded by libyuv.
    
    Change-Id: I0ddad9890230f1d670ead46038ad90c051539120
    Signed-off-by: Sharlatan Hellseher <[email protected]>
---
 gnu/packages/image.scm | 27 +++++++++++++++++++++++----
 1 file changed, 23 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/image.scm b/gnu/packages/image.scm
index f608fd9bf8..e037dbab6c 100644
--- a/gnu/packages/image.scm
+++ b/gnu/packages/image.scm
@@ -3088,17 +3088,30 @@ your terminal.")
 (define-public libyuv
   (package
     (name "libyuv")
-    (version "2021.4")
+    (version "1922")
     (source
      (origin
        (method git-fetch)
        (uri (git-reference
             (url "https://chromium.googlesource.com/libyuv/libyuv";)
-            (commit "4620f1705822fd6ab99939f43ce63099bd3d9ae0")))
+             ;; corresponds to version increase in include/libyuv/version.h
+             (commit "500f45652c459cfccd20f83f297eb66cb7b015cb")))
        (sha256
-       (base32 "17vdm2g5qvrby7xa3agiqwh7ips33dxg6sw18s3q2xkfil4xw3mm"))))
+        (base32 "0lmmag8rlpsbq5qg7cv89dcm5j7r0rbbsmjnkg8f5ld29mdd50y3"))))
     (build-system cmake-build-system)
-    (arguments (list #:tests? #f))
+    (arguments
+     (list
+      #:configure-flags
+      #~(list "-DUNIT_TEST=ON")
+      #:phases
+      #~(modify-phases %standard-phases
+          (replace 'check
+            (lambda _
+              ;; tests are configured in GN instead of ctest
+              ;; invoke them manually
+              (invoke "./libyuv_unittest"))))))
+    (inputs (list libjpeg-turbo))
+    (native-inputs (list googletest))
     (home-page "https://chromium.googlesource.com/libyuv/libyuv/";)
     (synopsis "YUV scaling and conversion functionality")
     (description "libyuv is an open source project that includes YUV scaling 
and
@@ -3111,3 +3124,9 @@ filter.
 @item Rotate by 90/180/270 degrees to adjust for mobile devices in portrait 
mode.
 @end itemize")
     (license license:expat)))
+
+(define-public libyuv-prev
+  (package
+    (inherit libyuv)
+    (version "2021.4")
+    (properties `((superseded . ,libyuv)))))

Reply via email to