
* Bump the package API of the `builtin` repo to `v2.0` * Move `var/spack/repos/builtin` -> `var/spack/repos/spack_repo/builtin` * Move test repos `var/spack/repos/{builtin.mock,tutorial,...}` -> `var/spack/test_repos/` * Update package dir names to v2 format (`-` -> `_` etc) * Change absolute imports `from spack.pkg.builtin.my_pkg ...` to relative imports `from ..my_pkg.package ...` Users who have a repo on top of builtin should change imports from ```python from spack.pkg.builtin.my_pkg import MyPkg ``` to ```python from spack_repo.builtin.packages.my_pkg.package import MyPkg ``` and can configure their editors with ``` PYTHONPATH=$spack/lib/spack:$spack/var/spack/repos ``` [skip-verify-checksums]
31 lines
1.2 KiB
Python
31 lines
1.2 KiB
Python
# Copyright Spack Project Developers. See COPYRIGHT file for details.
|
|
#
|
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
|
|
|
from spack.package import *
|
|
|
|
|
|
class Xtrans(AutotoolsPackage, XorgPackage):
|
|
"""xtrans is a library of code that is shared among various X packages to
|
|
handle network protocol transport in a modular fashion, allowing a
|
|
single place to add new transport types. It is used by the X server,
|
|
libX11, libICE, the X font server, and related components."""
|
|
|
|
homepage = "https://gitlab.freedesktop.org/xorg/lib/libxtrans"
|
|
xorg_mirror_path = "lib/xtrans-1.3.5.tar.gz"
|
|
|
|
license("MIT")
|
|
|
|
maintainers("wdconinc")
|
|
|
|
version("1.6.0", sha256="936b74c60b19c317c3f3cb1b114575032528dbdaf428740483200ea874c2ca0a")
|
|
version("1.5.2", sha256="23031301f10fef5eaa55b438610fbd29294a70d2fa189355343bf0186bff8374")
|
|
version("1.5.0", sha256="a806f8a92f879dcd0146f3f1153fdffe845f2fc0df9b1a26c19312b7b0a29c86")
|
|
version("1.4.0", sha256="48ed850ce772fef1b44ca23639b0a57e38884045ed2cbb18ab137ef33ec713f9")
|
|
version("1.3.5", sha256="b7a577c1b6c75030145e53b4793db9c88f9359ac49e7d771d4385d21b3e5945d")
|
|
|
|
depends_on("c", type="build") # generated
|
|
|
|
depends_on("pkgconfig", type="build")
|
|
depends_on("util-macros", type="build")
|