summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2021-01-03 20:04:43 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2021-01-03 20:04:43 +0000
commitb6f87e4a22887d8e7cd79eb3e1c5bf23b953d8df (patch)
tree1e65974e931821b9382c526f4fcd7b813c85f222
parentAdd rubygem-shellwords 0.1.0 (diff)
Add rubygem-abbrev 0.1.0
Given a set of strings, Abbrev calculates the set of unambiguous abbreviations for those strings, and returns a hash where the keys are all the possible abbreviations and the values are the full strings. Thus, given words is "car" and "cone", the keys pointing to "car" would be "ca" and "car", while those pointing to "cone" would be "co", "con", and "cone". WWW: https://github.com/ruby/abbrev
-rw-r--r--textproc/Makefile1
-rw-r--r--textproc/rubygem-abbrev/Makefile21
-rw-r--r--textproc/rubygem-abbrev/distinfo3
-rw-r--r--textproc/rubygem-abbrev/pkg-descr8
4 files changed, 33 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile
index 6250fbe4790f..144c352b340d 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -1503,6 +1503,7 @@
SUBDIR += ruby-rd-mode.el
SUBDIR += ruby-rdtool
SUBDIR += ruby-rttool
+ SUBDIR += rubygem-abbrev
SUBDIR += rubygem-actionpack-xml_parser-rails5
SUBDIR += rubygem-actionpack-xml_parser-rails52
SUBDIR += rubygem-actionpack-xml_parser1-rails4
diff --git a/textproc/rubygem-abbrev/Makefile b/textproc/rubygem-abbrev/Makefile
new file mode 100644
index 000000000000..9814af2bf0a5
--- /dev/null
+++ b/textproc/rubygem-abbrev/Makefile
@@ -0,0 +1,21 @@
+# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= abbrev
+PORTVERSION= 0.1.0
+CATEGORIES= textproc rubygems
+MASTER_SITES= RG
+
+MAINTAINER= sunpoet@FreeBSD.org
+COMMENT= Calculate a set of unique abbreviations for a given set of strings
+
+LICENSE= BSD2CLAUSE RUBY
+LICENSE_COMB= dual
+LICENSE_FILE_BSD2CLAUSE=${WRKSRC}/LICENSE.txt
+
+USES= gem
+USE_RUBY= yes
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/textproc/rubygem-abbrev/distinfo b/textproc/rubygem-abbrev/distinfo
new file mode 100644
index 000000000000..39979a47076a
--- /dev/null
+++ b/textproc/rubygem-abbrev/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1609598833
+SHA256 (rubygem/abbrev-0.1.0.gem) = 6dd2980cc3fbff5950a63a46f9e5771a2a0235de18cb1f82b5ba0657777125e0
+SIZE (rubygem/abbrev-0.1.0.gem) = 8192
diff --git a/textproc/rubygem-abbrev/pkg-descr b/textproc/rubygem-abbrev/pkg-descr
new file mode 100644
index 000000000000..57afae9ff688
--- /dev/null
+++ b/textproc/rubygem-abbrev/pkg-descr
@@ -0,0 +1,8 @@
+Given a set of strings, Abbrev calculates the set of unambiguous abbreviations
+for those strings, and returns a hash where the keys are all the possible
+abbreviations and the values are the full strings.
+
+Thus, given words is "car" and "cone", the keys pointing to "car" would be "ca"
+and "car", while those pointing to "cone" would be "co", "con", and "cone".
+
+WWW: https://github.com/ruby/abbrev