aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/lens/Makefile16
-rw-r--r--mail/lens/distinfo1
-rw-r--r--mail/lens/pkg-descr2
-rw-r--r--mail/lens/pkg-plist6
4 files changed, 14 insertions, 11 deletions
diff --git a/mail/lens/Makefile b/mail/lens/Makefile
index 102143adbbb2..acb3cc97601b 100644
--- a/mail/lens/Makefile
+++ b/mail/lens/Makefile
@@ -7,8 +7,10 @@
PORTNAME= lens
PORTVERSION= 0.2
+PORTREVISION= 1
CATEGORIES= mail ruby
-MASTER_SITES= http://pitecan.com/Lens/
+MASTER_SITES= http://www.pitecan.com/Lens/ \
+ ${MASTER_SITE_LOCAL:S|%SUBDIR%|tota/lens|}
MAINTAINER= tota@FreeBSD.org
COMMENT= A mail filter written in Ruby
@@ -21,16 +23,18 @@ RUBY_SHEBANG_FILES= lens
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/lens ${PREFIX}/bin
- @${MKDIR} ${RUBY_SITELIBDIR}/lens
+ ${MKDIR} ${RUBY_SITELIBDIR}/lens
.for f in ${LIB_FILES}
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_SITELIBDIR}/lens
.endfor
- @${MKDIR} ${EXAMPLESDIR}
- ${INSTALL_DATA} ${WRKSRC}/lensrc.sample ${EXAMPLESDIR}/dot.lensrc
- ${INSTALL_DATA} ${WRKSRC}/commandmailrc.sample ${EXAMPLESDIR}/dot.commandmailrc
.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}
+ ${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/index.html ${DOCSDIR}
.endif
+.if !defined(NOPORTEXAMPLES)
+ ${MKDIR} ${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/lensrc.sample ${EXAMPLESDIR}/dot.lensrc
+ ${INSTALL_DATA} ${WRKSRC}/commandmailrc.sample ${EXAMPLESDIR}/dot.commandmailrc
+.endif
.include <bsd.port.mk>
diff --git a/mail/lens/distinfo b/mail/lens/distinfo
index c44cb4ff5393..610c8d856ccf 100644
--- a/mail/lens/distinfo
+++ b/mail/lens/distinfo
@@ -1,3 +1,2 @@
-MD5 (lens-0.2.tar.gz) = cf2b45f038d65233e91b78d56abb5ba8
SHA256 (lens-0.2.tar.gz) = e3c559ade7246784d03e7139a0fad253e77cc25594fee54f896b182c86244d52
SIZE (lens-0.2.tar.gz) = 7786
diff --git a/mail/lens/pkg-descr b/mail/lens/pkg-descr
index 7bf508f14770..52330d6ab7d4 100644
--- a/mail/lens/pkg-descr
+++ b/mail/lens/pkg-descr
@@ -2,4 +2,4 @@ Lens is a mail filter written in Ruby. Lens can filter an
incoming mail when it is received and filter mails in a Maildir.
Author: Toshiyuki Masui
-WWW: http://pitecan.com/Lens/
+WWW: http://www.pitecan.com/Lens/
diff --git a/mail/lens/pkg-plist b/mail/lens/pkg-plist
index 42ebe78ef1d1..73db3ce95d6d 100644
--- a/mail/lens/pkg-plist
+++ b/mail/lens/pkg-plist
@@ -5,8 +5,8 @@ bin/lens
%%RUBY_SITELIBDIR%%/lens/message.rb
%%RUBY_SITELIBDIR%%/lens/parsedate.rb
@dirrm %%RUBY_SITELIBDIR%%/lens
-%%EXAMPLESDIR%%/dot.commandmailrc
-%%EXAMPLESDIR%%/dot.lensrc
-@dirrm %%EXAMPLESDIR%%
%%PORTDOCS%%%%DOCSDIR%%/index.html
%%PORTDOCS%%@dirrm %%DOCSDIR%%
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/dot.commandmailrc
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/dot.lensrc
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%