Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Apr 2004 04:04:05 -0500 (EST)
From:      Don Croyle <croyle@gelemna.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/65427: Update textproc/txt2html to 2.23
Message-ID:  <20040411090405.2E68FAB2E@cali.gelemna.org>
Resent-Message-ID: <200404110910.i3B9AKPu087992@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         65427
>Category:       ports
>Synopsis:       Update textproc/txt2html to 2.23
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Apr 11 02:10:20 PDT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Don Croyle
>Release:        FreeBSD 5.2-CURRENT i386
>Organization:
>Environment:
System: FreeBSD cali.gelemna.org 5.2-CURRENT FreeBSD 5.2-CURRENT #7: Thu Apr 1 18:42:27 EST 2004 root@cali.gelemna.org:/usr/obj/usr/src/sys/CALI i386


	
>Description:
A long overdue update to the textproc/txt2html port.  New location,
primary author, build structure, etc.

Disclaim maintainership.  Random passersby are more likely to keep
this port up-to-date than I am.
>How-To-Repeat:
	
>Fix:
Apply this patch.  Note that pkg-messsage is empty and should be removed.
	
diff -ruN txt2html.old/Makefile txt2html/Makefile
--- txt2html.old/Makefile	Fri Feb 21 16:10:25 2003
+++ txt2html/Makefile	Sun Apr 11 02:29:00 2004
@@ -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
+BUILD_DEPENDS=	${SITE_PERL}/Getopt/ArgvFile.pm:${PORTSDIR}/devel/p5-Getopt-ArgvFile
+RUN_DEPENDS=	${BUILD_DEPENDS}
 
-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
+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 -ruN txt2html.old/distinfo txt2html/distinfo
--- txt2html.old/distinfo	Thu Mar 18 16:19:04 2004
+++ txt2html/distinfo	Sun Apr 11 00:24:12 2004
@@ -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 -ruN txt2html.old/pkg-descr txt2html/pkg-descr
--- txt2html.old/pkg-descr	Mon Nov  4 14:55:54 2002
+++ txt2html/pkg-descr	Sun Apr 11 02:21:45 2004
@@ -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 @@
 typographic layout), and attempts to mark that structure explicitly
 using HTML.
 
-WWW: http://www.aigeek.com/txt2html/
+WWW: http://txt2html.sourceforge.net/ 
diff -ruN txt2html.old/pkg-message txt2html/pkg-message
--- txt2html.old/pkg-message	Sun Jun 11 11:12:13 2000
+++ txt2html/pkg-message	Wed Dec 31 19:00:00 1969
@@ -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 -ruN txt2html.old/pkg-plist txt2html/pkg-plist
--- txt2html.old/pkg-plist	Mon Dec 24 19:31:38 2001
+++ txt2html/pkg-plist	Sun Apr 11 02:16:47 2004
@@ -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


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040411090405.2E68FAB2E>