1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-30 01:15:52 +00:00

Add Yet Another YAML Framework, which aims to parse YAML 1.2 and

conform to the spc.
This commit is contained in:
Dan Langille 2018-03-28 13:09:43 +00:00
parent f83cc745aa
commit 0da7c1e2bc
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=465806
5 changed files with 57 additions and 0 deletions

View File

@ -1146,6 +1146,7 @@
SUBDIR += p5-XML-XUpdate-LibXML
SUBDIR += p5-YAML
SUBDIR += p5-YAML-LibYAML
SUBDIR += p5-YAML-PP
SUBDIR += p5-YAML-Shell
SUBDIR += p5-YAML-Syck
SUBDIR += p5-YAML-Tiny

View File

@ -0,0 +1,15 @@
# $FreeBSD$
PORTNAME= YAML-PP
PORTVERSION= 0.005
CATEGORIES= textproc perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
MAINTAINER= dvl@FreeBSD.org
COMMENT= YAML which aims to parse YAML 1.2 & conform to the spec
USES= perl5
USE_PERL5= configure
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1522241881
SHA256 (YAML-PP-0.005.tar.gz) = 91c2a2022489a00ad68c6d7a788aacee1a474f44ab22735fd699d6034a317640
SIZE (YAML-PP-0.005.tar.gz) = 109473

View File

@ -0,0 +1,20 @@
WARNING: This is highly experimental.
Here are a few examples of what you can do right now:
my $yppl = YAML::PP::Loader->new;
my @documents = $yppl->load_string($yaml);
# load file
my $yppl = YAML::PP::Loader->new;
my @documents = $yppl->load_file($filename);
# The loader offers JSON::PP, boolean.pm or pureperl 1/0 (default)
# for booleans
my $yppl = YAML::PP::Loader->new(boolean => 'JSON::PP');
my ($data1, $data2) = $yppl->load_string($yaml);
my $yppd = YAML::PP::Dumper->new();
my $yaml = $yppd->dump_string($data1, $data2);
WWW: https://github.com/perlpunk/YAML-PP-p5

View File

@ -0,0 +1,18 @@
bin/yamlpp5-events
bin/yamlpp5-highlight
bin/yamlpp5-load
bin/yamlpp5-load-dump
%%SITE_PERL%%/YAML/PP.pm
%%SITE_PERL%%/YAML/PP/Constructor.pm
%%SITE_PERL%%/YAML/PP/Dumper.pm
%%SITE_PERL%%/YAML/PP/Emitter.pm
%%SITE_PERL%%/YAML/PP/Exception.pm
%%SITE_PERL%%/YAML/PP/Grammar.pm
%%SITE_PERL%%/YAML/PP/Highlight.pm
%%SITE_PERL%%/YAML/PP/Lexer.pm
%%SITE_PERL%%/YAML/PP/Loader.pm
%%SITE_PERL%%/YAML/PP/Parser.pm
%%SITE_PERL%%/YAML/PP/Reader.pm
%%SITE_PERL%%/YAML/PP/Render.pm
%%PERL5_MAN3%%/YAML::PP.3.gz
%%PERL5_MAN3%%/YAML::PP::Grammar.3.gz