summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkrion <krion@FreeBSD.org>2004-04-04 14:39:39 +0000
committerkrion <krion@FreeBSD.org>2004-04-04 14:39:39 +0000
commit958f9d1045e83924891fcd28cb6a1c5ded46b521 (patch)
treecd751267bb07cd3901958a80986253606c8a3942
parentfc995e61e65ceccb9b457308e8645e4393992a0f (diff)
downloadFreeBSD-ports-958f9d1045e83924891fcd28cb6a1c5ded46b521.zip
FreeBSD-ports-958f9d1045e83924891fcd28cb6a1c5ded46b521.tar.gz
Add p5-Lingua-EN-Inflect-Number 1.1,
This module extends the functionality of Lingua::EN::Inflect with three new functions available for export. PR: ports/65148 Submitted by: Lars Thegler <lars@thegler.dk>
-rw-r--r--textproc/Makefile1
-rw-r--r--textproc/p5-Lingua-EN-Inflect-Number/Makefile37
-rw-r--r--textproc/p5-Lingua-EN-Inflect-Number/distinfo2
-rw-r--r--textproc/p5-Lingua-EN-Inflect-Number/pkg-descr4
-rw-r--r--textproc/p5-Lingua-EN-Inflect-Number/pkg-plist9
5 files changed, 53 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile
index 3c71c4d..e847d14 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -230,6 +230,7 @@
SUBDIR += p5-Lingua-EN-Gender
SUBDIR += p5-Lingua-EN-Infinitive
SUBDIR += p5-Lingua-EN-Inflect
+ SUBDIR += p5-Lingua-EN-Inflect-Number
SUBDIR += p5-Lingua-EN-MatchNames
SUBDIR += p5-Lingua-EN-NameCase
SUBDIR += p5-Lingua-EN-NameParse
diff --git a/textproc/p5-Lingua-EN-Inflect-Number/Makefile b/textproc/p5-Lingua-EN-Inflect-Number/Makefile
new file mode 100644
index 0000000..8ec9807
--- /dev/null
+++ b/textproc/p5-Lingua-EN-Inflect-Number/Makefile
@@ -0,0 +1,37 @@
+# New ports collection makefile for: p5-Lingua-EN-Inflect-Number
+# Date created: Apr 4 2004
+# Whom: Lars Thegler <lars@thegler.dk>
+#
+# $FreeBSD$
+
+PORTNAME= Lingua-EN-Inflect-Number
+PORTVERSION= 1.1
+CATEGORIES= textproc perl5
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
+MASTER_SITE_SUBDIR= Lingua
+PKGNAMEPREFIX= p5-
+
+MAINTAINER= lars@thegler.dk
+COMMENT= Force number of words to singular or plural
+
+BUILD_DEPENDS= ${SITE_PERL}/Lingua/EN/Inflect.pm:${PORTSDIR}/textproc/p5-Lingua-EN-Inflect
+RUN_DEPENDS= ${BUILD_DEPENDS}
+
+PERL_CONFIGURE= yes
+
+MAN3= Lingua::EN::Inflect::Number.3
+
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500600
+post-patch:
+ ${PERL} -pi -e 's/^our\s+([\$$\@\%]\w+)/use vars qw($$1);$$1/;' \
+ -e '$$_="" if /use 5.006/;' \
+ -e '$$_="" if /use warnings/;' \
+ ${WRKSRC}/Number.pm
+
+post-configure:
+ ${PERL} -pi -e 's,/usr/local/,\$$(PREFIX)/,g' ${WRKSRC}/Makefile
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/textproc/p5-Lingua-EN-Inflect-Number/distinfo b/textproc/p5-Lingua-EN-Inflect-Number/distinfo
new file mode 100644
index 0000000..70a3125
--- /dev/null
+++ b/textproc/p5-Lingua-EN-Inflect-Number/distinfo
@@ -0,0 +1,2 @@
+MD5 (Lingua-EN-Inflect-Number-1.1.tar.gz) = bcee940ef603da93e7da11d8eecad409
+SIZE (Lingua-EN-Inflect-Number-1.1.tar.gz) = 3003
diff --git a/textproc/p5-Lingua-EN-Inflect-Number/pkg-descr b/textproc/p5-Lingua-EN-Inflect-Number/pkg-descr
new file mode 100644
index 0000000..187791c
--- /dev/null
+++ b/textproc/p5-Lingua-EN-Inflect-Number/pkg-descr
@@ -0,0 +1,4 @@
+This module extends the functionality of Lingua::EN::Inflect with
+three new functions available for export.
+
+WWW: http://search.cpan.org/dist/Lingua-EN-Inflect-Number/
diff --git a/textproc/p5-Lingua-EN-Inflect-Number/pkg-plist b/textproc/p5-Lingua-EN-Inflect-Number/pkg-plist
new file mode 100644
index 0000000..e899b4d
--- /dev/null
+++ b/textproc/p5-Lingua-EN-Inflect-Number/pkg-plist
@@ -0,0 +1,9 @@
+%%SITE_PERL%%/Lingua/EN/Inflect/Number.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/Lingua/EN/Inflect/Number/.packlist
+@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Lingua/EN/Inflect/Number
+@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/Lingua/EN/Inflect 2>/dev/null || true
+@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/Lingua/EN 2>/dev/null || true
+@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/Lingua 2>/dev/null || true
+@unexec rmdir %D/%%SITE_PERL%%/Lingua/EN/Inflect 2>/dev/null || true
+@unexec rmdir %D/%%SITE_PERL%%/Lingua/EN 2>/dev/null || true
+@unexec rmdir %D/%%SITE_PERL%%/Lingua 2>/dev/null || true
OpenPOWER on IntegriCloud