git: 76d822d633c9 - main - Add devel/p5-String-KeyboardDistance: String Comparison Algorithm
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 22 Oct 2022 17:22:56 UTC
The branch main has been updated by lwhsu:
URL: https://cgit.FreeBSD.org/ports/commit/?id=76d822d633c91164fa940d39abc78e405b2c867d
commit 76d822d633c91164fa940d39abc78e405b2c867d
Author: Martin Neubauer <m.ne@gmx.net>
AuthorDate: 2022-10-12 23:41:22 +0000
Commit: Li-Wen Hsu <lwhsu@FreeBSD.org>
CommitDate: 2022-10-22 17:22:35 +0000
Add devel/p5-String-KeyboardDistance: String Comparison Algorithm
PR: 267046
---
devel/Makefile | 1 +
devel/p5-String-KeyboardDistance/Makefile | 17 +++++++++++++++++
devel/p5-String-KeyboardDistance/distinfo | 3 +++
devel/p5-String-KeyboardDistance/pkg-descr | 7 +++++++
devel/p5-String-KeyboardDistance/pkg-plist | 2 ++
5 files changed, 30 insertions(+)
diff --git a/devel/Makefile b/devel/Makefile
index afee439bec2b..82ad859b9ff9 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -3285,6 +3285,7 @@
SUBDIR += p5-String-Errf
SUBDIR += p5-String-Formatter
SUBDIR += p5-String-Interpolate-Named
+ SUBDIR += p5-String-KeyboardDistance
SUBDIR += p5-String-LRC
SUBDIR += p5-String-Parity
SUBDIR += p5-String-Random
diff --git a/devel/p5-String-KeyboardDistance/Makefile b/devel/p5-String-KeyboardDistance/Makefile
new file mode 100644
index 000000000000..7a92d282266c
--- /dev/null
+++ b/devel/p5-String-KeyboardDistance/Makefile
@@ -0,0 +1,17 @@
+PORTNAME= String-KeyboardDistance
+PORTVERSION= 1.01
+CATEGORIES= devel perl5
+MASTER_SITES= CPAN
+MASTER_SITE_SUBDIR= CPAN:KRBURTON
+PKGNAMEPREFIX= p5-
+
+MAINTAINER= m.ne@gmx.net
+COMMENT= String::KeyboardDistance - String Comparison Algorithm
+WWW= https://metacpan.org/dist/String-KeyboardDistance
+
+USES= perl5
+USE_PERL5= configure
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/devel/p5-String-KeyboardDistance/distinfo b/devel/p5-String-KeyboardDistance/distinfo
new file mode 100644
index 000000000000..cf855833ddde
--- /dev/null
+++ b/devel/p5-String-KeyboardDistance/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1665546379
+SHA256 (String-KeyboardDistance-1.01.tar.gz) = 60885f1f25d77568665c76dc89b587481a7ba94e4caee252297222bfe5adea70
+SIZE (String-KeyboardDistance-1.01.tar.gz) = 6739
diff --git a/devel/p5-String-KeyboardDistance/pkg-descr b/devel/p5-String-KeyboardDistance/pkg-descr
new file mode 100644
index 000000000000..aa700f3623d9
--- /dev/null
+++ b/devel/p5-String-KeyboardDistance/pkg-descr
@@ -0,0 +1,7 @@
+This module implmements a version of keyboard distance for fuzzy
+string matching. Keyboard distance is a measure of the physical
+distance between two keys on a keyboard. For example, 'g' has a
+distance of 1 from the keys 'r', 't', 'y', 'f', 'h', 'v', 'b', and
+'n'. Immediate diagonals (like ''r, 'y', 'v', and 'n') are considered
+to have a distance of 1 instead of 1.414 to help to prevent
+horizontal/vertical bias.
diff --git a/devel/p5-String-KeyboardDistance/pkg-plist b/devel/p5-String-KeyboardDistance/pkg-plist
new file mode 100644
index 000000000000..777b8cbab96c
--- /dev/null
+++ b/devel/p5-String-KeyboardDistance/pkg-plist
@@ -0,0 +1,2 @@
+%%SITE_PERL%%/String/KeyboardDistance.pm
+%%PERL5_MAN3%%/String::KeyboardDistance.3.gz