summaryrefslogtreecommitdiff
path: root/textproc/txt2html
diff options
context:
space:
mode:
authorPete Fritchman <petef@FreeBSD.org>2001-12-25 00:31:38 +0000
committerPete Fritchman <petef@FreeBSD.org>2001-12-25 00:31:38 +0000
commitb569008e01a9e515f799b05e364b386fee7f2595 (patch)
tree08a26108a38b84f1380ac7eb751be3d8a728bd7d /textproc/txt2html
parentUpgrade to 1.5.10 (diff)
- install txt2html.dict in DATADIR instead of DOCSDIR, and tell the txt2html
script where to look for it - use DOCSDIR - bump PORTREVISION PR: 32199 Reported by: Fernan Aguero <fernan@iib.unsam.edu.ar> Approved by: maintainer timeout
Notes
Notes: svn path=/head/; revision=52134
Diffstat (limited to 'textproc/txt2html')
-rw-r--r--textproc/txt2html/Makefile11
-rw-r--r--textproc/txt2html/pkg-plist3
2 files changed, 9 insertions, 5 deletions
diff --git a/textproc/txt2html/Makefile b/textproc/txt2html/Makefile
index 099c3af5dbd0..ef7540df54bf 100644
--- a/textproc/txt2html/Makefile
+++ b/textproc/txt2html/Makefile
@@ -7,6 +7,7 @@
PORTNAME= txt2html
PORTVERSION= 1.28
+PORTREVISION= 1
CATEGORIES= textproc
MASTER_SITES= http://www.aigeek.com/txt2html/
@@ -15,15 +16,17 @@ MAINTAINER= croyle@gelemna.org
NO_BUILD= yes
do-configure:
- cd ${WRKSRC} && perl -pi -e "s|/usr/local|${PREFIX}|g" txt2html.pl
+ @${PERL} -pi -e "s|/usr/local|${PREFIX}|g; \
+ s|${PREFIX}/lib|${DATADIR}|" ${WRKSRC}/txt2html.pl
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/txt2html.pl ${PREFIX}/bin/txt2html
- ${MKDIR} ${PREFIX}/share/doc/txt2html
- ${INSTALL_DATA} ${WRKSRC}/txt2html.dict ${PREFIX}/share/doc/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} ${PREFIX}/share/doc/txt2html/
+ ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.endif
@${ECHO_MSG} "To install the sample links dictionary as the default"
diff --git a/textproc/txt2html/pkg-plist b/textproc/txt2html/pkg-plist
index 84f3bc089f0e..57aae03849c3 100644
--- a/textproc/txt2html/pkg-plist
+++ b/textproc/txt2html/pkg-plist
@@ -1,5 +1,4 @@
bin/txt2html
-share/doc/txt2html/txt2html.dict
share/doc/txt2html/INSTALL
share/doc/txt2html/LICENSE
share/doc/txt2html/README
@@ -7,4 +6,6 @@ share/doc/txt2html/changes.html
share/doc/txt2html/sample.foot
share/doc/txt2html/sample.html
share/doc/txt2html/sample.txt
+share/txt2html/txt2html.dict
+@dirrm share/txt2html
@dirrm share/doc/txt2html