summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/xcb-util-image/package.py
diff options
context:
space:
mode:
authorWouter Deconinck <wdconinc@gmail.com>2023-03-22 03:45:16 -0500
committerGitHub <noreply@github.com>2023-03-22 09:45:16 +0100
commit8a48f9a479802034c14c7ca9c207326b3e9c4889 (patch)
treed9668a89df02233660843ea7edb2cd832ba4410c /var/spack/repos/builtin/packages/xcb-util-image/package.py
parent6551ad8711bc97b3df0df7ed0e84911ec7606322 (diff)
downloadspack-8a48f9a479802034c14c7ca9c207326b3e9c4889.tar.gz
spack-8a48f9a479802034c14c7ca9c207326b3e9c4889.tar.bz2
spack-8a48f9a479802034c14c7ca9c207326b3e9c4889.tar.xz
spack-8a48f9a479802034c14c7ca9c207326b3e9c4889.zip
xcb-util-*: new versions, migration to freedesktop.org (#36241)
The xcb-utils have been migrated to the gitlab.freedesktop.org, from the previous separate location. That means that a URL change is needed to pick up newer version ([ref](https://lists.freedesktop.org/archives/xcb/2022-October/011422.html)). This replaces the `homepage` and `url` with the latest (to an `xz` file), adds a `url_for_version` function to resolve past versions, and add the latest versions. Because of the `url_for_version` I don't think we can use the `xorg_mirror_path` approach here. Co-authored-by: wdconinc <wdconinc@users.noreply.github.com>
Diffstat (limited to 'var/spack/repos/builtin/packages/xcb-util-image/package.py')
-rw-r--r--var/spack/repos/builtin/packages/xcb-util-image/package.py13
1 files changed, 9 insertions, 4 deletions
diff --git a/var/spack/repos/builtin/packages/xcb-util-image/package.py b/var/spack/repos/builtin/packages/xcb-util-image/package.py
index fe00a84bd7..46e7adbfd6 100644
--- a/var/spack/repos/builtin/packages/xcb-util-image/package.py
+++ b/var/spack/repos/builtin/packages/xcb-util-image/package.py
@@ -6,7 +6,7 @@
from spack.package import *
-class XcbUtilImage(AutotoolsPackage):
+class XcbUtilImage(AutotoolsPackage, XorgPackage):
"""The XCB util modules provides a number of libraries which sit on top
of libxcb, the core X protocol library, and some of the extension
libraries. These experimental libraries provide convenience functions
@@ -14,10 +14,15 @@ class XcbUtilImage(AutotoolsPackage):
libraries also provide client-side code which is not strictly part of
the X protocol but which have traditionally been provided by Xlib."""
- homepage = "https://xcb.freedesktop.org/"
- url = "https://xcb.freedesktop.org/dist/xcb-util-image-0.4.0.tar.gz"
+ homepage = "https://gitlab.freedesktop.org/xorg/lib/libxcb-image"
+ xorg_mirror_path = "lib/xcb-util-image-0.4.1.tar.xz"
- version("0.4.0", sha256="cb2c86190cf6216260b7357a57d9100811bb6f78c24576a3a5bfef6ad3740a42")
+ version("0.4.1", sha256="ccad8ee5dadb1271fd4727ad14d9bd77a64e505608766c4e98267d9aede40d3d")
+ version(
+ "0.4.0",
+ sha256="cb2c86190cf6216260b7357a57d9100811bb6f78c24576a3a5bfef6ad3740a42",
+ url="https://xcb.freedesktop.org/dist/xcb-util-image-0.4.0.tar.gz",
+ )
depends_on("libxcb@1.4:")
depends_on("xcb-util")