Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Jan 2013 19:29:45 +0900 (JST)
From:      Yasuhiro KIMURA <yasu@utahime.org>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/175206: [PATCH] mail/bsfilter: adopt OptionsNG and trim makefile header
Message-ID:  <20130111102958.7E5934E65F@eastasia.home.utahime.org>
Resent-Message-ID: <201301111040.r0BAe0SE061077@freefall.freebsd.org>

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

>Number:         175206
>Category:       ports
>Synopsis:       [PATCH] mail/bsfilter: adopt OptionsNG and trim makefile header
>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:   Fri Jan 11 10:40:00 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 and trim makefile header.

	
>How-To-Repeat:
	
>Fix:

	

--- patch-bsfilter begins here ---
Index: Makefile
===================================================================
--- Makefile	(revision 310216)
+++ Makefile	(working copy)
@@ -1,9 +1,4 @@
-# New ports collection makefile for:    bsfilter
-# Date created:         1 Mar 2004
-# Whom:                 Masafumi Otsune <info@otsune.com>
-#
 # $FreeBSD$
-#
 
 PORTNAME=	bsfilter
 PORTVERSION=	1.0.17
@@ -20,21 +15,24 @@
 NO_BUILD=	yes
 USE_RUBY=	yes
 
-OPTIONS=	CHASEN "Japanese Morphological Analysis Support" Off \
-		MECAB "Part-of-Speech and Morphological Analyzer" Off
+OPTIONS_DEFINE=	CHASEN DOCS MECAB
+OPTIONS_DEFAULT=	DOCS
 
-.include <bsd.port.pre.mk>
+CHASEN_DESC=	Japanese Morphological Analysis Support
+MECAB_DESC=	Part-of-Speech and Morphological Analyzer
 
-.if defined(WITH_CHASEN)
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MCHASEN}
 RUN_DEPENDS+=	${RUBY_SITEARCHLIBDIR}/chasen.so:${PORTSDIR}/japanese/ruby-chasen
 .endif
-.if defined(WITH_MECAB)
+.if ${PORT_OPTIONS:MMECAB}
 RUN_DEPENDS+=	${RUBY_SITEARCHLIBDIR}/MeCab.so:${PORTSDIR}/japanese/ruby-mecab
 .endif
 
 do-install:
 	@${INSTALL_SCRIPT} ${WRKSRC}/bsfilter/${PORTNAME} ${PREFIX}/bin/${PORTNAME}
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
 	@${MKDIR} ${EXAMPLESDIR}
 .for FILE in bsfilter.conf.sample dot-qmail.sample
 	@${INSTALL_DATA} ${FILESDIR}/${FILE} ${EXAMPLESDIR}
@@ -47,4 +45,4 @@
 post-install:
 	@${CAT} ${PKGMESSAGE}
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
--- patch-bsfilter ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



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