aboutsummaryrefslogtreecommitdiff
path: root/textproc/docdiff
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2012-07-09 14:21:43 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2012-07-09 14:21:43 +0000
commitc0be2db6873e3ae0ac8f6243544ac89f6a2f4c06 (patch)
tree50ffc6fc5feba89061c8e1f61a778f4ab90a3ecd /textproc/docdiff
parenta2b45cb0543dbf842118d7d930877bf9a6b9662c (diff)
downloadports-c0be2db6873e3ae0ac8f6243544ac89f6a2f4c06.tar.gz
ports-c0be2db6873e3ae0ac8f6243544ac89f6a2f4c06.zip
Notes
Diffstat (limited to 'textproc/docdiff')
-rw-r--r--textproc/docdiff/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/textproc/docdiff/Makefile b/textproc/docdiff/Makefile
index 4163c6262dd5..7c40c64fada8 100644
--- a/textproc/docdiff/Makefile
+++ b/textproc/docdiff/Makefile
@@ -13,12 +13,16 @@ MASTER_SITES= SF
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Compares two text files by word, by character, or by line
+OPTIONS_DEFINE= DOCS
+
NO_BUILD= yes
USE_RUBY= yes
USE_RUBY_FEATURES= iconv
PORTDOCS= readme.html readme.en.html readme.ja.html
+.include <bsd.port.options.mk>
+
post-patch:
@${REINPLACE_CMD} \
-e '1 s|#!.*|#!${RUBY}|' \
@@ -31,7 +35,7 @@ do-install:
cd ${WRKSRC}/${PORTNAME}/ && ${COPYTREE_SHARE} . ${RUBY_SITELIBDIR}/${PORTNAME}/
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.rb ${PREFIX}/bin/${PORTNAME}
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.conf.example ${PREFIX}/etc/
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
${INSTALL} -d ${DOCSDIR}/
cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}/
.endif