- Add p5-Tk-Role-Dialog 1.112380

Tk::Role::Dialog is meant to be used as a Moose role to be composed for easy Tk
dialogs creation.

It will create a new toplevel with a title, and possibly a header as well as
some buttons.

One can create the middle part of the dialog by providing a _build_gui() method,
that will receive a Tk::Frame where widgets are supposed to be placed.

The attributes (see below) can be either defined as defaults using the
_build_attr() methods, or passed arguments to the constructor call. The only
mandatory attribute is parent, but you'd better provide some other attributes if
you want your dialog to be somehow usable! :-)

WWW: http://search.cpan.org/dist/Tk-Role-Dialog/
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2011-10-10 03:27:37 +00:00
parent a7a66ee9ab
commit 473c176599
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=283293
5 changed files with 62 additions and 0 deletions

View File

@ -176,6 +176,7 @@
SUBDIR += p5-Tk-Getopt
SUBDIR += p5-Tk-HistEntry
SUBDIR += p5-Tk-JComboBox
SUBDIR += p5-Tk-Role-Dialog
SUBDIR += p5-Tk-Role-HasWidgets
SUBDIR += p5-Tk-ResizeButton
SUBDIR += p5-Tk-Splashscreen

View File

@ -0,0 +1,41 @@
# New ports collection makefile for: p5-Tk-Role-Dialog
# Date created: 2011-10-10
# Whom: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= Tk-Role-Dialog
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= Moose role for enhanced Tk dialogs
BUILD_DEPENDS= p5-Moose>=0.92:${PORTSDIR}/devel/p5-Moose \
p5-MooseX-Has-Sugar>=0:${PORTSDIR}/devel/p5-MooseX-Has-Sugar \
p5-MooseX-Types-Path-Class>=0:${PORTSDIR}/devel/p5-MooseX-Types-Path-Class \
p5-Tk>=0:${PORTSDIR}/x11-toolkits/p5-Tk \
p5-Tk-Role-HasWidgets>=${PORTVERSION}:${PORTSDIR}/x11-toolkits/p5-Tk-Role-HasWidgets \
p5-Tk-Sugar>=0:${PORTSDIR}/x11-toolkits/p5-Tk-Sugar
RUN_DEPENDS= p5-Moose>=0.92:${PORTSDIR}/devel/p5-Moose \
p5-MooseX-Has-Sugar>=0:${PORTSDIR}/devel/p5-MooseX-Has-Sugar \
p5-MooseX-Types-Path-Class>=0:${PORTSDIR}/devel/p5-MooseX-Types-Path-Class \
p5-Tk>=0:${PORTSDIR}/x11-toolkits/p5-Tk \
p5-Tk-Role-HasWidgets>=${PORTVERSION}:${PORTSDIR}/x11-toolkits/p5-Tk-Role-HasWidgets \
p5-Tk-Sugar>=0:${PORTSDIR}/x11-toolkits/p5-Tk-Sugar
PERL_MODBUILD= 5.10.0+
MAN3= Tk::Role::Dialog.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>

View File

@ -0,0 +1,2 @@
SHA256 (Tk-Role-Dialog-1.112380.tar.gz) = e067285c9d50417b9ebc24b6f88a6f515fa5600e8e399dfbf815837ec686c969
SIZE (Tk-Role-Dialog-1.112380.tar.gz) = 14759

View File

@ -0,0 +1,15 @@
Tk::Role::Dialog is meant to be used as a Moose role to be composed for easy Tk
dialogs creation.
It will create a new toplevel with a title, and possibly a header as well as
some buttons.
One can create the middle part of the dialog by providing a _build_gui() method,
that will receive a Tk::Frame where widgets are supposed to be placed.
The attributes (see below) can be either defined as defaults using the
_build_attr() methods, or passed arguments to the constructor call. The only
mandatory attribute is parent, but you'd better provide some other attributes if
you want your dialog to be somehow usable! :-)
WWW: http://search.cpan.org/dist/Tk-Role-Dialog/

View File

@ -0,0 +1,3 @@
%%SITE_PERL%%/Tk/Role/Dialog.pm
@dirrmtry %%SITE_PERL%%/Tk/Role
@dirrmtry %%SITE_PERL%%/Tk