From nobody Thu Sep 05 06:19:11 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 4Wzq274yLmz5VGxR; Thu, 05 Sep 2024 06:19:11 +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 4Wzq274KFhz3ydv; Thu, 5 Sep 2024 06:19:11 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725517151; 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=rbU72zfgWIbID7BUZKygFJTuPmaylcpIuTXOW9QDMH0=; b=nRdfCS/ItueZyJIkTNj9fAvncB7rMuCoZ5wa+tXMMAuhvCdMAbvnir9EgpO9ygBTxgiaPc uGtL7EjcPIc6sS/rhG68Bmph5FBtXFHtrYN/QcfqLDeLINNLed2a1P4mSajkaJNzuaKnKT n0fMFJ2ukGQDYCVaGH/Gyl7buDUlEdif71OB50gV9TjHS1c7AZVtP6jmqBc/yy1kXdqt56 1nfNQ0WJTpNAzUzZKxl25F9pl388dT42dfnkzqbq/JrTFs1iN4RaxPvlDMaV32iMJdHect 7HyE3D1uikpJYVLvIX9BcbUOT3eH/RQDo2h4FvGnnxNHEaNuy+/EKQB4yo+72A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1725517151; a=rsa-sha256; cv=none; b=VbPx+BcWdTxpMA+fiZepMq7iSkXqUjoc3H6xdV9MW3rqeUp3sYSUM1PDbgfkjcg9OVZN4/ tRpt3DaU0p+W9ntghF4a/aSVyX5LwhFAP7ftCXw+JKCReinFSMvGXWXpUcyFZy8FIgssIV nHTvieN8yX9z0yDzu0fnttLCcTVxYPk05FGNYTdnKY+Vdp1bSdL4Ea4iOARRF1zBEWqus6 hVdZ4jWmCn/HMziiCjPXqLRcjAj6UP0dy6SQD1wngZRaEXRWarH2txUNtCVKCA8lQQnCBt 7MlWuOMiq5m+vU+M+m3NbRUvWgSonq435+chfX1A12q1/np/YrrCib5D6ulczA== 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=1725517151; 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=rbU72zfgWIbID7BUZKygFJTuPmaylcpIuTXOW9QDMH0=; b=Ro1CZTjTlXjMb0gGKLlXr0xUcKUAhQ2MBbLkdmUExiGHdqML98n7VS07qtdSdaAPmitobt xJP+zSqq3OX+ZjCiIEsF5QuMxec0Clwq+dOtlPsNhAlMflPIvG15GDpuWVdbkLkFZ3ea1m yIe1EG+Sj+VKq/SQiUCgxo1MVfvFhE2y0gT6N9RjzBeZLWFuIC+XKafjQKYkLWwQ2m6bTR RjKoo94V8Ql856uqYJXnGUBy6SHIg8GDWPEy/uKc5GQB/goD+8cXqhKrqy2i/oLNzrGyUL 73dQOwdwOyUGW4pPypobifLfA2kyNaDyZh+M6KHrtRwml1cq/pPoZ3ddEiVh/g== 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 4Wzq273wZnzxCh; Thu, 5 Sep 2024 06:19:11 +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 4856JBcg090937; Thu, 5 Sep 2024 06:19:11 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4856JBAe090934; Thu, 5 Sep 2024 06:19:11 GMT (envelope-from git) Date: Thu, 5 Sep 2024 06:19:11 GMT Message-Id: <202409050619.4856JBAe090934@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: 43c69bb16b11 - main - devel/p5-Data-Cmp: Add p5-Data-Cmp 0.010 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: 43c69bb16b1141e3b2e6b82a272690e99a7f8134 Auto-Submitted: auto-generated The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=43c69bb16b1141e3b2e6b82a272690e99a7f8134 commit 43c69bb16b1141e3b2e6b82a272690e99a7f8134 Author: Po-Chuan Hsieh AuthorDate: 2024-09-05 05:13:38 +0000 Commit: Po-Chuan Hsieh CommitDate: 2024-09-05 06:11:14 +0000 devel/p5-Data-Cmp: Add p5-Data-Cmp 0.010 This relatively lightweight (no non-core dependencies, under 100 lines of code) module offers the cmp_data function that, like Perl's cmp, returns -1/0/1 value. cmp_data differs from cmp in that it can compare two data of different types and compare data items recursively, with pretty sensible semantics. In addition to returning -1/0/1, cmp_data can also return 2 if two data differ but not comparable: there is no sensible notion of which one is "greater than" the other. An example is empty hash {} vs empty array []). This module can handle circular structure. --- devel/Makefile | 1 + devel/p5-Data-Cmp/Makefile | 20 ++++++++++++++++++++ devel/p5-Data-Cmp/distinfo | 3 +++ devel/p5-Data-Cmp/pkg-descr | 9 +++++++++ devel/p5-Data-Cmp/pkg-plist | 6 ++++++ 5 files changed, 39 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index a1422df42bd4..fbebdb523eac 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -2207,6 +2207,7 @@ SUBDIR += p5-Data-Capture SUBDIR += p5-Data-ClearSilver-HDF SUBDIR += p5-Data-Clone + SUBDIR += p5-Data-Cmp SUBDIR += p5-Data-Compare SUBDIR += p5-Data-Diver SUBDIR += p5-Data-Dmp diff --git a/devel/p5-Data-Cmp/Makefile b/devel/p5-Data-Cmp/Makefile new file mode 100644 index 000000000000..747fb6e2c52b --- /dev/null +++ b/devel/p5-Data-Cmp/Makefile @@ -0,0 +1,20 @@ +PORTNAME= Data-Cmp +PORTVERSION= 0.010 +CATEGORIES= devel perl5 +MASTER_SITES= CPAN +PKGNAMEPREFIX= p5- + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Compare two data structures, return -1/0/1 like cmp +WWW= https://metacpan.org/dist/Data-Cmp + +LICENSE= ART10 GPLv1+ +LICENSE_COMB= dual +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= perl5 +USE_PERL5= configure + +NO_ARCH= yes + +.include diff --git a/devel/p5-Data-Cmp/distinfo b/devel/p5-Data-Cmp/distinfo new file mode 100644 index 000000000000..692cc8e9bc64 --- /dev/null +++ b/devel/p5-Data-Cmp/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1724084444 +SHA256 (Data-Cmp-0.010.tar.gz) = 96cc24b12e90c7f1a583870f13daee244ebcc765a0d8abbb5e49b6b977b45210 +SIZE (Data-Cmp-0.010.tar.gz) = 18145 diff --git a/devel/p5-Data-Cmp/pkg-descr b/devel/p5-Data-Cmp/pkg-descr new file mode 100644 index 000000000000..45a232bff633 --- /dev/null +++ b/devel/p5-Data-Cmp/pkg-descr @@ -0,0 +1,9 @@ +This relatively lightweight (no non-core dependencies, under 100 lines of code) +module offers the cmp_data function that, like Perl's cmp, returns -1/0/1 value. +cmp_data differs from cmp in that it can compare two data of different types and +compare data items recursively, with pretty sensible semantics. In addition to +returning -1/0/1, cmp_data can also return 2 if two data differ but not +comparable: there is no sensible notion of which one is "greater than" the +other. An example is empty hash {} vs empty array []). + +This module can handle circular structure. diff --git a/devel/p5-Data-Cmp/pkg-plist b/devel/p5-Data-Cmp/pkg-plist new file mode 100644 index 000000000000..eb16eb8eb73e --- /dev/null +++ b/devel/p5-Data-Cmp/pkg-plist @@ -0,0 +1,6 @@ +%%SITE_PERL%%/Data/Cmp.pm +%%SITE_PERL%%/Data/Cmp/Numeric.pm +%%SITE_PERL%%/Data/Cmp/StrOrNumeric.pm +%%PERL5_MAN3%%/Data::Cmp.3.gz +%%PERL5_MAN3%%/Data::Cmp::Numeric.3.gz +%%PERL5_MAN3%%/Data::Cmp::StrOrNumeric.3.gz