Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Jan 2013 09:46:37 +0900 (JST)
From:      Yasuhiro KIMURA <yasu@utahime.org>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/175272: [PATCH] www/tdiary: adopt OptionsNG
Message-ID:  <20130114004637.6762D4E62C@eastasia.home.utahime.org>
Resent-Message-ID: <201301140050.r0E0o1Bv067122@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130114004637.6762D4E62C>