
* 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]
38 lines
1.3 KiB
Python
38 lines
1.3 KiB
Python
# Copyright Spack Project Developers. See COPYRIGHT file for details.
|
|
#
|
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
|
|
|
from spack.package import *
|
|
|
|
|
|
class Icet(CMakePackage):
|
|
"""The Image Composition Engine for Tiles (IceT) is a high-performance
|
|
sort-last parallel rendering library."""
|
|
|
|
homepage = "https://icet.sandia.gov"
|
|
url = "https://gitlab.kitware.com/api/v4/projects/icet%2Ficet/repository/archive.tar.bz2?sha=IceT-2.1.1"
|
|
git = "https://gitlab.kitware.com/icet/icet.git"
|
|
|
|
version("develop", branch="master")
|
|
version("2.1.1", sha256="04cc5b7aa5b3ec95b255febdcfc2312e553ce3db5ca305526803d5737561ec32")
|
|
|
|
variant("opengl", default=False, description="Use opengl")
|
|
variant("shared", default=True, description="Enable shared library")
|
|
|
|
depends_on("c", type="build") # generated
|
|
|
|
depends_on("mpi")
|
|
depends_on("gl", when="+opengl")
|
|
|
|
def cmake_args(self):
|
|
return [
|
|
self.define_from_variant("ICET_USE_OPENGL", "opengl"),
|
|
self.define_from_variant("BUILD_SHARED_LIBS", "shared"),
|
|
]
|
|
|
|
def setup_dependent_build_environment(
|
|
self, env: EnvironmentModifications, dependent_spec: Spec
|
|
) -> None:
|
|
"""Work-around for ill-placed CMake modules"""
|
|
env.prepend_path("CMAKE_PREFIX_PATH", self.prefix.lib)
|