1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-30 01:15:52 +00:00

This module marries App::Cmd with MooseX::Getopt.

Use it like App::Cmd advises (especially see App::Cmd::Tutorial),
swapping App::Cmd::Command for MooseX::App::Cmd::Command.

Then you can write your moose commands as moose classes, with
MooseX::Getopt defining the options for you instead of opt_spec
returning a Getopt::Long::Descriptive spec.

WWW:	http://search.cpan.org/dist/MooseX-App-Cmd/

PR:		ports/ports/152164
Submitted by:	Gea-Suan Lin <gslin at gslin.org>
This commit is contained in:
Philip M. Gollucci 2010-11-16 02:53:09 +00:00
parent 60ed75db7a
commit 1a8ef6e221
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=264613
5 changed files with 50 additions and 0 deletions

View File

@ -1902,6 +1902,7 @@
SUBDIR += p5-Moose-Autobox
SUBDIR += p5-Moose-Policy
SUBDIR += p5-MooseX-Aliases
SUBDIR += p5-MooseX-App-Cmd
SUBDIR += p5-MooseX-Async
SUBDIR += p5-MooseX-AttributeHelpers
SUBDIR += p5-MooseX-ClassAttribute

View File

@ -0,0 +1,27 @@
# New ports collection makefile for: p5-MooseX-App-Cmd
# Date created: 2010-11-12
# Whom: Gea-Suan Lin <gslin@gslin.org>
#
# $FreeBSD$
#
PORTNAME= MooseX-App-Cmd
PORTVERSION= 0.06
CATEGORIES= devel perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
MAINTAINER= gslin@gslin.org
COMMENT= Mashes up MooseX::Getopt and App::Cmd
RUN_DEPENDS= p5-App-Cmd>=0.3:${PORTSDIR}/devel/p5-App-Cmd \
p5-Getopt-Long-Descriptive>=0:${PORTSDIR}/devel/p5-Getopt-Long-Descriptive \
p5-Moose>=0.86:${PORTSDIR}/devel/p5-Moose \
p5-MooseX-Getopt>=0.18:${PORTSDIR}/devel/p5-MooseX-Getopt
PERL_CONFIGURE= yes
MAN3= MooseX::App::Cmd.3 \
MooseX::App::Cmd::Command.3
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (MooseX-App-Cmd-0.06.tar.gz) = ea4c2b8adba1160cd31b36e17d1fe33ca6e31c30b9af51661627b5f9d987f7d1
SIZE (MooseX-App-Cmd-0.06.tar.gz) = 6447

View File

@ -0,0 +1,10 @@
This module marries App::Cmd with MooseX::Getopt.
Use it like App::Cmd advises (especially see App::Cmd::Tutorial),
swapping App::Cmd::Command for MooseX::App::Cmd::Command.
Then you can write your moose commands as moose classes, with
MooseX::Getopt defining the options for you instead of opt_spec
returning a Getopt::Long::Descriptive spec.
WWW: http://search.cpan.org/dist/MooseX-App-Cmd/

View File

@ -0,0 +1,10 @@
@comment $FreeBSD$
%%SITE_PERL%%/%%PERL_ARCH%%/auto/MooseX/App/Cmd/.packlist
%%SITE_PERL%%/MooseX/App/Cmd.pm
%%SITE_PERL%%/MooseX/App/Cmd/Command.pm
@dirrmtry %%SITE_PERL%%/MooseX/App/Cmd
@dirrmtry %%SITE_PERL%%/MooseX/App
@dirrmtry %%SITE_PERL%%/MooseX
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/MooseX/App/Cmd
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/MooseX/App
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/MooseX