aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authorade <ade@FreeBSD.org>2000-01-29 11:29:19 +0800
committerade <ade@FreeBSD.org>2000-01-29 11:29:19 +0800
commit45f345586f044e9624810f57c61272a2d568b0e8 (patch)
tree059a403319509e6d4b107e09194f001d526f1994 /www
parent4c46cee02907780e3c68111ef038ff201cd72130 (diff)
downloadfreebsd-ports-graphics-45f345586f044e9624810f57c61272a2d568b0e8.tar.gz
freebsd-ports-graphics-45f345586f044e9624810f57c61272a2d568b0e8.tar.zst
freebsd-ports-graphics-45f345586f044e9624810f57c61272a2d568b0e8.zip
The HTML::Summary module produces summaries from the textual content of
web pages. It does so using the location heuristic, which determines the value of a given sentence based on its position and status within the document. PR: 15863 Submitted by: Dmitry Sivachenko <dima@Chg.RU>
Diffstat (limited to 'www')
-rw-r--r--www/Makefile1
-rw-r--r--www/p5-HTML-Summary/Makefile28
-rw-r--r--www/p5-HTML-Summary/distinfo1
-rw-r--r--www/p5-HTML-Summary/pkg-comment1
-rw-r--r--www/p5-HTML-Summary/pkg-descr18
-rw-r--r--www/p5-HTML-Summary/pkg-plist10
6 files changed, 59 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile
index 4b7dd1b944e..4e592644ce8 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -91,6 +91,7 @@
SUBDIR += p5-HTML-Parser
SUBDIR += p5-HTML-QuickCheck
SUBDIR += p5-HTML-Stream
+ SUBDIR += p5-HTML-Summary
SUBDIR += p5-HTML-Tree
SUBDIR += p5-HTTPD-Tools
SUBDIR += p5-ParallelUA
diff --git a/www/p5-HTML-Summary/Makefile b/www/p5-HTML-Summary/Makefile
new file mode 100644
index 00000000000..b2da8bd725c
--- /dev/null
+++ b/www/p5-HTML-Summary/Makefile
@@ -0,0 +1,28 @@
+# New ports collection makefile for: p5-HTML-Summary
+# Version required: 0.017
+# Date created: 3 January 2000
+# Whom: Dmitry Sivachenko <dima@Chg.RU>
+#
+# $FreeBSD$
+#
+
+DISTNAME= HTML-Summary-0.017
+PKGNAME= p5-HTML-Summary-0.017
+CATEGORIES= www perl5
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
+MASTER_SITE_SUBDIR= HTML
+
+MAINTAINER= dima@Chg.RU
+
+BUILD_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/HTML/TreeBuilder.pm:${PORTSDIR}/www/p5-HTML-Tree
+
+USE_PERL5= YES
+
+MAN3PREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
+
+MAN3= HTML::Summary.3 Text::Sentence.3 Lingua::JA::Jtruncate.3
+
+do-configure:
+ @ cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${PERL5} Makefile.PL
+
+.include <bsd.port.mk>
diff --git a/www/p5-HTML-Summary/distinfo b/www/p5-HTML-Summary/distinfo
new file mode 100644
index 00000000000..fdbafcaef64
--- /dev/null
+++ b/www/p5-HTML-Summary/distinfo
@@ -0,0 +1 @@
+MD5 (HTML-Summary-0.017.tar.gz) = a7f29617a26a3f07b3f871751507d9ec
diff --git a/www/p5-HTML-Summary/pkg-comment b/www/p5-HTML-Summary/pkg-comment
new file mode 100644
index 00000000000..7a00a02e4a0
--- /dev/null
+++ b/www/p5-HTML-Summary/pkg-comment
@@ -0,0 +1 @@
+Produces summaries from the textual content of web pages
diff --git a/www/p5-HTML-Summary/pkg-descr b/www/p5-HTML-Summary/pkg-descr
new file mode 100644
index 00000000000..934414ca9a8
--- /dev/null
+++ b/www/p5-HTML-Summary/pkg-descr
@@ -0,0 +1,18 @@
+The HTML::Summary module produces summaries from the textual content of
+web pages. It does so using the location heuristic, which determines the value
+of a given sentence based on its position and status within the document; for
+example, headings, section titles and opening paragraph sentences may be
+favoured over other textual content. A LENGTH option can be used to restrict
+the length of the summary produced.
+
+This distribution contains the HTML::Summary module, and some supporting
+modules. The full list of modules is:
+
+HTML::Summary
+Text::Sentence
+Lingua::JA::Jcode
+Lingua::JA::Jtruncate
+
+
+--Dima
+dima@Chg.RU
diff --git a/www/p5-HTML-Summary/pkg-plist b/www/p5-HTML-Summary/pkg-plist
new file mode 100644
index 00000000000..397db25596f
--- /dev/null
+++ b/www/p5-HTML-Summary/pkg-plist
@@ -0,0 +1,10 @@
+lib/perl5/site_perl/%%PERL_VER%%/HTML/Summary.pm
+lib/perl5/site_perl/%%PERL_VER%%/Text/Sentence.pm
+lib/perl5/site_perl/%%PERL_VER%%/Lingua/JA/Jcode.pm
+lib/perl5/site_perl/%%PERL_VER%%/Lingua/JA/Jtruncate.pm
+lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/HTML/Summary/.packlist
+@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/HTML/Summary
+@dirrm lib/perl5/site_perl/%%PERL_VER%%/Lingua/JA
+@dirrm lib/perl5/site_perl/%%PERL_VER%%/Lingua
+@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/Text 2>/dev/null || true
+@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/HTML 2>/dev/null || true