When using Moose::Role, a class which provides a method a role provides will silently override that method. This can cause strange, hard-to-debug errors when the role's methods are not called. Simply use MooseX::Role::WarnOnConflict instead of Moose::Role and overriding a role's method becomes a composition-time warning. See the synopsis for a resolution.
24 lines
565 B
Makefile
24 lines
565 B
Makefile
PORTNAME= MooseX-Role-WarnOnConflict
|
|
PORTVERSION= 0.01
|
|
CATEGORIES= devel perl5
|
|
MASTER_SITES= CPAN
|
|
PKGNAMEPREFIX= p5-
|
|
|
|
MAINTAINER= sunpoet@FreeBSD.org
|
|
COMMENT= Warn if classes override role methods without excluding them
|
|
WWW= https://metacpan.org/dist/MooseX-Role-WarnOnConflict
|
|
|
|
LICENSE= ART20
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
BUILD_DEPENDS= ${RUN_DEPENDS}
|
|
RUN_DEPENDS= p5-Moose>=0:devel/p5-Moose
|
|
TEST_DEPENDS= p5-Capture-Tiny>=0:devel/p5-Capture-Tiny \
|
|
p5-Test-Most>=0:devel/p5-Test-Most
|
|
|
|
USES= perl5
|
|
USE_PERL5= configure
|
|
|
|
NO_ARCH= yes
|
|
|
|
.include <bsd.port.mk>
|