From 71eb56655d58cff0d9c918e059363bda45f6cb7d Mon Sep 17 00:00:00 2001 From: Sunpoet Po-Chuan Hsieh Date: Fri, 17 Jun 2011 22:38:51 +0000 Subject: [PATCH] - Update to 0.20 - Add OPTIONS: GRAPHVIZ (off by default) Changes: http://search.cpan.org/dist/Bread-Board/ChangeLog --- devel/p5-Bread-Board/Makefile | 24 ++++++++++++++++++++++-- devel/p5-Bread-Board/distinfo | 4 ++-- devel/p5-Bread-Board/pkg-plist | 5 +++++ 3 files changed, 29 insertions(+), 4 deletions(-) diff --git a/devel/p5-Bread-Board/Makefile b/devel/p5-Bread-Board/Makefile index 7eea022f67e7..fcaabed25034 100644 --- a/devel/p5-Bread-Board/Makefile +++ b/devel/p5-Bread-Board/Makefile @@ -6,8 +6,7 @@ # PORTNAME= Bread-Board -PORTVERSION= 0.18 -PORTREVISION= 1 +PORTVERSION= 0.20 CATEGORIES= devel perl5 MASTER_SITES= CPAN MASTER_SITE_SUBDIR= CPAN:STEVAN @@ -16,6 +15,8 @@ PKGNAMEPREFIX= p5- MAINTAINER= sunpoet@FreeBSD.org COMMENT= A solderless way to wire up your application components +OPTIONS= GRAPHVIZ "Using Graphviz to visualize a Bread::Board system" off + RUN_DEPENDS= p5-Moose>=1.00:${PORTSDIR}/devel/p5-Moose \ p5-MooseX-Clone>=0.05:${PORTSDIR}/devel/p5-MooseX-Clone \ p5-MooseX-Params-Validate>=0.14:${PORTSDIR}/devel/p5-MooseX-Params-Validate @@ -23,6 +24,7 @@ TEST_DEPENDS= p5-Test-Exception>=0:${PORTSDIR}/devel/Test-Exception PERL_CONFIGURE= yes +MAN1= visualize-breadboard.1 MAN3= Bread::Board.3 \ Bread::Board::BlockInjection.3 \ Bread::Board::ConstructorInjection.3 \ @@ -30,6 +32,8 @@ MAN3= Bread::Board.3 \ Bread::Board::Container::Parameterized.3 \ Bread::Board::Dependency.3 \ Bread::Board::Dumper.3 \ + Bread::Board::GraphViz.3 \ + Bread::Board::GraphViz::App.3 \ Bread::Board::LifeCycle.3 \ Bread::Board::LifeCycle::Singleton.3 \ Bread::Board::LifeCycle::Singleton::WithParameters.3 \ @@ -52,4 +56,20 @@ MAN3= Bread::Board.3 \ Bread::Board::Traversable.3 \ Bread::Board::Types.3 +.include + +.if defined(WITH_GRAPHVIZ) +RUN_DEPENDS+= p5-Data-Visitor>=0:${PORTSDIR}/devel/p5-Data-Visitor \ + p5-GraphViz>=0:${PORTSDIR}/graphics/p5-GraphViz \ + p5-MooseX-Runnable>=0:${PORTSDIR}/devel/p5-MooseX-Runnable \ + p5-MooseX-Types-Set-Object>=0:${PORTSDIR}/devel/p5-MooseX-Types-Set-Object \ + p5-Set-Object>=0:${PORTSDIR}/devel/p5-Set-Object +.endif + +post-patch: +.if defined(WITH_GRAPHVIZ) + @${REINPLACE_CMD} -e 's|^# require|require|' ${WRKSRC}/Makefile.PL +.else +.endif + .include diff --git a/devel/p5-Bread-Board/distinfo b/devel/p5-Bread-Board/distinfo index 1bb2018dfafc..0af0ded2be27 100644 --- a/devel/p5-Bread-Board/distinfo +++ b/devel/p5-Bread-Board/distinfo @@ -1,2 +1,2 @@ -SHA256 (Bread-Board-0.18.tar.gz) = 5ccc9986f2daee672193acec48e5bae88054a8e434756507f11e9e345461dab1 -SIZE (Bread-Board-0.18.tar.gz) = 60517 +SHA256 (Bread-Board-0.20.tar.gz) = bcc3c0374f2abea19552230d136aa57f1e184317611976c71b9cebc4068decac +SIZE (Bread-Board-0.20.tar.gz) = 66651 diff --git a/devel/p5-Bread-Board/pkg-plist b/devel/p5-Bread-Board/pkg-plist index 7ed83e4d7164..e5aef2982a20 100644 --- a/devel/p5-Bread-Board/pkg-plist +++ b/devel/p5-Bread-Board/pkg-plist @@ -1,3 +1,4 @@ +bin/visualize-breadboard %%SITE_PERL%%/Bread/Board.pm %%SITE_PERL%%/Bread/Board/BlockInjection.pm %%SITE_PERL%%/Bread/Board/ConstructorInjection.pm @@ -5,6 +6,8 @@ %%SITE_PERL%%/Bread/Board/Container/Parameterized.pm %%SITE_PERL%%/Bread/Board/Dependency.pm %%SITE_PERL%%/Bread/Board/Dumper.pm +%%SITE_PERL%%/Bread/Board/GraphViz.pm +%%SITE_PERL%%/Bread/Board/GraphViz/App.pm %%SITE_PERL%%/Bread/Board/LifeCycle.pm %%SITE_PERL%%/Bread/Board/LifeCycle/Singleton.pm %%SITE_PERL%%/Bread/Board/LifeCycle/Singleton/WithParameters.pm @@ -17,6 +20,7 @@ %%SITE_PERL%%/Bread/Board/Manual/Example/FormSensible.pod %%SITE_PERL%%/Bread/Board/Manual/Example/LogDispatch.pod %%SITE_PERL%%/Bread/Board/Service.pm +%%SITE_PERL%%/Bread/Board/Service/Alias.pm %%SITE_PERL%%/Bread/Board/Service/Deferred.pm %%SITE_PERL%%/Bread/Board/Service/Deferred/Thunk.pm %%SITE_PERL%%/Bread/Board/Service/Inferred.pm @@ -36,6 +40,7 @@ @dirrm %%SITE_PERL%%/Bread/Board/Manual @dirrm %%SITE_PERL%%/Bread/Board/LifeCycle/Singleton @dirrm %%SITE_PERL%%/Bread/Board/LifeCycle +@dirrm %%SITE_PERL%%/Bread/Board/GraphViz @dirrm %%SITE_PERL%%/Bread/Board/Container @dirrm %%SITE_PERL%%/Bread/Board @dirrmtry %%SITE_PERL%%/Bread