Date: Thu, 5 Sep 2024 06:19:17 GMT From: Po-Chuan Hsieh <sunpoet@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 52d5769c206a - main - devel/p5-Data-Sah-Filter: Add p5-Data-Sah-Filter 0.025 Message-ID: <202409050619.4856JHDR091134@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=52d5769c206a9638451e127b2602c9aae6b2406e commit 52d5769c206a9638451e127b2602c9aae6b2406e Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2024-09-05 05:13:43 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2024-09-05 06:11:16 +0000 devel/p5-Data-Sah-Filter: Add p5-Data-Sah-Filter 0.025 Data::Sah::Filter contains a standard set of filter rules for Data::Sah (to be used in prefilters and postfilters clauses). It is separated from the Data-Sah distribution and can be used independently. A filter rule is put in Data::Sah::Filter::$COMPILER::$CATEGORY:$DESCRIPTION module, for example: Data::Sah::Filter::perl::Str::trim for trimming whitespace at the beginning and end of string. Basically, a filter rule will provide an expression (in expr_filter) in the target language (e.g. Perl, JavaScript, or others) to convert one data to another. Multiple filter rules can be combined to form the final filtering code. This code can be used by Data::Sah when generating validator code from Sah schema, or can be used directly. Some projects which use filtering rules directly include: App::orgadb (which lets users specify filters from the command-line). --- devel/Makefile | 1 + devel/p5-Data-Sah-Filter/Makefile | 27 ++++++++++ devel/p5-Data-Sah-Filter/distinfo | 3 ++ devel/p5-Data-Sah-Filter/pkg-descr | 15 ++++++ devel/p5-Data-Sah-Filter/pkg-plist | 104 +++++++++++++++++++++++++++++++++++++ 5 files changed, 150 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index f9e838192135..eb79957e9953 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -2299,6 +2299,7 @@ SUBDIR += p5-Data-Sah SUBDIR += p5-Data-Sah-Coerce SUBDIR += p5-Data-Sah-DefaultValue + SUBDIR += p5-Data-Sah-Filter SUBDIR += p5-Data-Sah-Normalize SUBDIR += p5-Data-Section SUBDIR += p5-Data-Section-Simple diff --git a/devel/p5-Data-Sah-Filter/Makefile b/devel/p5-Data-Sah-Filter/Makefile new file mode 100644 index 000000000000..79e323c4681b --- /dev/null +++ b/devel/p5-Data-Sah-Filter/Makefile @@ -0,0 +1,27 @@ +PORTNAME= Data-Sah-Filter +PORTVERSION= 0.025 +CATEGORIES= devel perl5 +MASTER_SITES= CPAN +PKGNAMEPREFIX= p5- + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Filtering for Data::Sah +WWW= https://metacpan.org/dist/Data-Sah-Filter + +LICENSE= ART10 GPLv1+ +LICENSE_COMB= dual +LICENSE_FILE_GPLv1+ = ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${RUN_DEPENDS} +RUN_DEPENDS= p5-Data-Dmp>=0.242:devel/p5-Data-Dmp \ + p5-IPC-System-Options>=0.339:devel/p5-IPC-System-Options \ + p5-JSON>=0:converters/p5-JSON \ + p5-Log-ger>=0.038:devel/p5-Log-ger \ + p5-Nodejs-Util>=0.007:www/p5-Nodejs-Util + +USES= perl5 +USE_PERL5= configure + +NO_ARCH= yes + +.include <bsd.port.mk> diff --git a/devel/p5-Data-Sah-Filter/distinfo b/devel/p5-Data-Sah-Filter/distinfo new file mode 100644 index 000000000000..ca50b963f0be --- /dev/null +++ b/devel/p5-Data-Sah-Filter/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1724084454 +SHA256 (Data-Sah-Filter-0.025.tar.gz) = 8315f330b50830e0ce19f174165c6d33a863035d50a3c6abcd6e0c79cd18a6e0 +SIZE (Data-Sah-Filter-0.025.tar.gz) = 36028 diff --git a/devel/p5-Data-Sah-Filter/pkg-descr b/devel/p5-Data-Sah-Filter/pkg-descr new file mode 100644 index 000000000000..0c099e58fec7 --- /dev/null +++ b/devel/p5-Data-Sah-Filter/pkg-descr @@ -0,0 +1,15 @@ +Data::Sah::Filter contains a standard set of filter rules for Data::Sah (to be +used in prefilters and postfilters clauses). It is separated from the Data-Sah +distribution and can be used independently. + +A filter rule is put in Data::Sah::Filter::$COMPILER::$CATEGORY:$DESCRIPTION +module, for example: Data::Sah::Filter::perl::Str::trim for trimming whitespace +at the beginning and end of string. + +Basically, a filter rule will provide an expression (in expr_filter) in the +target language (e.g. Perl, JavaScript, or others) to convert one data to +another. Multiple filter rules can be combined to form the final filtering code. +This code can be used by Data::Sah when generating validator code from Sah +schema, or can be used directly. Some projects which use filtering rules +directly include: App::orgadb (which lets users specify filters from the +command-line). diff --git a/devel/p5-Data-Sah-Filter/pkg-plist b/devel/p5-Data-Sah-Filter/pkg-plist new file mode 100644 index 000000000000..f4b7bd7bb638 --- /dev/null +++ b/devel/p5-Data-Sah-Filter/pkg-plist @@ -0,0 +1,104 @@ +%%SITE_PERL%%/Data/Sah/Filter.pm +%%SITE_PERL%%/Data/Sah/Filter/js/Str/downcase.pm +%%SITE_PERL%%/Data/Sah/Filter/js/Str/lc.pm +%%SITE_PERL%%/Data/Sah/Filter/js/Str/lcfirst.pm +%%SITE_PERL%%/Data/Sah/Filter/js/Str/lowercase.pm +%%SITE_PERL%%/Data/Sah/Filter/js/Str/ltrim.pm +%%SITE_PERL%%/Data/Sah/Filter/js/Str/rtrim.pm +%%SITE_PERL%%/Data/Sah/Filter/js/Str/trim.pm +%%SITE_PERL%%/Data/Sah/Filter/js/Str/uc.pm +%%SITE_PERL%%/Data/Sah/Filter/js/Str/ucfirst.pm +%%SITE_PERL%%/Data/Sah/Filter/js/Str/upcase.pm +%%SITE_PERL%%/Data/Sah/Filter/js/Str/uppercase.pm +%%SITE_PERL%%/Data/Sah/Filter/perl/Array/check_uniq.pm +%%SITE_PERL%%/Data/Sah/Filter/perl/Array/check_uniqnum.pm +%%SITE_PERL%%/Data/Sah/Filter/perl/Array/check_uniqstr.pm +%%SITE_PERL%%/Data/Sah/Filter/perl/Array/remove_undef.pm +%%SITE_PERL%%/Data/Sah/Filter/perl/Array/uniq.pm +%%SITE_PERL%%/Data/Sah/Filter/perl/Array/uniqnum.pm +%%SITE_PERL%%/Data/Sah/Filter/perl/Array/uniqstr.pm +%%SITE_PERL%%/Data/Sah/Filter/perl/Float/ceil.pm +%%SITE_PERL%%/Data/Sah/Filter/perl/Float/check_has_fraction.pm +%%SITE_PERL%%/Data/Sah/Filter/perl/Float/check_int.pm +%%SITE_PERL%%/Data/Sah/Filter/perl/Float/floor.pm +%%SITE_PERL%%/Data/Sah/Filter/perl/Float/round.pm +%%SITE_PERL%%/Data/Sah/Filter/perl/Str/check.pm +%%SITE_PERL%%/Data/Sah/Filter/perl/Str/check_lowercase.pm +%%SITE_PERL%%/Data/Sah/Filter/perl/Str/check_oneline.pm +%%SITE_PERL%%/Data/Sah/Filter/perl/Str/check_uppercase.pm +%%SITE_PERL%%/Data/Sah/Filter/perl/Str/downcase.pm +%%SITE_PERL%%/Data/Sah/Filter/perl/Str/ensure_trailing_newline.pm +%%SITE_PERL%%/Data/Sah/Filter/perl/Str/lc.pm +%%SITE_PERL%%/Data/Sah/Filter/perl/Str/lcfirst.pm +%%SITE_PERL%%/Data/Sah/Filter/perl/Str/lowercase.pm +%%SITE_PERL%%/Data/Sah/Filter/perl/Str/ltrim.pm +%%SITE_PERL%%/Data/Sah/Filter/perl/Str/oneline.pm +%%SITE_PERL%%/Data/Sah/Filter/perl/Str/remove_comment.pm +%%SITE_PERL%%/Data/Sah/Filter/perl/Str/remove_non_latin_alphanum.pm +%%SITE_PERL%%/Data/Sah/Filter/perl/Str/remove_nondigit.pm +%%SITE_PERL%%/Data/Sah/Filter/perl/Str/remove_whitespace.pm +%%SITE_PERL%%/Data/Sah/Filter/perl/Str/replace_map.pm +%%SITE_PERL%%/Data/Sah/Filter/perl/Str/rtrim.pm +%%SITE_PERL%%/Data/Sah/Filter/perl/Str/trim.pm +%%SITE_PERL%%/Data/Sah/Filter/perl/Str/try_center.pm +%%SITE_PERL%%/Data/Sah/Filter/perl/Str/uc.pm +%%SITE_PERL%%/Data/Sah/Filter/perl/Str/ucfirst.pm +%%SITE_PERL%%/Data/Sah/Filter/perl/Str/underscore_non_latin_alphanum.pm +%%SITE_PERL%%/Data/Sah/Filter/perl/Str/underscore_non_latin_alphanums.pm +%%SITE_PERL%%/Data/Sah/Filter/perl/Str/upcase.pm +%%SITE_PERL%%/Data/Sah/Filter/perl/Str/uppercase.pm +%%SITE_PERL%%/Data/Sah/Filter/perl/Str/wrap.pm +%%SITE_PERL%%/Data/Sah/FilterCommon.pm +%%SITE_PERL%%/Data/Sah/FilterJS.pm +%%PERL5_MAN3%%/Data::Sah::Filter.3.gz +%%PERL5_MAN3%%/Data::Sah::Filter::js::Str::downcase.3.gz +%%PERL5_MAN3%%/Data::Sah::Filter::js::Str::lc.3.gz +%%PERL5_MAN3%%/Data::Sah::Filter::js::Str::lcfirst.3.gz +%%PERL5_MAN3%%/Data::Sah::Filter::js::Str::lowercase.3.gz +%%PERL5_MAN3%%/Data::Sah::Filter::js::Str::ltrim.3.gz +%%PERL5_MAN3%%/Data::Sah::Filter::js::Str::rtrim.3.gz +%%PERL5_MAN3%%/Data::Sah::Filter::js::Str::trim.3.gz +%%PERL5_MAN3%%/Data::Sah::Filter::js::Str::uc.3.gz +%%PERL5_MAN3%%/Data::Sah::Filter::js::Str::ucfirst.3.gz +%%PERL5_MAN3%%/Data::Sah::Filter::js::Str::upcase.3.gz +%%PERL5_MAN3%%/Data::Sah::Filter::js::Str::uppercase.3.gz +%%PERL5_MAN3%%/Data::Sah::Filter::perl::Array::check_uniq.3.gz +%%PERL5_MAN3%%/Data::Sah::Filter::perl::Array::check_uniqnum.3.gz +%%PERL5_MAN3%%/Data::Sah::Filter::perl::Array::check_uniqstr.3.gz +%%PERL5_MAN3%%/Data::Sah::Filter::perl::Array::remove_undef.3.gz +%%PERL5_MAN3%%/Data::Sah::Filter::perl::Array::uniq.3.gz +%%PERL5_MAN3%%/Data::Sah::Filter::perl::Array::uniqnum.3.gz +%%PERL5_MAN3%%/Data::Sah::Filter::perl::Array::uniqstr.3.gz +%%PERL5_MAN3%%/Data::Sah::Filter::perl::Float::ceil.3.gz +%%PERL5_MAN3%%/Data::Sah::Filter::perl::Float::check_has_fraction.3.gz +%%PERL5_MAN3%%/Data::Sah::Filter::perl::Float::check_int.3.gz +%%PERL5_MAN3%%/Data::Sah::Filter::perl::Float::floor.3.gz +%%PERL5_MAN3%%/Data::Sah::Filter::perl::Float::round.3.gz +%%PERL5_MAN3%%/Data::Sah::Filter::perl::Str::check.3.gz +%%PERL5_MAN3%%/Data::Sah::Filter::perl::Str::check_lowercase.3.gz +%%PERL5_MAN3%%/Data::Sah::Filter::perl::Str::check_oneline.3.gz +%%PERL5_MAN3%%/Data::Sah::Filter::perl::Str::check_uppercase.3.gz +%%PERL5_MAN3%%/Data::Sah::Filter::perl::Str::downcase.3.gz +%%PERL5_MAN3%%/Data::Sah::Filter::perl::Str::ensure_trailing_newline.3.gz +%%PERL5_MAN3%%/Data::Sah::Filter::perl::Str::lc.3.gz +%%PERL5_MAN3%%/Data::Sah::Filter::perl::Str::lcfirst.3.gz +%%PERL5_MAN3%%/Data::Sah::Filter::perl::Str::lowercase.3.gz +%%PERL5_MAN3%%/Data::Sah::Filter::perl::Str::ltrim.3.gz +%%PERL5_MAN3%%/Data::Sah::Filter::perl::Str::oneline.3.gz +%%PERL5_MAN3%%/Data::Sah::Filter::perl::Str::remove_comment.3.gz +%%PERL5_MAN3%%/Data::Sah::Filter::perl::Str::remove_non_latin_alphanum.3.gz +%%PERL5_MAN3%%/Data::Sah::Filter::perl::Str::remove_nondigit.3.gz +%%PERL5_MAN3%%/Data::Sah::Filter::perl::Str::remove_whitespace.3.gz +%%PERL5_MAN3%%/Data::Sah::Filter::perl::Str::replace_map.3.gz +%%PERL5_MAN3%%/Data::Sah::Filter::perl::Str::rtrim.3.gz +%%PERL5_MAN3%%/Data::Sah::Filter::perl::Str::trim.3.gz +%%PERL5_MAN3%%/Data::Sah::Filter::perl::Str::try_center.3.gz +%%PERL5_MAN3%%/Data::Sah::Filter::perl::Str::uc.3.gz +%%PERL5_MAN3%%/Data::Sah::Filter::perl::Str::ucfirst.3.gz +%%PERL5_MAN3%%/Data::Sah::Filter::perl::Str::underscore_non_latin_alphanum.3.gz +%%PERL5_MAN3%%/Data::Sah::Filter::perl::Str::underscore_non_latin_alphanums.3.gz +%%PERL5_MAN3%%/Data::Sah::Filter::perl::Str::upcase.3.gz +%%PERL5_MAN3%%/Data::Sah::Filter::perl::Str::uppercase.3.gz +%%PERL5_MAN3%%/Data::Sah::Filter::perl::Str::wrap.3.gz +%%PERL5_MAN3%%/Data::Sah::FilterCommon.3.gz +%%PERL5_MAN3%%/Data::Sah::FilterJS.3.gz
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202409050619.4856JHDR091134>