Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Jan 2014 21:29:01 +0000 (UTC)
From:      Antoine Brodin <antoine@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r340111 - head/devel/autodia
Message-ID:  <201401172129.s0HLT1HC089435@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: antoine
Date: Fri Jan 17 21:29:00 2014
New Revision: 340111
URL: http://svnweb.freebsd.org/changeset/ports/340111
QAT: https://qat.redports.org/buildarchive/r340111/

Log:
  - Stage support
  - Use OPTIONS helpers

Modified:
  head/devel/autodia/Makefile
  head/devel/autodia/pkg-plist

Modified: head/devel/autodia/Makefile
==============================================================================
--- head/devel/autodia/Makefile	Fri Jan 17 21:23:09 2014	(r340110)
+++ head/devel/autodia/Makefile	Fri Jan 17 21:29:00 2014	(r340111)
@@ -23,57 +23,21 @@ OPTIONS_DEFAULT=	GRAPHVIZ SPRINGGRAPH VC
 SPRINGGRAPH_DESC=	SpringGraph support
 VCG_DESC=		VCG support
 
-USES=		perl5
+USES=		perl5 shebangfix
+SHEBANG_FILES=	autodia.pl
 USE_PERL5=	configure
 
-MAN1=		autodia.pl.1
-MAN3=		Autodia.3 autodia.3 \
-		Autodia::Diagram.3 \
-		Autodia::Diagram::Class.3 \
-		Autodia::Diagram::Component.3 \
-		Autodia::Handler.3 \
-		Autodia::Handler::ASP.3 \
-		Autodia::Handler::CSharp.3 \
-		Autodia::Handler::Cpp.3 \
-		Autodia::Handler::DBI.3 \
-		Autodia::Handler::DBI_SQLT.3 \
-		Autodia::Handler::Mason.3 \
-		Autodia::Handler::PHP.3 \
-		Autodia::Handler::Perl.3 \
-		Autodia::Handler::SQL.3 \
-		Autodia::Handler::Torque.3 \
-		Autodia::Handler::dia.3 \
-		Autodia::Handler::umbrello.3
 PORTDOCS=	CHANGES CREDITS DEVELOP FAQ INSTALL MANIFEST README TODO
 
-NO_STAGE=	yes
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MGRAPHVIZ}
-RUN_DEPENDS+=	p5-GraphViz>=0:${PORTSDIR}/graphics/p5-GraphViz
-.endif
-
-.if ${PORT_OPTIONS:MSPRINGGRAPH}
-RUN_DEPENDS+=	p5-SpringGraph>=0:${PORTSDIR}/graphics/p5-SpringGraph
-.endif
-
-.if ${PORT_OPTIONS:MVCG}
-RUN_DEPENDS+=	p5-VCG>=0:${PORTSDIR}/graphics/p5-VCG
-.endif
-
-post-patch:
-	@${REINPLACE_CMD} -e \
-		'/^#!/s|/.*perl|${PERL}|' ${WRKSRC}/autodia.pl
+GRAPHVIZ_RUN_DEPENDS=	p5-GraphViz>=0:${PORTSDIR}/graphics/p5-GraphViz
+SPRINGGRAPH_RUN_DEPENDS=	p5-SpringGraph>=0:${PORTSDIR}/graphics/p5-SpringGraph
+VCG_RUN_DEPENDS=	p5-VCG>=0:${PORTSDIR}/graphics/p5-VCG
 
 pre-configure:
 	@${FIND} ${WRKSRC} -name "*.orig" -delete
 
 post-install:
-.if ${PORT_OPTIONS:MDOCS}
-	@${MKDIR} ${DOCSDIR}
-.for i in ${PORTDOCS}
-	${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
-.endfor
-.endif
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>

Modified: head/devel/autodia/pkg-plist
==============================================================================
--- head/devel/autodia/pkg-plist	Fri Jan 17 21:23:09 2014	(r340110)
+++ head/devel/autodia/pkg-plist	Fri Jan 17 21:29:00 2014	(r340111)
@@ -25,6 +25,25 @@ bin/autodia.pl
 %%SITE_PERL%%/Autodia/Handler/umbrello.pm
 %%SITE_PERL%%/autodia.pl
 %%SITE_PERL%%/%%PERL_ARCH%%/auto/Autodia/.packlist
+%%PERL5_MAN3%%/Autodia.3.gz
+%%PERL5_MAN3%%/Autodia::Diagram.3.gz
+%%PERL5_MAN3%%/Autodia::Diagram::Class.3.gz
+%%PERL5_MAN3%%/Autodia::Diagram::Component.3.gz
+%%PERL5_MAN3%%/Autodia::Handler.3.gz
+%%PERL5_MAN3%%/Autodia::Handler::ASP.3.gz
+%%PERL5_MAN3%%/Autodia::Handler::CSharp.3.gz
+%%PERL5_MAN3%%/Autodia::Handler::Cpp.3.gz
+%%PERL5_MAN3%%/Autodia::Handler::DBI.3.gz
+%%PERL5_MAN3%%/Autodia::Handler::DBI_SQLT.3.gz
+%%PERL5_MAN3%%/Autodia::Handler::Mason.3.gz
+%%PERL5_MAN3%%/Autodia::Handler::PHP.3.gz
+%%PERL5_MAN3%%/Autodia::Handler::Perl.3.gz
+%%PERL5_MAN3%%/Autodia::Handler::SQL.3.gz
+%%PERL5_MAN3%%/Autodia::Handler::Torque.3.gz
+%%PERL5_MAN3%%/Autodia::Handler::dia.3.gz
+%%PERL5_MAN3%%/Autodia::Handler::umbrello.3.gz
+%%PERL5_MAN3%%/autodia.3.gz
+man/man1/autodia.pl.1.gz
 @dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Autodia
 @dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto
 @dirrm %%SITE_PERL%%/Autodia/Handler



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