blob: 82fcd5e839c3de05d171332cf4c99dc60688ac5a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# 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 XalanC(CMakePackage):
"""Xalan-C++ version is a robust implementation of the W3C Recommendations for
XSL Transformations (XSLT) and the XML Path Language (XPath). It works with
the Xerces-C++ XML parser.
"""
homepage = "https://xalan.apache.org"
url = "https://dlcdn.apache.org/xalan/xalan-c/sources/xalan_c-1.12.tar.gz"
maintainers("omsai")
license("Apache-2.0")
version("1.12", sha256="ee7d4b0b08c5676f5e586c7154d94a5b32b299ac3cbb946e24c4375a25552da7")
variant(
"transcoder",
default="default",
values=("default", "icu"),
multi=False,
description="Use the default UTF-16 transcoder or ICU",
)
depends_on("xerces-c@3:")
depends_on("icu4c", type="link", when="transcoder=icu")
def cmake_args(self):
args = []
if "transcoder=icu" in self.spec:
args.append("-Dtranscoder=icu")
return args
|