summaryrefslogtreecommitdiffstats
path: root/textproc/txt2html
diff options
context:
space:
mode:
authorpetef <petef@FreeBSD.org>2001-12-25 00:31:38 +0000
committerpetef <petef@FreeBSD.org>2001-12-25 00:31:38 +0000
commitfe88a2cc33292febac1d92c205da53e7994bcff5 (patch)
tree16915a9a005211e7fa8d61a6437a96100d58fc52 /textproc/txt2html
parent5ce29f5718c7f2c28445994a507433575a170d7b (diff)
downloadFreeBSD-ports-fe88a2cc33292febac1d92c205da53e7994bcff5.zip
FreeBSD-ports-fe88a2cc33292febac1d92c205da53e7994bcff5.tar.gz
- 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
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 099c3af..ef7540d 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 84f3bc0..57aae03 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
OpenPOWER on IntegriCloud