libxshmfence: add v1.3.1, v1.3.2 (#44393)
* libxshmfence: add v1.3.1, v1.3.2 * libxshmfence: fix url_for_version * libxshmfence: url_for_version without spec.satisfies * libxshmfence: mv url_for_version after directives --------- Co-authored-by: Tamara Dahlgren <35777542+tldahlgren@users.noreply.github.com>
This commit is contained in:
		| @@ -13,11 +13,13 @@ class Libxshmfence(AutotoolsPackage, XorgPackage): | ||||
|     with the X SyncFence objects that can be shared between processes | ||||
|     using file descriptor passing.""" | ||||
| 
 | ||||
|     homepage = "https://cgit.freedesktop.org/xorg/lib/libxshmfence/" | ||||
|     xorg_mirror_path = "lib/libxshmfence-1.3.tar.bz2" | ||||
|     homepage = "https://gitlab.freedesktop.org/xorg/lib/libxshmfence" | ||||
|     xorg_mirror_path = "lib/libxshmfence-1.3.2.tar.xz" | ||||
| 
 | ||||
|     license("MIT") | ||||
| 
 | ||||
|     version("1.3.2", sha256="870df257bc40b126d91b5a8f1da6ca8a524555268c50b59c0acd1a27f361606f") | ||||
|     version("1.3.1", sha256="1129f95147f7bfe6052988a087f1b7cb7122283d2c47a7dbf7135ce0df69b4f8") | ||||
|     version("1.3", sha256="b884300d26a14961a076fbebc762a39831cb75f92bed5ccf9836345b459220c7") | ||||
|     version("1.2", sha256="d21b2d1fd78c1efbe1f2c16dae1cb23f8fd231dcf891465b8debe636a9054b0c") | ||||
| 
 | ||||
| @@ -26,3 +28,10 @@ class Libxshmfence(AutotoolsPackage, XorgPackage): | ||||
|     depends_on("xproto") | ||||
|     depends_on("pkgconfig", type="build") | ||||
|     depends_on("util-macros", type="build") | ||||
| 
 | ||||
|     def url_for_version(self, version): | ||||
|         url = super().url_for_version(version) | ||||
|         if version <= Version("1.3"): | ||||
|             return url.replace("xz", "bz2") | ||||
| 
 | ||||
|         return url | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Wouter Deconinck
					Wouter Deconinck