Subject: Re: [bug#67893] [PATCH] gnu: Add libdisplay-info.
From: Ludovic Courtès <[email-masked]>
To: Jaeme Sifat <[email-masked]>
Cc: [email-masked]
Date: Sun, 18 Feb 2024 16:03:09 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi,

Jaeme Sifat <[email-masked]> skribis:

> libdisplay-info is a new dependency for the [email-masked] update. As
> seen here:
>
> - https://gitlab.freedesktop.org/wlroots/wlroots/-/releases/0.17.0
>
> The 'fix-meson-file phase was ripped right out of the [email-masked]
> package. There was a surprise build dependency for Python in
> generating the database.
>
> * gnu/packages/wm.scm (libdisplay-info): New variable.
>
> Change-Id: If6a466b902f4babdfb5bc9b3935c2d14f42ae662

Applied with the cosmetic changes below, thanks!

Ludo’.

diff --git a/gnu/packages/wm.scm b/gnu/packages/wm.scm
index 4c7f19d3ef..9abf505caf 100644
--- a/gnu/packages/wm.scm
+++ b/gnu/packages/wm.scm
@@ -2982,12 +2982,11 @@ (define-public libdisplay-info
     (package
       (name "libdisplay-info")
       (version (git-version "0.2.0-dev" revision commit))
+      (home-page "https://gitlab.freedesktop.org/emersion/libdisplay-info")
       (source
        (origin
          (method git-fetch)
-         (uri (git-reference
-               (url "https://gitlab.freedesktop.org/emersion/libdisplay-info")
-               (commit commit)))
+         (uri (git-reference (url home-page) (commit commit)))
          (file-name (git-file-name name version))
          (sha256
           (base32 "1ly8acdjxn8l55y0wc07n7pb6rzh9dpr1vbsakdib2zrl0i5yh3a"))))
@@ -3003,15 +3002,20 @@ (define-public libdisplay-info
                                                       "hwdata")
                                            "/share/hwdata/pnp.ids"))))))))
       (native-inputs (list `(,hwdata "pnp") python))
-      (home-page "https://gitlab.freedesktop.org/emersion/libdisplay-info")
       (synopsis "EDID and DisplayID library")
       (description
-       "A EDID and DisplayID library with the following goals:
+       "This package provides a library to read @acronym{EDID, Extended
+Display Identification Data} and DisplayID metadata from display devices.  It
+has the following goals:
+
 @enumerate
-@item    Provide a set of high-level, easy-to-use, opinionated functions
-         as well as low-level functions to access detailed information.
-@item    Simplicity and correctness over performance and resource usage.
-@item    Well-tested and fuzzed.
+@item
+Provide a set of high-level, easy-to-use, opinionated functions
+as well as low-level functions to access detailed information.
+@item
+Simplicity and correctness over performance and resource usage.
+@item
+Well-tested and fuzzed.
 @end enumerate")
       (license license:expat))))