diff options
author | jgh <jgh@FreeBSD.org> | 2013-01-15 08:26:06 +0800 |
---|---|---|
committer | jgh <jgh@FreeBSD.org> | 2013-01-15 08:26:06 +0800 |
commit | 6510e3a1ed066f532f7222e21f09e04f408744ed (patch) | |
tree | c580faa906d30cf84541d32d2074a6f59340534a /mail | |
parent | 3ef9e17edd69fdac4f2587121f183b1595ba45d0 (diff) | |
download | freebsd-ports-gnome-6510e3a1ed066f532f7222e21f09e04f408744ed.tar.gz freebsd-ports-gnome-6510e3a1ed066f532f7222e21f09e04f408744ed.tar.zst freebsd-ports-gnome-6510e3a1ed066f532f7222e21f09e04f408744ed.zip |
- adopt optionsNG, trim historical header and add license
- while here depend on pkgnames for dependencies, fix WWW address
and shorten mastersite
PR: 175206
Submitted by: yasu@utahime.org
Approved by: maintainer, info@otsune.com
Diffstat (limited to 'mail')
-rw-r--r-- | mail/bsfilter/Makefile | 32 | ||||
-rw-r--r-- | mail/bsfilter/pkg-descr | 3 |
2 files changed, 17 insertions, 18 deletions
diff --git a/mail/bsfilter/Makefile b/mail/bsfilter/Makefile index 8a78b80e1530..85f5818d6e32 100644 --- a/mail/bsfilter/Makefile +++ b/mail/bsfilter/Makefile @@ -1,40 +1,40 @@ -# New ports collection makefile for: bsfilter -# Date created: 1 Mar 2004 -# Whom: Masafumi Otsune <info@otsune.com> -# +# Created by: Masafumi Otsune <info@otsune.com> # $FreeBSD$ -# PORTNAME= bsfilter PORTVERSION= 1.0.17 CATEGORIES= mail ruby -MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_JP} +MASTER_SITES= SFJP MASTER_SITE_SUBDIR= bsfilter/49795 EXTRACT_SUFX= .tgz MAINTAINER= info@otsune.com COMMENT= Bayesian spam filter written in Ruby -RUN_DEPENDS= ${RUBY_ARCHLIBDIR}/gdbm.so:${PORTSDIR}/databases/ruby-gdbm +LICENSE= GPLv2 + +RUN_DEPENDS= ${RUBY_PKGNAMEPREFIX}gdbm>=0:${PORTSDIR}/databases/ruby-gdbm 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 + +CHASEN_DESC= Japanese Morphological Analysis Support +MECAB_DESC= Part-of-Speech and Morphological Analyzer -.include <bsd.port.pre.mk> +.include <bsd.port.options.mk> -.if defined(WITH_CHASEN) -RUN_DEPENDS+= ${RUBY_SITEARCHLIBDIR}/chasen.so:${PORTSDIR}/japanese/ruby-chasen +.if ${PORT_OPTIONS:MCHASEN} +RUN_DEPENDS+= ja-${RUBY_PKGNAMEPREFIX}chasen>=0:${PORTSDIR}/japanese/ruby-chasen .endif -.if defined(WITH_MECAB) -RUN_DEPENDS+= ${RUBY_SITEARCHLIBDIR}/MeCab.so:${PORTSDIR}/japanese/ruby-mecab +.if ${PORT_OPTIONS:MMECAB} +RUN_DEPENDS+= ja-${RUBY_PKGNAMEPREFIX}mecab>=0:${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 +47,4 @@ do-install: post-install: @${CAT} ${PKGMESSAGE} -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/mail/bsfilter/pkg-descr b/mail/bsfilter/pkg-descr index 5e3f3ce3d349..cff29ef19ec0 100644 --- a/mail/bsfilter/pkg-descr +++ b/mail/bsfilter/pkg-descr @@ -9,5 +9,4 @@ bsfilter is a spam filter using Bayesian(statistical) algorithm. -- POP proxy. run between POP server and MUA. POP over SSL supported - distributed under GPL -Author: nabeken -WWW: http://bsfilter.org/index-e.html +WWW: http://en.sourceforge.jp/projects/bsfilter/ |