Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Apr 2014 06:52:17 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r350572 - head/mail/p5-FuzzyOcr-devel
Message-ID:  <201404080652.s386qHWR063277@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Tue Apr  8 06:52:17 2014
New Revision: 350572
URL: http://svnweb.freebsd.org/changeset/ports/350572
QAT: https://qat.redports.org/buildarchive/r350572/

Log:
  support stage
  respect EXAMPLES

Modified:
  head/mail/p5-FuzzyOcr-devel/Makefile

Modified: head/mail/p5-FuzzyOcr-devel/Makefile
==============================================================================
--- head/mail/p5-FuzzyOcr-devel/Makefile	Tue Apr  8 06:27:52 2014	(r350571)
+++ head/mail/p5-FuzzyOcr-devel/Makefile	Tue Apr  8 06:52:17 2014	(r350572)
@@ -13,6 +13,8 @@ DISTNAME=	${PORTNAME:L}-${DISTVERSION}
 MAINTAINER=	ismail.yenigul@endersys.com.tr
 COMMENT=	Plugin for SpamAssassin which scans image attachments for spam
 
+OPTIONS_DEFINE=	DOCS EXAMPLES
+
 RUN_DEPENDS=	giftopnm:${PORTSDIR}/graphics/netpbm			\
 		gifsicle:${PORTSDIR}/graphics/gifsicle			\
 		gocr:${PORTSDIR}/graphics/gocr				\
@@ -32,6 +34,7 @@ PORTDOCS=	samples
 PORTDOCS_F=	samples/README samples/ocr-animated.eml			\
 		samples/ocr-gif.eml samples/ocr-jpg.eml samples/ocr-multi.eml	\
 		samples/ocr-obfuscated.eml samples/ocr-png.eml samples/ocr-wrongext.eml
+PORTEXAMPLES=	*
 
 SUB_FILES=	pkg-message
 
@@ -46,13 +49,8 @@ PLIST_FILES=	%%SITE_PERL%%/${SA_PLUGINDI
 		%%SITE_PERL%%/${SA_PLUGINDIR}/FuzzyOcr/Misc.pm \
 		%%SITE_PERL%%/${SA_PLUGINDIR}/FuzzyOcr/Preprocessor.pm \
 		%%SITE_PERL%%/${SA_PLUGINDIR}/FuzzyOcr/Scanset.pm \
-		%%SITE_PERL%%/${SA_PLUGINDIR}/FuzzyOcr/Scoring.pm \
-		%%EXAMPLESDIR%%/FuzzyOcr.cf %%EXAMPLESDIR%%/FuzzyOcr.words %%EXAMPLESDIR%%/FuzzyOcr.scansets \
-		%%EXAMPLESDIR%%/FuzzyOcr.preps %%EXAMPLESDIR%%/FuzzyOcr.mysql
-PLIST_DIRS=	%%EXAMPLESDIR%% %%SITE_PERL%%/${SA_PLUGINDIR}/FuzzyOcr
-
-NO_STAGE=	yes
-.include <bsd.port.pre.mk>
+		%%SITE_PERL%%/${SA_PLUGINDIR}/FuzzyOcr/Scoring.pm
+PLIST_DIRS=	%%SITE_PERL%%/${SA_PLUGINDIR}/FuzzyOcr
 
 #.if defined(WITH_OCRAD)
 #RUN_DEPENDS+=	ocrad:${PORTSDIR}/graphics/ocrad
@@ -75,22 +73,17 @@ post-patch:
 	                  ${WRKSRC}/FuzzyOcr.pm
 
 do-install:
-	@${MKDIR} ${EXAMPLESDIR} ${SITE_PERL}/${SA_PLUGINDIR}/FuzzyOcr
-	${INSTALL_DATA} ${WRKSRC}/FuzzyOcr.pm ${SITE_PERL}/${SA_PLUGINDIR}
-	${INSTALL_DATA} ${WRKSRC}/FuzzyOcr/*.pm ${SITE_PERL}/${SA_PLUGINDIR}/FuzzyOcr
-	${INSTALL_DATA} ${WRKSRC}/FuzzyOcr.cf ${EXAMPLESDIR}
-	${INSTALL_DATA} ${WRKSRC}/FuzzyOcr.words ${EXAMPLESDIR}/FuzzyOcr.words
-	${INSTALL_DATA} ${WRKSRC}/FuzzyOcr.scansets ${EXAMPLESDIR}/FuzzyOcr.scansets
-	${INSTALL_DATA} ${WRKSRC}/FuzzyOcr.preps ${EXAMPLESDIR}/FuzzyOcr.preps
-	${INSTALL_DATA} ${WRKSRC}/FuzzyOcr.mysql ${EXAMPLESDIR}/FuzzyOcr.mysql
-
-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}/FuzzyOcr
+	${INSTALL_DATA} ${WRKSRC}/FuzzyOcr.pm ${STAGEDIR}${SITE_PERL}/${SA_PLUGINDIR}
+	${INSTALL_DATA} ${WRKSRC}/FuzzyOcr/*.pm ${STAGEDIR}${SITE_PERL}/${SA_PLUGINDIR}/FuzzyOcr
+	${INSTALL_DATA} ${WRKSRC}/FuzzyOcr.cf ${STAGEDIR}${EXAMPLESDIR}
+	${INSTALL_DATA} ${WRKSRC}/FuzzyOcr.words ${STAGEDIR}${EXAMPLESDIR}/FuzzyOcr.words
+	${INSTALL_DATA} ${WRKSRC}/FuzzyOcr.scansets ${STAGEDIR}${EXAMPLESDIR}/FuzzyOcr.scansets
+	${INSTALL_DATA} ${WRKSRC}/FuzzyOcr.preps ${STAGEDIR}${EXAMPLESDIR}/FuzzyOcr.preps
+	${INSTALL_DATA} ${WRKSRC}/FuzzyOcr.mysql ${STAGEDIR}${EXAMPLESDIR}/FuzzyOcr.mysql
+	@${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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201404080652.s386qHWR063277>