aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Neubauer <m.ne@gmx.net>2022-10-12 14:54:39 +0000
committerLi-Wen Hsu <lwhsu@FreeBSD.org>2022-10-22 17:22:31 +0000
commit05790c362c930adde08cedeae7d1d7e8519e6786 (patch)
tree0d8d7a88b73e3374a29d488420b51bde90e2f53d
parent44274aab1a90fca7999c1ffbeb491a8ffb774835 (diff)
downloadports-05790c362c930adde08cedeae7d1d7e8519e6786.tar.gz
ports-05790c362c930adde08cedeae7d1d7e8519e6786.zip
Add misc/p5-Library-CallNumber-LC: Deal with Library-of-Congress call numbers
PR: 267045
-rw-r--r--misc/Makefile1
-rw-r--r--misc/p5-Library-CallNumber-LC/Makefile21
-rw-r--r--misc/p5-Library-CallNumber-LC/distinfo3
-rw-r--r--misc/p5-Library-CallNumber-LC/pkg-descr10
-rw-r--r--misc/p5-Library-CallNumber-LC/pkg-plist2
5 files changed, 37 insertions, 0 deletions
diff --git a/misc/Makefile b/misc/Makefile
index 419f1bd275b5..e759ce0a2dec 100644
--- a/misc/Makefile
+++ b/misc/Makefile
@@ -331,6 +331,7 @@
SUBDIR += p5-I18N-Charset
SUBDIR += p5-I18N-LangTags
SUBDIR += p5-LEGO-RCX
+ SUBDIR += p5-Library-CallNumber-LC
SUBDIR += p5-List-Compare
SUBDIR += p5-List-Util-WeightedRoundRobin
SUBDIR += p5-Locale-Codes
diff --git a/misc/p5-Library-CallNumber-LC/Makefile b/misc/p5-Library-CallNumber-LC/Makefile
new file mode 100644
index 000000000000..a52443336566
--- /dev/null
+++ b/misc/p5-Library-CallNumber-LC/Makefile
@@ -0,0 +1,21 @@
+PORTNAME= Library-CallNumber-LC
+PORTVERSION= 0.23
+CATEGORIES= misc perl5
+MASTER_SITES= CPAN
+MASTER_SITE_SUBDIR= CPAN:DBWELLS
+PKGNAMEPREFIX= p5-
+
+MAINTAINER= m.ne@gmx.net
+COMMENT= Deal with Library-of-Congress call numbers
+WWW= https://metacpan.org/dist/Library-CallNumber-LC
+
+LICENSE= ART10 BSD2CLAUSE GPLv1+
+LICENSE_COMB= multi
+
+BUILD_DEPENDS= p5-Math-BigInt>=0:math/p5-Math-BigInt
+RUN_DEPENDS= p5-Math-BigInt>=0:math/p5-Math-BigInt
+
+USES= perl5
+USE_PERL5= configure
+
+.include <bsd.port.mk>
diff --git a/misc/p5-Library-CallNumber-LC/distinfo b/misc/p5-Library-CallNumber-LC/distinfo
new file mode 100644
index 000000000000..869aaca3afac
--- /dev/null
+++ b/misc/p5-Library-CallNumber-LC/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1665544776
+SHA256 (Library-CallNumber-LC-0.23.tar.gz) = 225ccdf39f5224955786cc9df3971bb15cf15611a460a6a45c85376405a267aa
+SIZE (Library-CallNumber-LC-0.23.tar.gz) = 10819
diff --git a/misc/p5-Library-CallNumber-LC/pkg-descr b/misc/p5-Library-CallNumber-LC/pkg-descr
new file mode 100644
index 000000000000..a0b8c6f12825
--- /dev/null
+++ b/misc/p5-Library-CallNumber-LC/pkg-descr
@@ -0,0 +1,10 @@
+Library::CallNumber::LC is mostly designed to do call number
+normalization, with the following goals:
+* The normalized call numbers are comparable with each other, for
+ proper sorting
+* The normalized call number is a short as possible, so left-anchored
+ wildcard searches are possible (e.g., searching on "A11*" should
+ give you all the A11 call numbers)
+* A range defined by start_of_range and end_of_range should be
+ correct, assuming that the string given for the end of the range
+ is, in fact, a left prefix.
diff --git a/misc/p5-Library-CallNumber-LC/pkg-plist b/misc/p5-Library-CallNumber-LC/pkg-plist
new file mode 100644
index 000000000000..f209aab71570
--- /dev/null
+++ b/misc/p5-Library-CallNumber-LC/pkg-plist
@@ -0,0 +1,2 @@
+%%SITE_PERL%%/Library/CallNumber/LC.pm
+%%PERL5_MAN3%%/Library::CallNumber::LC.3.gz