summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/perl-xml-twig/package.py
blob: f17251ea6357894b8fc475a498147d2fbd25a4b4 (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
# Copyright 2013-2020 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 import *


class PerlXmlTwig(PerlPackage):
    """This module provides a way to process XML documents. It is build on top
    of XML::Parser.

    The module offers a tree interface to the document, while allowing you to
    output the parts of it that have been completely processed.

    It allows minimal resource (CPU and memory) usage by building the tree only
    for the parts of the documents that need actual processing, through the use
    of the twig_roots and twig_print_outside_roots options. The finish and
    finish_print methods also help to increase performances.

    XML::Twig tries to make simple things easy so it tries its best to takes
    care of a lot of the (usually) annoying (but sometimes necessary) features
    that come with XML and XML::Parser."""

    homepage = "https://metacpan.org/pod/XML::Twig"
    url      = "https://cpan.metacpan.org/authors/id/M/MI/MIROD/XML-Twig-3.52.tar.gz"

    version('3.52', sha256='fef75826c24f2b877d0a0d2645212fc4fb9756ed4d2711614ac15c497e8680ad')

    depends_on('perl-xml-parser', type=('build', 'run'))

    patch('non_interactive.patch')