XorgPackage, glx: conflicts windows and darwin (#50216)
* XorgPackage: conflicts windows and darwin * xorg: import conflicts * xorg: fix style * glx: conflicts windows and darwin
This commit is contained in:
parent
c1b423849c
commit
382847976f
@ -6,12 +6,17 @@
|
|||||||
|
|
||||||
import spack.package_base
|
import spack.package_base
|
||||||
import spack.util.url
|
import spack.util.url
|
||||||
|
from spack.directives import conflicts
|
||||||
|
|
||||||
|
|
||||||
class XorgPackage(spack.package_base.PackageBase):
|
class XorgPackage(spack.package_base.PackageBase):
|
||||||
"""Mixin that takes care of setting url and mirrors for x.org
|
"""Mixin that takes care of setting url and mirrors for x.org
|
||||||
packages."""
|
packages."""
|
||||||
|
|
||||||
|
# x.org packages are not supported on windows or darwin
|
||||||
|
conflicts("platform=windows")
|
||||||
|
conflicts("platform=darwin")
|
||||||
|
|
||||||
#: Path of the package in a x.org mirror
|
#: Path of the package in a x.org mirror
|
||||||
xorg_mirror_path: Optional[str] = None
|
xorg_mirror_path: Optional[str] = None
|
||||||
|
|
||||||
|
@ -12,6 +12,9 @@ class Glx(BundlePackage):
|
|||||||
|
|
||||||
version("1.4")
|
version("1.4")
|
||||||
|
|
||||||
|
conflicts("platform=windows")
|
||||||
|
conflicts("platform=darwin")
|
||||||
|
|
||||||
depends_on("libglx")
|
depends_on("libglx")
|
||||||
provides("gl@4.5")
|
provides("gl@4.5")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user