freebsd-ports/mail/p5-Mail-Audit/Makefile
Sunpoet Po-Chuan Hsieh 3f2e195627 Update to 2.228
- Use real PORTVERSION
- Add LICENSE
- Add TEST_DEPENDS
- Convert to options target helper
- Sort PLIST

Changes:	http://search.cpan.org/dist/Mail-Audit/Changes
2017-02-28 22:50:32 +00:00

53 lines
1.3 KiB
Makefile

# Created by: will
# $FreeBSD$
PORTNAME= Mail-Audit
PORTVERSION= 2.228
CATEGORIES= mail perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
MAINTAINER= perl@FreeBSD.org
COMMENT= Perl module for creating easy mail filters
LICENSE= ART10 GPLv1
LICENSE_COMB= dual
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= p5-File-HomeDir>=0.61:devel/p5-File-HomeDir \
p5-File-Tempdir>=0:devel/p5-File-Tempdir \
p5-MIME-Tools>=0:mail/p5-MIME-Tools \
p5-Mail-Tools>=0:mail/p5-Mail-Tools
RUN_DEPENDS:= ${BUILD_DEPENDS}
TEST_DEPENDS= p5-Mail-POP3Client>=0:mail/p5-Mail-POP3Client \
p5-Parse-RecDescent>=0:devel/p5-Parse-RecDescent
USES= perl5 shebangfix
SHEBANG_FILES= bin/*
USE_PERL5= configure
NO_ARCH= yes
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
EXAMPLESDIR= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}
PORTDOCS= Changes FAQ README
PORTEXAMPLES= popread proc2ma
OPTIONS_DEFINE= DOCS EXAMPLES
post-patch:
@${REINPLACE_CMD} -i '' -e 's|/var/spool/mail|/var/mail|g' \
${WRKSRC}/lib/Mail/Audit.pm
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}/${i}
.endfor
post-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
.for i in ${PORTEXAMPLES}
${INSTALL_SCRIPT} ${WRKSRC}/bin/${i} ${STAGEDIR}${EXAMPLESDIR}/${i}
.endfor
.include <bsd.port.mk>