When programming Tk, it's almost always a good idea to keep a reference to the widgets that you created in the interface. Most of the time, a simple hash is enough; but it is usually wrapped up in methods to make the hash private to the window object. And of course, those methods are duplicated in all modules, under a form or another. Since duplication is bad, this module implements a Moose role implementing those methods once and forever. This implies that your class is using Moose in order to consume the role. WWW: http://search.cpan.org/dist/Tk-Role-HasWidgets/
33 lines
869 B
Makefile
33 lines
869 B
Makefile
# New ports collection makefile for: p5-Tk-Role-HasWidgets
|
|
# Date created: 2011-10-10
|
|
# Whom: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= Tk-Role-HasWidgets
|
|
PORTVERSION= 1.112.380
|
|
CATEGORIES= x11-toolkits tk perl5
|
|
MASTER_SITES= CPAN
|
|
PKGNAMEPREFIX= p5-
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION:R}${PORTVERSION:E}
|
|
|
|
MAINTAINER= sunpoet@FreeBSD.org
|
|
COMMENT= Keep track of your Tk widgets
|
|
|
|
BUILD_DEPENDS= p5-Moose>=0.92:${PORTSDIR}/devel/p5-Moose \
|
|
p5-MooseX-Has-Sugar>=0:${PORTSDIR}/devel/p5-MooseX-Has-Sugar
|
|
RUN_DEPENDS= p5-Moose>=0.92:${PORTSDIR}/devel/p5-Moose \
|
|
p5-MooseX-Has-Sugar>=0:${PORTSDIR}/devel/p5-MooseX-Has-Sugar
|
|
|
|
PERL_MODBUILD= 5.10.0+
|
|
|
|
MAN3= Tk::Role::HasWidgets.3
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${PERL_LEVEL} < 501001
|
|
TEST_DEPENDS+= p5-Test-Simple>=0.88:${PORTSDIR}/devel/p5-Test-Simple
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|