From c0be2db6873e3ae0ac8f6243544ac89f6a2f4c06 Mon Sep 17 00:00:00 2001 From: Sunpoet Po-Chuan Hsieh Date: Mon, 9 Jul 2012 14:21:43 +0000 Subject: [PATCH] - Convert to new options framework --- textproc/docdiff/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 + 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