From 47eb0ad1733a409bcd8819eef141b1bc9d0c539b Mon Sep 17 00:00:00 2001 From: Matthew Seaman Date: Sun, 8 Mar 2015 19:30:08 +0000 Subject: [PATCH] HTML-FormatExternal lets you turn HTML into plain text using one of the browsing/formatting programs, elinks http://elinks.cz/ html2text http://www.mbayer.de/html2text/ links http://links.twibright.com/ lynx http://lynx.isc.org/ netrik http://netrik.sourceforge.net/ vilistextum http://bhaak.dyndns.org/vilistextum/ w3m http://sourceforge.net/projects/w3m zen http://www.nocrew.org/software/zen/ WWW: http://search.cpan.org/dist/HTML-FormatExternal/ --- textproc/Makefile | 1 + textproc/p5-HTML-FormatExternal/Makefile | 46 +++++++++++++++++++++++ textproc/p5-HTML-FormatExternal/distinfo | 2 + textproc/p5-HTML-FormatExternal/pkg-descr | 13 +++++++ textproc/p5-HTML-FormatExternal/pkg-plist | 18 +++++++++ 5 files changed, 80 insertions(+) create mode 100644 textproc/p5-HTML-FormatExternal/Makefile create mode 100644 textproc/p5-HTML-FormatExternal/distinfo create mode 100644 textproc/p5-HTML-FormatExternal/pkg-descr create mode 100644 textproc/p5-HTML-FormatExternal/pkg-plist diff --git a/textproc/Makefile b/textproc/Makefile index 02feacf6b17a..dbfa4794046e 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -527,6 +527,7 @@ SUBDIR += p5-HTML-Entities-Numbered SUBDIR += p5-HTML-EscapeEvil SUBDIR += p5-HTML-Format + SUBDIR += p5-HTML-FormatExternal SUBDIR += p5-HTML-FormatText-WithLinks SUBDIR += p5-HTML-FormatText-WithLinks-AndTables SUBDIR += p5-HTML-Fraction diff --git a/textproc/p5-HTML-FormatExternal/Makefile b/textproc/p5-HTML-FormatExternal/Makefile new file mode 100644 index 000000000000..02b402edd567 --- /dev/null +++ b/textproc/p5-HTML-FormatExternal/Makefile @@ -0,0 +1,46 @@ +# $FreeBSD$ + +PORTNAME= HTML-FormatExternal +PORTVERSION= 22 +CATEGORIES= textproc perl5 +MASTER_SITES= CPAN +PKGNAMEPREFIX= p5- + +MAINTAINER= perl@FreeBSD.org +COMMENT= HTML to text formatting using external programs + +LICENSE= GPLv3 + +OPTIONS_DEFINE= ELINKS HTML2TEXT LINKS LYNX LYNX_CURRENT NETRIK W3M +OPTIONS_DEFAULT= LYNX + +BUILD_DEPENDS= p5-Encode>=0:${PORTSDIR}/converters/p5-Encode \ + p5-URI>=0.08:${PORTSDIR}/net/p5-URI +RUN_DEPENDS:= ${BUILD_DEPENDS} + +USES= perl5 +USE_PERL5= configure +INSTALL_TARGET= pure_install + +ELINKS_DESC= Install with elinks +ELINKS_RUN_DEPENDS= elinks:${PORTSDIR}/www/elinks + +HTML2TEXT_DESC= Install with html2text +HTML2TEXT_RUN_DEPENDS= html2text:${PORTSDIR}/textproc/html2text + +LINKS_DESC= Install with links +LINKS_RUN_DEPENDS= links:${PORTSDIR}/www/links + +LYNX_DESC= Install with lynx +LYNX_RUN_DEPENDS= lynx:${PORTSDIR}/www/lynx + +LYNX_CURRENT_DESC= Install with lynx-current +LYNX_CURRENT_RUN_DEPENDS= lynx:${PORTSDIR}/www/lynx-current + +NETRIK_DESC= Install with netrik +NETRIK_RUN_DEPENDS= netrik:${PORTSDIR}/www/netrik + +W3M_DESC= Install with w3m +W3M_RUN_DEPENDS= w3m:${PORTSDIR}/www/w3m + +.include diff --git a/textproc/p5-HTML-FormatExternal/distinfo b/textproc/p5-HTML-FormatExternal/distinfo new file mode 100644 index 000000000000..cce325e619d0 --- /dev/null +++ b/textproc/p5-HTML-FormatExternal/distinfo @@ -0,0 +1,2 @@ +SHA256 (HTML-FormatExternal-22.tar.gz) = 8dbce273f43796e3bf5d14ac4166694de4ed68a560fd0675d4a297ef998d2793 +SIZE (HTML-FormatExternal-22.tar.gz) = 50668 diff --git a/textproc/p5-HTML-FormatExternal/pkg-descr b/textproc/p5-HTML-FormatExternal/pkg-descr new file mode 100644 index 000000000000..78b5fbf93f59 --- /dev/null +++ b/textproc/p5-HTML-FormatExternal/pkg-descr @@ -0,0 +1,13 @@ +HTML-FormatExternal lets you turn HTML into plain text using one of +the browsing/formatting programs, + + elinks http://elinks.cz/ + html2text http://www.mbayer.de/html2text/ + links http://links.twibright.com/ + lynx http://lynx.isc.org/ + netrik http://netrik.sourceforge.net/ + vilistextum http://bhaak.dyndns.org/vilistextum/ + w3m http://sourceforge.net/projects/w3m + zen http://www.nocrew.org/software/zen/ + +WWW: http://search.cpan.org/dist/HTML-FormatExternal/ diff --git a/textproc/p5-HTML-FormatExternal/pkg-plist b/textproc/p5-HTML-FormatExternal/pkg-plist new file mode 100644 index 000000000000..af947ce30080 --- /dev/null +++ b/textproc/p5-HTML-FormatExternal/pkg-plist @@ -0,0 +1,18 @@ +%%SITE_PERL%%/HTML/FormatExternal.pm +%%SITE_PERL%%/HTML/FormatText/Elinks.pm +%%SITE_PERL%%/HTML/FormatText/Html2text.pm +%%SITE_PERL%%/HTML/FormatText/Links.pm +%%SITE_PERL%%/HTML/FormatText/Lynx.pm +%%SITE_PERL%%/HTML/FormatText/Netrik.pm +%%SITE_PERL%%/HTML/FormatText/Vilistextum.pm +%%SITE_PERL%%/HTML/FormatText/W3m.pm +%%SITE_PERL%%/HTML/FormatText/Zen.pm +%%PERL5_MAN3%%/HTML::FormatExternal.3.gz +%%PERL5_MAN3%%/HTML::FormatText::Elinks.3.gz +%%PERL5_MAN3%%/HTML::FormatText::Html2text.3.gz +%%PERL5_MAN3%%/HTML::FormatText::Links.3.gz +%%PERL5_MAN3%%/HTML::FormatText::Lynx.3.gz +%%PERL5_MAN3%%/HTML::FormatText::Netrik.3.gz +%%PERL5_MAN3%%/HTML::FormatText::Vilistextum.3.gz +%%PERL5_MAN3%%/HTML::FormatText::W3m.3.gz +%%PERL5_MAN3%%/HTML::FormatText::Zen.3.gz