diff options
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/txt2html/Makefile | 11 | ||||
-rw-r--r-- | textproc/txt2html/pkg-plist | 3 |
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 |