ports/175272: [PATCH] www/tdiary: adopt OptionsNG
Yasuhiro KIMURA
yasu at utahime.org
Mon Jan 14 00:50:02 UTC 2013
>Number: 175272
>Category: ports
>Synopsis: [PATCH] www/tdiary: adopt OptionsNG
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Mon Jan 14 00:50:01 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Yasuhiro KIMURA
>Release: FreeBSD 9.1-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD xxxx 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r245243: Fri Jan 11 10:39:45 JST 2013 xxxx amd64
>Description:
- Adopt OptionsNG.
>How-To-Repeat:
>Fix:
--- patch-tdiary begins here ---
Index: Makefile
===================================================================
--- Makefile (revision 310295)
+++ Makefile (working copy)
@@ -61,7 +61,13 @@
REINPLACE_ARGS= -i ''
+OPTIONS_DEFINE= DOCS NORA
+OPTIONS_DEFAULT= DOCS NORA
+
+NORA_DESC= Use Nora
+
.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
.if ${RUBY_VER} == 1.9
.if !defined(RUBY_PROVIDED)
@@ -74,7 +80,7 @@
IGNORE= requires Ruby 1.8.5 or later
.endif
RUN_DEPENDS+= ${DEPEND_RUBY_ICONV}
-.if !defined(WITHOUT_TDIARY_NORA)
+.if ${PORT_OPTIONS:MNORA}
RUN_DEPENDS+= ${RUBY_SITEARCHLIBDIR}/web/escape_ext.so:${PORTSDIR}/www/ruby-nora
.endif
.endif
@@ -115,7 +121,7 @@
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
--- patch-tdiary ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list