diff options
author | tota <tota@FreeBSD.org> | 2013-01-14 13:02:10 +0800 |
---|---|---|
committer | tota <tota@FreeBSD.org> | 2013-01-14 13:02:10 +0800 |
commit | e2f6accdd093b45a246a6910b728810193195faa (patch) | |
tree | 0e50450b10df33021f7a22650ef6bfee29984cc0 /www | |
parent | 322860371c611031d28f6e74efd3904b41bbd809 (diff) | |
download | freebsd-ports-gnome-e2f6accdd093b45a246a6910b728810193195faa.tar.gz freebsd-ports-gnome-e2f6accdd093b45a246a6910b728810193195faa.tar.zst freebsd-ports-gnome-e2f6accdd093b45a246a6910b728810193195faa.zip |
- Adopt OptionsNG
PR: ports/175272 (based on)
Submitted by: Yasuhiro KIMURA <yasu_AT_utahime_DOT_org>
Diffstat (limited to 'www')
-rw-r--r-- | www/tdiary/Makefile | 39 |
1 files changed, 23 insertions, 16 deletions
diff --git a/www/tdiary/Makefile b/www/tdiary/Makefile index 13814182e71d..c5b3360cb806 100644 --- a/www/tdiary/Makefile +++ b/www/tdiary/Makefile @@ -61,23 +61,12 @@ TDIARY_LANG= en REINPLACE_ARGS= -i '' -.include <bsd.port.pre.mk> +OPTIONS_DEFINE= DOCS NORA +OPTIONS_DEFAULT= NORA -.if ${RUBY_VER} == 1.9 -.if !defined(RUBY_PROVIDED) -IGNORE= requires Ruby 1.9.1 or later -.endif -.endif +NORA_DESC= Use Nora -.if ${RUBY_VER} == 1.8 -.if !defined(RUBY_PROVIDED) -IGNORE= requires Ruby 1.8.5 or later -.endif -RUN_DEPENDS+= ${DEPEND_RUBY_ICONV} -.if !defined(WITHOUT_TDIARY_NORA) -RUN_DEPENDS+= ${RUBY_SITEARCHLIBDIR}/web/escape_ext.so:${PORTSDIR}/www/ruby-nora -.endif -.endif +.include <bsd.port.options.mk> pre-patch: @${RM} ${WRKSRC}/.gitignore @@ -115,7 +104,7 @@ do-install: post-install: @${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}' >> ${TMPPLIST} @${ECHO_CMD} bin/${TDIARY_SCRIPT} >> ${TMPPLIST} -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} @${INSTALL} -d ${DOCSDIR} @cd ${WRKSRC}/doc && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR} .endif @@ -125,4 +114,22 @@ x-generate-plist: ${FIND} ${WWWDIR} -type f -o -type l | ${SORT} | ${SED} -e 's,${WWWDIR},%%WWWDIR%%,g' > pkg-plist.new ${FIND} ${WWWDIR} -type d -depth | ${SORT} -r | ${SED} -e 's,${WWWDIR},@dirrm %%WWWDIR%%,g' >> pkg-plist.new +.include <bsd.port.pre.mk> + +.if ${RUBY_VER} == 1.9 +.if !defined(RUBY_PROVIDED) +IGNORE= requires Ruby 1.9.1 or later +.endif +.endif + +.if ${RUBY_VER} == 1.8 +.if !defined(RUBY_PROVIDED) +IGNORE= requires Ruby 1.8.5 or later +.endif +RUN_DEPENDS+= ${DEPEND_RUBY_ICONV} +.if ${PORT_OPTIONS:MNORA} +RUN_DEPENDS+= ${RUBY_SITEARCHLIBDIR}/web/escape_ext.so:${PORTSDIR}/www/ruby-nora +.endif +.endif + .include <bsd.port.post.mk> |