diff --git a/textproc/perl2html/Makefile b/textproc/perl2html/Makefile
index 265aebbe16d8..ba13a947c74d 100644
--- a/textproc/perl2html/Makefile
+++ b/textproc/perl2html/Makefile
@@ -7,6 +7,7 @@
PORTNAME= perl2html
PORTVERSION= 0.9.2
+PORTREVISION= 1
CATEGORIES= textproc www
MASTER_SITES= ${MASTER_SITE_SUNSITE}
MASTER_SITE_SUBDIR= apps/www/converters
@@ -20,9 +21,9 @@ MAN1= perl2html.1
.if !defined(NOPORTDOCS)
post-install:
- ${MKDIR} ${PREFIX}/share/doc/perl2html
+ ${MKDIR} ${DOCSDIR}
.for file in AUTHORS NEWS README
- ${INSTALL_MAN} ${WRKSRC}/${file} ${PREFIX}/share/doc/perl2html
+ ${INSTALL_MAN} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.endif
diff --git a/textproc/perl2html/pkg-plist b/textproc/perl2html/pkg-plist
index 0a3ed0d511ff..30c73ef1b907 100644
--- a/textproc/perl2html/pkg-plist
+++ b/textproc/perl2html/pkg-plist
@@ -1,5 +1,5 @@
bin/perl2html
-share/doc/perl2html/AUTHORS
-share/doc/perl2html/NEWS
-share/doc/perl2html/README
-@dirrm share/doc/perl2html
+%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
+%%PORTDOCS%%%%DOCSDIR%%/NEWS
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
diff --git a/vietnamese/libviet/Makefile b/vietnamese/libviet/Makefile
index c6cd20682291..5066621d1ae5 100644
--- a/vietnamese/libviet/Makefile
+++ b/vietnamese/libviet/Makefile
@@ -8,6 +8,7 @@
PORTNAME= libviet
PORTVERSION= 20010210
+PORTREVISION= 1
CATEGORIES= vietnamese devel
MASTER_SITES= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= obrien
@@ -26,9 +27,9 @@ do-install:
charset.h charseta.h charsetv.h ctype.h portable.h vncompos.h vnkeys.h vntype.h \
${PREFIX}/include/viet
.if !defined(NOPORTDOCS)
- @${MKDIR} ${PREFIX}/share/doc/libviet \
- && ${CHMOD} a+rx ${PREFIX}/share/doc/libviet
- @${INSTALL_MAN} ${WRKSRC}/../README.lib ${PREFIX}/share/doc/libviet
+ @${MKDIR} ${DOCSDIR} \
+ && ${CHMOD} a+rx ${DOCSDIR}
+ @${INSTALL_MAN} ${WRKSRC}/../README.lib ${DOCSDIR}
.endif
.include
diff --git a/vietnamese/libviet/pkg-plist b/vietnamese/libviet/pkg-plist
index 039b3ef1d5f5..e9f10bac8f3a 100644
--- a/vietnamese/libviet/pkg-plist
+++ b/vietnamese/libviet/pkg-plist
@@ -9,6 +9,6 @@ include/viet/portable.h
include/viet/vncompos.h
include/viet/vnkeys.h
include/viet/vntype.h
-share/doc/libviet/README.lib
+%%PORTDOCS%%%%DOCSDIR%%/README.lib
@dirrm include/viet
-@dirrm share/doc/libviet
+%%PORTDOCS%%@dirrm %%DOCSDIR%%