2006-05-02 15:46:02 +00:00
|
|
|
# New ports collection makefile for: Lens
|
|
|
|
# Date created: 2006-03-31
|
|
|
|
# Whom: TAKATSU Tomonari <tota@rtfm.jp>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= lens
|
|
|
|
PORTVERSION= 0.2
|
2010-12-30 07:34:45 +00:00
|
|
|
PORTREVISION= 1
|
2006-05-02 15:46:02 +00:00
|
|
|
CATEGORIES= mail ruby
|
2010-12-30 07:34:45 +00:00
|
|
|
MASTER_SITES= http://www.pitecan.com/Lens/ \
|
|
|
|
${MASTER_SITE_LOCAL:S|%SUBDIR%|tota/lens|}
|
2006-05-02 15:46:02 +00:00
|
|
|
|
2010-05-29 03:34:31 +00:00
|
|
|
MAINTAINER= tota@FreeBSD.org
|
2006-05-02 15:46:02 +00:00
|
|
|
COMMENT= A mail filter written in Ruby
|
|
|
|
|
|
|
|
NO_BUILD= yes
|
|
|
|
USE_RUBY= yes
|
|
|
|
|
|
|
|
LIB_FILES= lens.rb maildir.rb message.rb parsedate.rb classify.rb
|
|
|
|
RUBY_SHEBANG_FILES= lens
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/lens ${PREFIX}/bin
|
2010-12-30 07:34:45 +00:00
|
|
|
${MKDIR} ${RUBY_SITELIBDIR}/lens
|
2006-05-02 15:46:02 +00:00
|
|
|
.for f in ${LIB_FILES}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_SITELIBDIR}/lens
|
|
|
|
.endfor
|
|
|
|
.if !defined(NOPORTDOCS)
|
2010-12-30 07:34:45 +00:00
|
|
|
${MKDIR} ${DOCSDIR}
|
2006-05-02 15:46:02 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/index.html ${DOCSDIR}
|
|
|
|
.endif
|
2010-12-30 07:34:45 +00:00
|
|
|
.if !defined(NOPORTEXAMPLES)
|
|
|
|
${MKDIR} ${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/lensrc.sample ${EXAMPLESDIR}/dot.lensrc
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/commandmailrc.sample ${EXAMPLESDIR}/dot.commandmailrc
|
|
|
|
.endif
|
2006-05-02 15:46:02 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|