- Update to 1.09

- Add LICENSE
- Convert to new options framework
- Fix RUN_DEPENDS of KDE option: x11/kdebase3 is removed
- Use REINPLACE_CMD instead of patch file
- Pass maintainership to perl
- Sort MAN3 and PLIST
- Add missing trailing slash to WWW

Changes:	http://search.cpan.org/dist/UI-Dialog/Changes
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2013-09-13 15:42:03 +00:00
parent 27f2a302a2
commit 48ff7e8051
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=327163
5 changed files with 72 additions and 69 deletions

View file

@ -2,43 +2,63 @@
# $FreeBSD$
PORTNAME= UI-Dialog
PORTVERSION= 1.08
PORTVERSION= 1.09
CATEGORIES= devel perl5
MASTER_SITES= CPAN
MASTER_SITE_SUBDIR= CPAN:KCK
PKGNAMEPREFIX= p5-
DISTNAME= ${PORTNAME}-${PORTVERSION}-2
MAINTAINER= ports@FreeBSD.org
MAINTAINER= perl@FreeBSD.org
COMMENT= Perl wrapper for the various dialog applications
RUN_DEPENDS= cdialog:${PORTSDIR}/devel/cdialog
LICENSE= LGPL21 LGPL3
LICENSE_COMB= dual
.if defined(WITH_X11)
RUN_DEPENDS+= xdialog:${PORTSDIR}/x11/xdialog
.endif
RUN_DEPENDS= ${LOCALBASE}/bin/cdialog:${PORTSDIR}/devel/cdialog
.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
OPTIONS_DEFINE= KDE NEWT X11 ZENITY
USES= perl5
USE_PERL5= configure
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
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
MAN3= UI::Dialog.3 \
UI::Dialog::Backend.3 \
UI::Dialog::Backend::ASCII.3 \
UI::Dialog::Backend::CDialog.3 \
UI::Dialog::Backend::GDialog.3 \
UI::Dialog::Backend::KDialog.3 \
UI::Dialog::Backend::Nautilus.3 \
UI::Dialog::Backend::Whiptail.3 \
UI::Dialog::Backend::XDialog.3 \
UI::Dialog::Backend::XOSD.3 \
UI::Dialog::Backend::Zenity.3 \
UI::Dialog::Console.3 \
UI::Dialog::GNOME.3 \
UI::Dialog::Gauged.3 \
UI::Dialog::KDE.3 \
UI::Dialog::Screen::Menu.3
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MKDE}
RUN_DEPENDS+= ${LOCALBASE}/bin/kdialog:${PORTSDIR}/x11/kde4-baseapps
.endif
.if ${PORT_OPTIONS:MNEWT}
RUN_DEPENDS+= ${LOCALBASE}/bin/whiptail:${PORTSDIR}/devel/newt
.endif
.if ${PORT_OPTIONS:MX11}
RUN_DEPENDS+= ${LOCALBASE}/bin/Xdialog:${PORTSDIR}/x11/xdialog
.endif
.if ${PORT_OPTIONS:MZENITY}
RUN_DEPENDS+= ${LOCALBASE}/bin/zenity:${PORTSDIR}/x11/zenity
.endif
post-patch:
@${REINPLACE_CMD} -e "/self->{'_opts'}->{'bin'}/ s|dialog|c&|" ${WRKSRC}/lib/UI/Dialog/Backend/CDialog.pm
.include <bsd.port.mk>

View file

@ -1,2 +1,2 @@
SHA256 (UI-Dialog-1.08.tar.gz) = 10ffec00e8418b68d03da05805a625cb02245a6f3ea07607bb701ff459cf75a4
SIZE (UI-Dialog-1.08.tar.gz) = 84141
SHA256 (UI-Dialog-1.09-2.tar.gz) = 9b00086d1c2ccbaf01c5199e42cfedfb681109efc352cb81ce339bdd1abec4bd
SIZE (UI-Dialog-1.09-2.tar.gz) = 91164

View file

@ -1,20 +0,0 @@
--- 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'};

View file

@ -6,4 +6,4 @@ 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
WWW: http://search.cpan.org/dist/UI-Dialog/

View file

@ -1,36 +1,39 @@
%%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.pm
%%SITE_PERL%%/UI/Dialog/Backend.pod
%%SITE_PERL%%/UI/Dialog/Backend/ASCII.pm
%%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.pm
%%SITE_PERL%%/UI/Dialog/Backend/CDialog.pod
%%SITE_PERL%%/UI/Dialog/Backend/GDialog.pm
%%SITE_PERL%%/UI/Dialog/Backend/GDialog.pod
%%SITE_PERL%%/UI/Dialog/Backend/KDialog.pm
%%SITE_PERL%%/UI/Dialog/Backend/KDialog.pod
%%SITE_PERL%%/UI/Dialog/Backend/Nautilus.pm
%%SITE_PERL%%/UI/Dialog/Backend/Nautilus.pod
%%SITE_PERL%%/UI/Dialog/Backend/Whiptail.pm
%%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/XDialog.pod
%%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/Backend/XOSD.pod
%%SITE_PERL%%/UI/Dialog/Backend/Zenity.pm
%%SITE_PERL%%/UI/Dialog/Backend/Zenity.pod
%%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.pm
%%SITE_PERL%%/UI/Dialog/GNOME.pod
%%SITE_PERL%%/UI/Dialog/Gauged.pm
%%SITE_PERL%%/UI/Dialog/Gauged.pod
%%SITE_PERL%%/UI/Dialog/KDE.pm
%%SITE_PERL%%/UI/Dialog/KDE.pod
%%SITE_PERL%%/UI/Dialog/Screen/Menu.pm
%%SITE_PERL%%/UI/Dialog/Screen/Menu.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
@dirrm %%SITE_PERL%%/UI/Dialog/Screen
@dirrm %%SITE_PERL%%/UI/Dialog/Backend
@dirrm %%SITE_PERL%%/UI/Dialog
@dirrmtry %%SITE_PERL%%/UI