From owner-svn-ports-head@FreeBSD.ORG Tue Apr 8 06:54:52 2014 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3A612324; Tue, 8 Apr 2014 06:54:52 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 0D5A91AEC; Tue, 8 Apr 2014 06:54:52 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s386sp7t063586; Tue, 8 Apr 2014 06:54:51 GMT (envelope-from bapt@svn.freebsd.org) Received: (from bapt@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s386spbA063585; Tue, 8 Apr 2014 06:54:51 GMT (envelope-from bapt@svn.freebsd.org) Message-Id: <201404080654.s386spbA063585@svn.freebsd.org> From: Baptiste Daroussin Date: Tue, 8 Apr 2014 06:54:51 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r350573 - head/mail/p5-FuzzyOcr X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Apr 2014 06:54:52 -0000 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@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 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 +.include