1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-23 09:10:43 +00:00

- Convert to new options framework

This commit is contained in:
Sunpoet Po-Chuan Hsieh 2012-07-09 14:21:43 +00:00
parent a2b45cb054
commit c0be2db687
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=300681

View File

@ -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