gentoo-ebuilds/dev-perl/File-Slurper/File-Slurper-0.14.0-r1.ebuild
Kerin Millar 60fce6f864
dev-perl/File-Slurper: add 0.14.0-r1 with USE=minimal support
If available, File::Slurper loads the PerlIO::utf8_strict module for
faster UTF-8 coding with better diagnostics. However, File::Slurper is
designed to work perfectly well in the case that only the (core) Encode
module is available.

This revision makes it possible to forgo PerlIO::utf8_strict by enabling
the "minimal" USE flag. The reason for not choosing "xs" as the flag
name is that File::Slurper implements no XS code of its own.

Signed-off-by: Kerin Millar <kfm@plushkava.net>
Signed-off-by: Sam James <sam@gentoo.org>
2025-10-30 04:38:51 +00:00

31 lines
769 B
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DIST_AUTHOR=LEONT
DIST_VERSION=0.014
DIST_EXAMPLES=( "bench/*" )
inherit perl-module
DESCRIPTION="A simple, sane and efficient module to slurp a file"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
IUSE="minimal"
RDEPEND="
!minimal? ( dev-perl/PerlIO-utf8_strict )
virtual/perl-Carp
>=virtual/perl-Encode-2.110.0
>=virtual/perl-Exporter-5.570.0
"
BDEPEND="${RDEPEND}
virtual/perl-ExtUtils-MakeMaker
test? (
virtual/perl-File-Spec
virtual/perl-File-Temp
virtual/perl-Test-Simple
dev-perl/Test-Warnings
)
"