This commit is contained in:
Felix Werner 2023-12-01 23:56:18 +01:00 committed by GitHub
parent 70b16cfb59
commit a632576231
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,19 @@
# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack.package import *
class Xcdf(CMakePackage):
"""Binary data format designed to store data fields with user-specified accuracy."""
homepage = "https://github.com/jimbraun/XCDF"
url = "https://github.com/jimbraun/XCDF/archive/refs/tags/v3.00.03.tar.gz"
license("BSD-2-Clause")
version("3.00.03", sha256="4e445a2fea947ba14505d08177c8d5b55856f8411f28de1fe4d4c00f6824b711")
patch("remove_python_support.patch")

View File

@ -0,0 +1,12 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3270f47..e5648d2 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -45,7 +45,6 @@ SET (XCDF_PATCH_VERSION 1 CACHE STRING "Patch number")
# ------------------------------------------------------------------------------
SET (CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
INCLUDE (Utility)
-INCLUDE (Python)
INCLUDE_DIRECTORIES (${CMAKE_SOURCE_DIR}/include)
INCLUDE_DIRECTORIES (${CMAKE_SOURCE_DIR}/include/utility)