aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/txt2html
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2004-04-13 05:43:04 +0800
committerpav <pav@FreeBSD.org>2004-04-13 05:43:04 +0800
commitdd7338aae6d71eff13b17035633e56ac3a018564 (patch)
tree410a3b28f6f354bd5277b20c0ad648d2890621f7 /textproc/txt2html
parentbb37e5cb29691fc653d1eb069b81e567fdc788af (diff)
downloadfreebsd-ports-gnome-dd7338aae6d71eff13b17035633e56ac3a018564.tar.gz
freebsd-ports-gnome-dd7338aae6d71eff13b17035633e56ac3a018564.tar.zst
freebsd-ports-gnome-dd7338aae6d71eff13b17035633e56ac3a018564.zip
- Update to 2.23
- Drop maintainership PR: ports/65427 Submitted by: Don Croyle <croyle@gelemna.org> (maintainer)
Diffstat (limited to 'textproc/txt2html')
-rw-r--r--textproc/txt2html/Makefile45
-rw-r--r--textproc/txt2html/distinfo4
-rw-r--r--textproc/txt2html/pkg-descr5
-rw-r--r--textproc/txt2html/pkg-message3
-rw-r--r--textproc/txt2html/pkg-plist13
5 files changed, 30 insertions, 40 deletions
diff --git a/textproc/txt2html/Makefile b/textproc/txt2html/Makefile
index 92a8bbb86780..297948bfea67 100644
--- a/textproc/txt2html/Makefile
+++ b/textproc/txt2html/Makefile
@@ -6,33 +6,28 @@
#
PORTNAME= txt2html
-PORTVERSION= 1.28
-PORTREVISION= 1
-CATEGORIES= textproc
-MASTER_SITES= http://www.aigeek.com/txt2html/
+PORTVERSION= 2.23
+CATEGORIES= textproc perl5
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= txt2html
-MAINTAINER= croyle@gelemna.org
+MAINTAINER= ports@FreeBSD.org
COMMENT= Convert raw text to something with a little HTML formatting
-NO_BUILD= yes
-USE_REINPLACE= yes
-
-do-configure:
- @${REINPLACE_CMD} -e "s|/usr/local|${PREFIX}|g; \
- s|${PREFIX}/lib|${DATADIR}|" ${WRKSRC}/txt2html.pl
-
-do-install:
- ${INSTALL_SCRIPT} ${WRKSRC}/txt2html.pl ${PREFIX}/bin/txt2html
- @${MKDIR} ${DATADIR}
- ${INSTALL_DATA} ${WRKSRC}/txt2html.dict ${DATADIR}
-.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}
-.for file in INSTALL LICENSE README changes.html sample.foot sample.html sample.txt
- ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
-.endfor
+BUILD_DEPENDS= ${SITE_PERL}/Getopt/ArgvFile.pm:${PORTSDIR}/devel/p5-Getopt-ArgvFile
+RUN_DEPENDS= ${BUILD_DEPENDS}
+
+PERL_CONFIGURE= yes
+
+MAN1= txt2html.1
+MAN3= HTML::TextToHTML.3
+
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500601
+BUILD_DEPENDS+= ${SITE_PERL}/Pod/Usage.pm:${PORTSDIR}/textproc/p5-PodParser \
+ ${SITE_PERL}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec
+RUN_DEPENDS= ${BUILD_DEPENDS}
.endif
- @${ECHO_MSG} "To install the sample links dictionary as the default"
- @${ECHO_MSG} "copy or link ${PREFIX}/share/doc/txt2html/txt2html.dict to"
- @${ECHO_MSG} "${PREFIX}/lib/txt2html.dict or ~/.txt2html.dict"
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/textproc/txt2html/distinfo b/textproc/txt2html/distinfo
index 1549bafd9eae..b4e43353cc1f 100644
--- a/textproc/txt2html/distinfo
+++ b/textproc/txt2html/distinfo
@@ -1,2 +1,2 @@
-MD5 (txt2html-1.28.tar.gz) = 7604cfb7456851bbaffbc48ab4444349
-SIZE (txt2html-1.28.tar.gz) = 23222
+MD5 (txt2html-2.23.tar.gz) = dbcd7a64ec87ad5753755a0321d777d6
+SIZE (txt2html-2.23.tar.gz) = 90665
diff --git a/textproc/txt2html/pkg-descr b/textproc/txt2html/pkg-descr
index d254e5b77760..70451fdef205 100644
--- a/textproc/txt2html/pkg-descr
+++ b/textproc/txt2html/pkg-descr
@@ -1,4 +1,5 @@
-txt2html is a Perl program that converts plain text to HTML.
+txt2html is a Perl program that converts plain text to HTML using
+the included HTML::TextToHTML module.
It supports headings, lists, simple character markup, and
hyperlinking, and is highly customizable. It recognizes some of the
@@ -6,4 +7,4 @@ apparent structure of the source document (mostly whitespace and
typographic layout), and attempts to mark that structure explicitly
using HTML.
-WWW: http://www.aigeek.com/txt2html/
+WWW: http://txt2html.sourceforge.net/
diff --git a/textproc/txt2html/pkg-message b/textproc/txt2html/pkg-message
deleted file mode 100644
index 37bec2157db5..000000000000
--- a/textproc/txt2html/pkg-message
+++ /dev/null
@@ -1,3 +0,0 @@
-To install the sample links dictionary as the default
-copy or link /usr/local/share/doc/txt2html/txt2html.dict to
-/usr/local/lib/txt2html.dict or ~/.txt2html.dict
diff --git a/textproc/txt2html/pkg-plist b/textproc/txt2html/pkg-plist
index 57aae03849c3..850fafe12b7a 100644
--- a/textproc/txt2html/pkg-plist
+++ b/textproc/txt2html/pkg-plist
@@ -1,11 +1,8 @@
bin/txt2html
-share/doc/txt2html/INSTALL
-share/doc/txt2html/LICENSE
-share/doc/txt2html/README
-share/doc/txt2html/changes.html
-share/doc/txt2html/sample.foot
-share/doc/txt2html/sample.html
-share/doc/txt2html/sample.txt
share/txt2html/txt2html.dict
+%%SITE_PERL%%/HTML/TextToHTML.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/HTML/TextToHTML/.packlist
@dirrm share/txt2html
-@dirrm share/doc/txt2html
+@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/HTML/TextToHTML
+@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/HTML 2>/dev/null || true
+@unexec rmdir %D/%%SITE_PERL%%/HTML 2>/dev/null || true