ports/175206: [PATCH] mail/bsfilter: adopt OptionsNG and trim makefile header
Yasuhiro KIMURA
yasu at utahime.org
Fri Jan 11 10:40:01 UTC 2013
>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 at 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:
More information about the freebsd-ports-bugs
mailing list