summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/perl-io-stringy/package.py
blob: 4db1550b32b1e25d3bd43922bbf744ed432ce9fb (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
# Copyright 2013-2024 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 PerlIoStringy(PerlPackage):
    """This toolkit primarily provides modules for performing both traditional
    and object-oriented i/o) on things other than normal filehandles; in
    particular, IO::Scalar, IO::ScalarArray, and IO::Lines.

    In the more-traditional IO::Handle front, we have IO::AtomicFile which may
    be used to painlessly create files which are updated atomically.

    And in the "this-may-prove-useful" corner, we have IO::Wrap, whose exported
    wraphandle() function will clothe anything that's not a blessed object in
    an IO::Handle-like wrapper... so you can just use OO syntax and stop
    worrying about whether your function's caller handed you a string, a
    globref, or a FileHandle."""

    homepage = "https://metacpan.org/pod/IO::Stringy"
    url = "https://cpan.metacpan.org/authors/id/D/DS/DSKOLL/IO-stringy-2.111.tar.gz"

    version("2.111", sha256="8c67fd6608c3c4e74f7324f1404a856c331dbf48d9deda6aaa8296ea41bf199d")