forked from spack/spack
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libxcb, xcb-proto: add v1.17.1 (spack#44394)
* libxcb, xcb-proto: add v1.17.1 * libxcb, xcb-proto: inherit XorgPackage * xcb-proto: http -> https
- Loading branch information
Showing
8 changed files
with
39 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,30 +6,39 @@ | |
from spack.package import * | ||
|
||
|
||
class Libxcb(AutotoolsPackage): | ||
class Libxcb(AutotoolsPackage, XorgPackage): | ||
"""The X protocol C-language Binding (XCB) is a replacement | ||
for Xlib featuring a small footprint, latency hiding, direct | ||
access to the protocol, improved threading support, and | ||
extensibility.""" | ||
|
||
homepage = "https://xcb.freedesktop.org/" | ||
url = "https://xorg.freedesktop.org/archive/individual/lib/libxcb-1.14.tar.xz" | ||
xorg_mirror_path = "lib/libxcb-1.14.tar.xz" | ||
|
||
license("MIT") | ||
|
||
maintainers("wdconinc") | ||
|
||
version("1.17.0", sha256="599ebf9996710fea71622e6e184f3a8ad5b43d0e5fa8c4e407123c88a59a6d55") | ||
version("1.16.1", sha256="f24d187154c8e027b358fc7cb6588e35e33e6a92f11c668fe77396a7ae66e311") | ||
version("1.16", sha256="4348566aa0fbf196db5e0a576321c65966189210cb51328ea2bb2be39c711d71") | ||
version("1.15", sha256="cc38744f817cf6814c847e2df37fcb8997357d72fa4bcbc228ae0fe47219a059") | ||
version("1.14", sha256="a55ed6db98d43469801262d81dc2572ed124edc3db31059d4e9916eb9f844c34") | ||
version("1.13", sha256="0bb3cfd46dbd90066bf4d7de3cad73ec1024c7325a4a0cbf5f4a0d4fa91155fb") | ||
version( | ||
"1.13", | ||
sha256="0bb3cfd46dbd90066bf4d7de3cad73ec1024c7325a4a0cbf5f4a0d4fa91155fb", | ||
url="https://xcb.freedesktop.org/dist/libxcb-1.13.tar.gz", | ||
deprecated=True, | ||
) | ||
|
||
depends_on("libpthread-stubs") | ||
depends_on("[email protected]:") | ||
depends_on("libxdmcp") | ||
|
||
# libxcb 1.X requires xcb-proto >= 1.X | ||
depends_on("xcb-proto") | ||
depends_on("[email protected]:", when="@1.17") | ||
depends_on("[email protected]:", when="@1.16") | ||
depends_on("[email protected]:", when="@1.15") | ||
depends_on("[email protected]:", when="@1.14") | ||
depends_on("[email protected]:", when="@1.13") | ||
|
@@ -38,14 +47,6 @@ class Libxcb(AutotoolsPackage): | |
depends_on("pkgconfig", type="build") | ||
depends_on("util-macros", type="build") | ||
|
||
def url_for_version(self, version): | ||
if version >= Version("1.14"): | ||
url = "https://xorg.freedesktop.org/archive/individual/lib/libxcb-{0}.tar.xz" | ||
else: | ||
url = "https://xcb.freedesktop.org/dist/libxcb-{0}.tar.gz" | ||
|
||
return url.format(version) | ||
|
||
def configure_args(self): | ||
config_args = [] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,7 @@ class XcbUtilCursor(AutotoolsPackage, XorgPackage): | |
"0.1.3", | ||
sha256="a322332716a384c94d3cbf98f2d8fe2ce63c2fe7e2b26664b6cea1d411723df8", | ||
url="https://xcb.freedesktop.org/dist/xcb-util-cursor-0.1.4.tar.gz", | ||
deprecated=True, | ||
) | ||
|
||
depends_on("[email protected]:") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,7 @@ class XcbUtilErrors(AutotoolsPackage, XorgPackage): | |
"1.0", | ||
sha256="7752a722e580efdbada30632cb23aed35c18757399ac3b547b59fd7257cf5e33", | ||
url="https://xcb.freedesktop.org/dist/xcb-util-errors-1.0.tar.gz", | ||
deprecated=True, | ||
) | ||
|
||
depends_on("[email protected]:") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,7 @@ class XcbUtilImage(AutotoolsPackage, XorgPackage): | |
"0.4.0", | ||
sha256="cb2c86190cf6216260b7357a57d9100811bb6f78c24576a3a5bfef6ad3740a42", | ||
url="https://xcb.freedesktop.org/dist/xcb-util-image-0.4.0.tar.gz", | ||
deprecated=True, | ||
) | ||
|
||
depends_on("[email protected]:") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,7 @@ class XcbUtilKeysyms(AutotoolsPackage, XorgPackage): | |
"0.4.0", | ||
sha256="0807cf078fbe38489a41d755095c58239e1b67299f14460dec2ec811e96caa96", | ||
url="https://xcb.freedesktop.org/dist/xcb-util-keysyms-0.4.0.tar.gz", | ||
deprecated=True, | ||
) | ||
|
||
depends_on("[email protected]:") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,7 @@ class XcbUtilRenderutil(AutotoolsPackage, XorgPackage): | |
"0.3.9", | ||
sha256="55eee797e3214fe39d0f3f4d9448cc53cffe06706d108824ea37bb79fcedcad5", | ||
url="https://xcb.freedesktop.org/dist/xcb-util-renderutil-0.3.9.tar.gz", | ||
deprecated=True, | ||
) | ||
|
||
depends_on("[email protected]:") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters