Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Apr 2023 21:49:22 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: fbaf4169c24c - main - devel/p5-Hash-Ordered: Add p5-Hash-Ordered 0.014
Message-ID:  <202304182149.33ILnMxB044679@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=fbaf4169c24ca8015fb2c26da2b4a8b942e1e94f

commit fbaf4169c24ca8015fb2c26da2b4a8b942e1e94f
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-04-18 21:37:17 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-04-18 21:37:17 +0000

    devel/p5-Hash-Ordered: Add p5-Hash-Ordered 0.014
    
    Hash::Ordered implements an ordered hash, meaning that it associates keys with
    values like a Perl hash, but keeps the keys in a consistent order. Because it is
    implemented as an object and manipulated with method calls, it is much slower
    than a Perl hash. This is the cost of keeping order.
    
    However, compared to other ordered hash implementations, Hash::Ordered is
    optimized for getting and setting individual elements and is generally faster at
    most other tasks as well. For specific details, see Hash::Ordered::Benchmarks.
---
 devel/Makefile                  |  1 +
 devel/p5-Hash-Ordered/Makefile  | 23 +++++++++++++++++++++++
 devel/p5-Hash-Ordered/distinfo  |  3 +++
 devel/p5-Hash-Ordered/pkg-descr |  8 ++++++++
 devel/p5-Hash-Ordered/pkg-plist |  4 ++++
 5 files changed, 39 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 7843f1fdc13a..ab7a70b8cf7b 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -2595,6 +2595,7 @@
     SUBDIR += p5-Hash-MultiValue
     SUBDIR += p5-Hash-NoRef
     SUBDIR += p5-Hash-Objectify
+    SUBDIR += p5-Hash-Ordered
     SUBDIR += p5-Hash-Slice
     SUBDIR += p5-Hash-Union
     SUBDIR += p5-Hash-Util-FieldHash-Compat
diff --git a/devel/p5-Hash-Ordered/Makefile b/devel/p5-Hash-Ordered/Makefile
new file mode 100644
index 000000000000..543f10d63f6b
--- /dev/null
+++ b/devel/p5-Hash-Ordered/Makefile
@@ -0,0 +1,23 @@
+PORTNAME=	Hash-Ordered
+PORTVERSION=	0.014
+CATEGORIES=	devel perl5
+MASTER_SITES=	CPAN
+PKGNAMEPREFIX=	p5-
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Fast, pure-Perl ordered hash class
+WWW=		https://metacpan.org/dist/Hash-Ordered
+
+LICENSE=	APACHE20
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+TEST_DEPENDS=	p5-Test-Deep>=0:devel/p5-Test-Deep \
+		p5-Test-FailWarnings>=0:devel/p5-Test-FailWarnings \
+		p5-Test-Fatal>=0:devel/p5-Test-Fatal
+
+USES=		perl5
+USE_PERL5=	configure
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/devel/p5-Hash-Ordered/distinfo b/devel/p5-Hash-Ordered/distinfo
new file mode 100644
index 000000000000..757f6d6bdece
--- /dev/null
+++ b/devel/p5-Hash-Ordered/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1681843820
+SHA256 (Hash-Ordered-0.014.tar.gz) = 8dc36cd79155ae37ab8a3de5fd9120ffba9a31e409258c28529ec5251c59747b
+SIZE (Hash-Ordered-0.014.tar.gz) = 36831
diff --git a/devel/p5-Hash-Ordered/pkg-descr b/devel/p5-Hash-Ordered/pkg-descr
new file mode 100644
index 000000000000..b5d90419edc1
--- /dev/null
+++ b/devel/p5-Hash-Ordered/pkg-descr
@@ -0,0 +1,8 @@
+Hash::Ordered implements an ordered hash, meaning that it associates keys with
+values like a Perl hash, but keeps the keys in a consistent order. Because it is
+implemented as an object and manipulated with method calls, it is much slower
+than a Perl hash. This is the cost of keeping order.
+
+However, compared to other ordered hash implementations, Hash::Ordered is
+optimized for getting and setting individual elements and is generally faster at
+most other tasks as well. For specific details, see Hash::Ordered::Benchmarks.
diff --git a/devel/p5-Hash-Ordered/pkg-plist b/devel/p5-Hash-Ordered/pkg-plist
new file mode 100644
index 000000000000..f76475d1dcfa
--- /dev/null
+++ b/devel/p5-Hash-Ordered/pkg-plist
@@ -0,0 +1,4 @@
+%%SITE_PERL%%/Hash/Ordered.pm
+%%SITE_PERL%%/Hash/Ordered/Benchmarks.pod
+%%PERL5_MAN3%%/Hash::Ordered.3.gz
+%%PERL5_MAN3%%/Hash::Ordered::Benchmarks.3.gz



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202304182149.33ILnMxB044679>