1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-30 05:40:06 +00:00

New port: devel/p5-MooseX-Getopt, A Moose role for processing command line options

This commit is contained in:
Lars Balker Rasmussen 2008-07-28 00:53:55 +00:00
parent 01ecf0f1c2
commit 34890e8735
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=217722
5 changed files with 63 additions and 0 deletions

View File

@ -1472,6 +1472,7 @@
SUBDIR += p5-MooseX-Async
SUBDIR += p5-MooseX-AttributeHelpers
SUBDIR += p5-MooseX-ClassAttribute
SUBDIR += p5-MooseX-Getopt
SUBDIR += p5-MooseX-IOC
SUBDIR += p5-MooseX-POE
SUBDIR += p5-MooseX-Policy-SemiAffordanceAccessor

View File

@ -0,0 +1,35 @@
# New ports collection makefile for: devel/p5-MooseX-Getopt
# Date created: 28 Jul 2008
# Whom: Lars Balker Rasmussen <lbr@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= MooseX-Getopt
PORTVERSION= 0.15
CATEGORIES= devel perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
MAINTAINER= lbr@FreeBSD.org
COMMENT= A Moose role for processing command line options
RUN_DEPENDS= p5-Moose>=0.43:${PORTSDIR}/devel/p5-Moose \
p5-Getopt-Long>=2.37:${PORTSDIR}/devel/p5-Getopt-Long \
p5-Getopt-Long-Descriptive>=0:${PORTSDIR}/devel/p5-Getopt-Long-Descriptive
BUILD_DEPENDS= ${RUN_DEPENDS}
PERL_CONFIGURE= 5.8.0+
MAN3= MooseX::Getopt.3 \
MooseX::Getopt::Meta::Attribute.3 \
MooseX::Getopt::Meta::Attribute::NoGetopt.3 \
MooseX::Getopt::Meta::Attribute::Trait.3 \
MooseX::Getopt::Meta::Attribute::Trait::NoGetopt.3 \
MooseX::Getopt::OptionTypeMap.3 \
MooseX::Getopt::Strict.3
post-extract:
@${PERL} -i -ne 'print unless m,build_requires,' ${WRKSRC}/Makefile.PL
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
MD5 (MooseX-Getopt-0.15.tar.gz) = b3269f83b588f1bdcbe25ea450ec3b96
SHA256 (MooseX-Getopt-0.15.tar.gz) = 3af1824700becc39661c1477b003bd4f45e65edeb79818d8376fa3d24bde9503
SIZE (MooseX-Getopt-0.15.tar.gz) = 29288

View File

@ -0,0 +1,9 @@
This is a role which provides an alternate constructor for creating objects
using parameters passed in from the command line.
This module attempts to DWIM as much as possible with the command line params
by introspecting your class's attributes. It will use the name of your
attribute as the command line option, and if there is a type constraint
defined, it will configure Getopt::Long to handle the option accordingly.
WWW: http://search.cpan.org/dist/MooseX-Getopt/

View File

@ -0,0 +1,15 @@
%%SITE_PERL%%/MooseX/Getopt.pm
%%SITE_PERL%%/MooseX/Getopt/Meta/Attribute.pm
%%SITE_PERL%%/MooseX/Getopt/Meta/Attribute/NoGetopt.pm
%%SITE_PERL%%/MooseX/Getopt/Meta/Attribute/Trait.pm
%%SITE_PERL%%/MooseX/Getopt/Meta/Attribute/Trait/NoGetopt.pm
%%SITE_PERL%%/MooseX/Getopt/OptionTypeMap.pm
%%SITE_PERL%%/MooseX/Getopt/Strict.pm
%%SITE_PERL%%/%%PERL_ARCH%%/auto/MooseX/Getopt/.packlist
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/MooseX/Getopt
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/MooseX
@dirrmtry %%SITE_PERL%%/MooseX/Getopt/Meta/Attribute/Trait
@dirrmtry %%SITE_PERL%%/MooseX/Getopt/Meta/Attribute
@dirrmtry %%SITE_PERL%%/MooseX/Getopt/Meta
@dirrmtry %%SITE_PERL%%/MooseX/Getopt
@dirrmtry %%SITE_PERL%%/MooseX