From nobody Thu Sep 5 06:19:17 2024 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Wzq2G09Bwz5VGpn; Thu, 05 Sep 2024 06:19:18 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Wzq2F2bHHz40Cg; Thu, 5 Sep 2024 06:19:17 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725517157; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=5vXILqJz5WgBWS71j2V1DThhNpRO/tG9+3QZpvdKU0Y=; b=VPQgm9wqsFFttVJOm/nBV3jm586lSDzlFl0PVkKAAnI5WKKpf9G5Qyenza9u5R/dmY/ILL 6uJvNLSTq1VOpEMBdUlLRdHmiMU5Jx4V7qxDbKupwbLN4BOowB4pUpy1sc9kBWJJ4AVoND 5ny61XbMKe0ZcCG2cMUCSmgN3z2UHILI54HWCAiD6PeBw2OeydtJj3q2XaUdon3Z5maw6t wpEl5N1mhbqD/+4Pijb1Ylog4fCcUMKSzfFX1+6hrnfkBpi/8KlksT/uc60foKphxZCeaM 9urpyC0D81qTFCbtrFkrdAhy5GiG1wRhzkHGfB7Rxc3LHkreRFhbGe+XmQpIiA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1725517157; a=rsa-sha256; cv=none; b=jkP80/rFWEku0CcxMSzuayc14RsC5DZ8aZy0ir0l8wqUaOdWy28ke2h0xM2zdzOfXIu8WH i5NIOAew011VOlw3u63RwLq0zXofS1LaiXKO8MQdw27O+2Kp5seKLbtbWnQbaYHIRNNN7U SEnpEFrhP9mMWPnTLMnoAKSmcWPoHSoC+/tgsLHIS5V3Keays9vYxswAcIHOPXUWlIN2eR LVKd8ldgpYBjXNGRLufMd62+wyghus05gdp37R6UxRzz5xtIFKtC58Fs58DiedA2r3AdnY My0088+HkhxeHYvQcSlUZMABkHljjDxBfB7NWeX+zN5v1EBXpZ3hsQV4nbbZZA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725517157; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=5vXILqJz5WgBWS71j2V1DThhNpRO/tG9+3QZpvdKU0Y=; b=PpdlKZglEbZPx6s2E/S01CqyqBugOA/qhAIzifG6iF/E7zejMFSAnPCfg07PtqM4Dt+YGv Ypr9LZ7FSISBvuYWo9qDjZarpqwfnOuTMqMZOcmf/oaDGuLHdr2V5Dcr/gUA0kKbSIPRZd 2Yxr+RMBsmGHTaN8WA0k3Y+4Bpx93dds+RFubQ7xJQFb3Vpeu+QdGh2+HZTkMBOoTOhKhX DoTKslG+VQKrWvp6OrJ0kjHhHM87Np/vXTezoGmfFA1irdBbMSNgVaZA1yP1jyvyO6ktcO p7I1IY+2ker0DPdXEleLTSiOOIgJjjMBt2KhZSPJSXiX942G4lsW9I+VuotEBA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Wzq2F1nygzxCl; Thu, 5 Sep 2024 06:19:17 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4856JH8r091137; Thu, 5 Sep 2024 06:19:17 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4856JHDR091134; Thu, 5 Sep 2024 06:19:17 GMT (envelope-from git) Date: Thu, 5 Sep 2024 06:19:17 GMT Message-Id: <202409050619.4856JHDR091134@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: 52d5769c206a - main - devel/p5-Data-Sah-Filter: Add p5-Data-Sah-Filter 0.025 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 52d5769c206a9638451e127b2602c9aae6b2406e Auto-Submitted: auto-generated The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=52d5769c206a9638451e127b2602c9aae6b2406e commit 52d5769c206a9638451e127b2602c9aae6b2406e Author: Po-Chuan Hsieh AuthorDate: 2024-09-05 05:13:43 +0000 Commit: Po-Chuan Hsieh 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 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