blob: b012501efb5f24aa6d17b3f850befe46d5dee3db (
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
|
# 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 PerlXmlParser(PerlPackage):
"""XML::Parser - A perl module for parsing XML documents"""
homepage = "https://metacpan.org/pod/XML::Parser"
url = "http://search.cpan.org/CPAN/authors/id/T/TO/TODDR/XML-Parser-2.44.tar.gz"
version("2.44", sha256="1ae9d07ee9c35326b3d9aad56eae71a6730a73a116b9fe9e8a4758b7cc033216")
depends_on("expat")
depends_on("perl-libwww-perl", type=("build", "run"))
def configure_args(self):
args = []
p = self.spec["expat"].prefix.lib
args.append("EXPATLIBPATH={0}".format(p))
p = self.spec["expat"].prefix.include
args.append("EXPATINCPATH={0}".format(p))
return args
|