mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
Add devel/p5-UI-Dialog.
UI::Dialog is an OOPerl wrapper for the various dialog applications. These dialog backends are currently supported: Zenity, XDialog, GDialog, KDialog, CDialog, and Whiptail. There is also an ASCII backend provided as a last resort interface for the console based dialog variants. PR: ports/97598 Submitted by: Dmitry Karasik <dmitry@karasik.eu.org> Approved by: ahze (mentor, implicit)
This commit is contained in:
parent
fbd9015a93
commit
bf4fbffd65
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=168180
6 changed files with 126 additions and 0 deletions
|
@ -1383,6 +1383,7 @@
|
|||
SUBDIR += p5-Tree-Simple
|
||||
SUBDIR += p5-Tree-Simple-View
|
||||
SUBDIR += p5-Tree-Simple-VisitorFactory
|
||||
SUBDIR += p5-UI-Dialog
|
||||
SUBDIR += p5-UNIVERSAL-can
|
||||
SUBDIR += p5-UNIVERSAL-exports
|
||||
SUBDIR += p5-UNIVERSAL-isa
|
||||
|
|
53
devel/p5-UI-Dialog/Makefile
Normal file
53
devel/p5-UI-Dialog/Makefile
Normal file
|
@ -0,0 +1,53 @@
|
|||
# New ports collection makefile for: devel/p5-UI-Dialog
|
||||
# Date created: 22 May 2006
|
||||
# Whom: Dmitry Karasik <dmitry@karasik.eu.org>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= UI-Dialog
|
||||
PORTVERSION= 1.08
|
||||
CATEGORIES= devel perl5
|
||||
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
|
||||
MASTER_SITE_SUBDIR= ../by-authors/id/K/KC/KCK
|
||||
PKGNAMEPREFIX= p5-
|
||||
|
||||
MAINTAINER= dmitry@karasik.eu.org
|
||||
COMMENT= Perl wrapper for the various dialog applications
|
||||
|
||||
RUN_DEPENDS= cdialog:${PORTSDIR}/devel/cdialog
|
||||
|
||||
.if defined(WITH_X11)
|
||||
RUN_DEPENDS+= xdialog:${PORTSDIR}/x11/xdialog
|
||||
.endif
|
||||
|
||||
.if defined(WITH_NEWT)
|
||||
RUN_DEPENDS+= whiptail:${PORTSDIR}/devel/newt
|
||||
.endif
|
||||
|
||||
.if defined(WITH_KDE)
|
||||
RUN_DEPENDS+= kdialog:${PORTSDIR}/x11/kdebase3
|
||||
.endif
|
||||
|
||||
.if defined(WITH_ZENITY)
|
||||
RUN_DEPENDS+= zenity:${PORTSDIR}/x11/zenity
|
||||
.endif
|
||||
|
||||
PERL_CONFIGURE= yes
|
||||
|
||||
MAN3= UI::Dialog.3 UI::Dialog::Backend::XDialog.3 \
|
||||
UI::Dialog::Backend::KDialog.3 UI::Dialog::Backend::ASCII.3 \
|
||||
UI::Dialog::Backend::Zenity.3 UI::Dialog::KDE.3 \
|
||||
UI::Dialog::Backend.3 UI::Dialog::Gauged.3 \
|
||||
UI::Dialog::Console.3 UI::Dialog::Backend::Whiptail.3 \
|
||||
UI::Dialog::GNOME.3 UI::Dialog::Backend::CDialog.3 \
|
||||
UI::Dialog::Backend::Nautilus.3 UI::Dialog::Backend::GDialog.3 \
|
||||
UI::Dialog::Backend::XOSD.3
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${PERL_LEVEL} < 500600
|
||||
IGNORE= requires Perl 5.006 or above; please upgrade
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
3
devel/p5-UI-Dialog/distinfo
Normal file
3
devel/p5-UI-Dialog/distinfo
Normal file
|
@ -0,0 +1,3 @@
|
|||
MD5 (UI-Dialog-1.08.tar.gz) = 21577159240e57cf786331f6ee0c5177
|
||||
SHA256 (UI-Dialog-1.08.tar.gz) = 10ffec00e8418b68d03da05805a625cb02245a6f3ea07607bb701ff459cf75a4
|
||||
SIZE (UI-Dialog-1.08.tar.gz) = 84141
|
|
@ -0,0 +1,20 @@
|
|||
--- lib/UI/Dialog/Backend/CDialog.pm.orig Mon May 22 10:22:07 2006
|
||||
+++ lib/UI/Dialog/Backend/CDialog.pm Mon May 22 10:22:26 2006
|
||||
@@ -63,7 +63,7 @@
|
||||
$self->{'_opts'}->{'height'} = $cfg->{'height'} || 10;
|
||||
$self->{'_opts'}->{'percentage'} = $cfg->{'percentage'} || 1;
|
||||
$self->{'_opts'}->{'colours'} = ($cfg->{'colours'} || $cfg->{'colors'}) ? 1 : 0;
|
||||
- $self->{'_opts'}->{'bin'} ||= $self->_find_bin('dialog');
|
||||
+ $self->{'_opts'}->{'bin'} ||= $self->_find_bin('cdialog');
|
||||
$self->{'_opts'}->{'autoclear'} = $cfg->{'autoclear'} || 0;
|
||||
$self->{'_opts'}->{'clearbefore'} = $cfg->{'clearbefore'} || 0;
|
||||
$self->{'_opts'}->{'clearafter'} = $cfg->{'clearafter'} || 0;
|
||||
@@ -71,7 +71,7 @@
|
||||
$self->{'_opts'}->{'beepbefore'} = $cfg->{'beepbefore'} || 0;
|
||||
$self->{'_opts'}->{'beepafter'} = $cfg->{'beepafter'} || 0;
|
||||
unless (-x $self->{'_opts'}->{'bin'}) {
|
||||
- croak("the dialog binary could not be found at: ".$self->{'_opts'}->{'bin'});
|
||||
+ croak("the cdialog binary could not be found at: ".$self->{'_opts'}->{'bin'});
|
||||
}
|
||||
$self->{'_opts'}->{'DIALOGRC'} = $cfg->{'DIALOGRC'} || undef();
|
||||
my $beginref = $cfg->{'begin'};
|
13
devel/p5-UI-Dialog/pkg-descr
Normal file
13
devel/p5-UI-Dialog/pkg-descr
Normal file
|
@ -0,0 +1,13 @@
|
|||
UI::Dialog is a OOPerl wrapper for the various dialog applications. These
|
||||
dialog backends are currently supported: Zenity, XDialog, GDialog, KDialog,
|
||||
CDialog, and Whiptail. There is also an ASCII backend provided as a last resort
|
||||
interface for the console based dialog variants. UI::Dialog is a class that
|
||||
provides a strict interface to these various backend modules. By using
|
||||
UI::Dialog (with it's imposed limitations on the widgets) you can ensure that
|
||||
your Perl program will function with any available interfaces.
|
||||
|
||||
WWW: http://search.cpan.org/dist/UI-Dialog
|
||||
|
||||
---
|
||||
|
||||
Dmitry Karasik <dmitry@karasik.eu.org>
|
36
devel/p5-UI-Dialog/pkg-plist
Normal file
36
devel/p5-UI-Dialog/pkg-plist
Normal file
|
@ -0,0 +1,36 @@
|
|||
%%SITE_PERL%%/UI/Dialog.pm
|
||||
%%SITE_PERL%%/UI/Dialog.pod
|
||||
%%SITE_PERL%%/UI/Dialog/Backend/XDialog.pod
|
||||
%%SITE_PERL%%/UI/Dialog/Backend/KDialog.pod
|
||||
%%SITE_PERL%%/UI/Dialog/Backend/GDialog.pod
|
||||
%%SITE_PERL%%/UI/Dialog/Backend/Nautilus.pod
|
||||
%%SITE_PERL%%/UI/Dialog/Backend/ASCII.pod
|
||||
%%SITE_PERL%%/UI/Dialog/Backend/Zenity.pod
|
||||
%%SITE_PERL%%/UI/Dialog/Backend/XOSD.pod
|
||||
%%SITE_PERL%%/UI/Dialog/Backend/CDialog.pod
|
||||
%%SITE_PERL%%/UI/Dialog/Backend/Whiptail.pod
|
||||
%%SITE_PERL%%/UI/Dialog/Backend/XDialog.pm
|
||||
%%SITE_PERL%%/UI/Dialog/Backend/KDialog.pm
|
||||
%%SITE_PERL%%/UI/Dialog/Backend/GDialog.pm
|
||||
%%SITE_PERL%%/UI/Dialog/Backend/CDialog.pm
|
||||
%%SITE_PERL%%/UI/Dialog/Backend/Nautilus.pm
|
||||
%%SITE_PERL%%/UI/Dialog/Backend/ASCII.pm
|
||||
%%SITE_PERL%%/UI/Dialog/Backend/Zenity.pm
|
||||
%%SITE_PERL%%/UI/Dialog/Backend/XOSD.pm
|
||||
%%SITE_PERL%%/UI/Dialog/Backend/Whiptail.pm
|
||||
%%SITE_PERL%%/UI/Dialog/Backend.pm
|
||||
%%SITE_PERL%%/UI/Dialog/KDE.pm
|
||||
%%SITE_PERL%%/UI/Dialog/Console.pm
|
||||
%%SITE_PERL%%/UI/Dialog/GNOME.pm
|
||||
%%SITE_PERL%%/UI/Dialog/Gauged.pm
|
||||
%%SITE_PERL%%/UI/Dialog/Backend.pod
|
||||
%%SITE_PERL%%/UI/Dialog/KDE.pod
|
||||
%%SITE_PERL%%/UI/Dialog/Console.pod
|
||||
%%SITE_PERL%%/UI/Dialog/GNOME.pod
|
||||
%%SITE_PERL%%/UI/Dialog/Gauged.pod
|
||||
%%SITE_PERL%%/%%PERL_ARCH%%/auto/UI/Dialog/.packlist
|
||||
@dirrm %%SITE_PERL%%/UI/Dialog/Backend
|
||||
@dirrm %%SITE_PERL%%/UI/Dialog
|
||||
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/UI/Dialog
|
||||
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/UI
|
||||
@dirrmtry %%SITE_PERL%%/UI
|
Loading…
Add table
Reference in a new issue