svn commit: r350573 - head/mail/p5-FuzzyOcr
Baptiste Daroussin
bapt at FreeBSD.org
Tue Apr 8 06:54:52 UTC 2014
Author: bapt
Date: Tue Apr 8 06:54:51 2014
New Revision: 350573
URL: http://svnweb.freebsd.org/changeset/ports/350573
QAT: https://qat.redports.org/buildarchive/r350573/
Log:
Support stage
Modified:
head/mail/p5-FuzzyOcr/Makefile
Modified: head/mail/p5-FuzzyOcr/Makefile
==============================================================================
--- head/mail/p5-FuzzyOcr/Makefile Tue Apr 8 06:52:17 2014 (r350572)
+++ head/mail/p5-FuzzyOcr/Makefile Tue Apr 8 06:54:51 2014 (r350573)
@@ -13,6 +13,8 @@ DISTNAME= ${PORTNAME:L}-${DISTVERSION}
MAINTAINER= ports at FreeBSD.org
COMMENT= Plugin for SpamAssassin which scans image attachments for spam
+OPTIONS_DEFINE= DOCS EXAMPLES
+
RUN_DEPENDS= giftopnm:${PORTSDIR}/graphics/netpbm \
import:${PORTSDIR}/graphics/ImageMagick \
gocr:${PORTSDIR}/graphics/gocr \
@@ -27,6 +29,7 @@ NO_BUILD= yes
WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION}
+PORTEXAMPLES= *
PORTDOCS= FAQ samples
PORTDOCS_F= FAQ samples/README samples/animated-gif.eml \
samples/corrupted-gif.eml samples/jpeg.eml samples/png.eml
@@ -43,11 +46,6 @@ SA_CONFIGDIR?= etc/mail/spamassassin
PLIST_FILES= ${SA_CONFIGDIR}/FuzzyOcr.pm \
%%SITE_PERL%%/${SA_PLUGINDIR}/FuzzyOcr.pm \
- %%EXAMPLESDIR%%/FuzzyOcr.cf %%EXAMPLESDIR%%/FuzzyOcr.words
-PLIST_DIRS= %%EXAMPLESDIR%%
-
-NO_STAGE= yes
-.include <bsd.port.pre.mk>
post-patch:
@${REINPLACE_CMD} -e 's,/usr/bin,${LOCALBASE}/bin,g' \
@@ -60,19 +58,15 @@ post-patch:
${WRKSRC}/FuzzyOcr.cf
do-install:
- @${MKDIR} ${EXAMPLESDIR}
- ${INSTALL_DATA} ${WRKSRC}/FuzzyOcr.pm ${SITE_PERL}/${SA_PLUGINDIR}
- ${INSTALL_DATA} ${WRKSRC}/FuzzyOcr.pm ${PREFIX}/${SA_CONFIGDIR}
- ${INSTALL_DATA} ${WRKSRC}/FuzzyOcr.cf ${EXAMPLESDIR}
- ${INSTALL_DATA} ${WRKSRC}/FuzzyOcr.words.sample ${EXAMPLESDIR}/FuzzyOcr.words
-
-post-install:
-.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}/samples
-. for f in ${PORTDOCS_F}
- ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/${f}
-. endfor
-.endif
- @${CAT} ${PKGMESSAGE}
+ @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${STAGEDIR}${SITE_PERL}/${SA_PLUGINDIR} \
+ ${STAGEDIR}${PREFIX}/${SA_CONFIGDIR}
+ ${INSTALL_DATA} ${WRKSRC}/FuzzyOcr.pm ${STAGEDIR}${SITE_PERL}/${SA_PLUGINDIR}
+ ${INSTALL_DATA} ${WRKSRC}/FuzzyOcr.pm ${STAGEDIR}${PREFIX}/${SA_CONFIGDIR}
+ ${INSTALL_DATA} ${WRKSRC}/FuzzyOcr.cf ${STAGEDIR}${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/FuzzyOcr.words.sample ${STAGEDIR}${EXAMPLESDIR}/FuzzyOcr.words
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}/samples
+.for f in ${PORTDOCS_F}
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}/${f}
+.endfor
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
More information about the svn-ports-all
mailing list