From owner-freebsd-perl@FreeBSD.ORG Mon Sep 26 21:50:09 2011 Return-Path: Delivered-To: perl@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8EB71106566C for ; Mon, 26 Sep 2011 21:50:09 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 736ED8FC16 for ; Mon, 26 Sep 2011 21:50:09 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p8QLo9Ro081208 for ; Mon, 26 Sep 2011 21:50:09 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p8QLo964081207; Mon, 26 Sep 2011 21:50:09 GMT (envelope-from gnats) Date: Mon, 26 Sep 2011 21:50:09 GMT Message-Id: <201109262150.p8QLo964081207@freefall.freebsd.org> To: perl@FreeBSD.org From: Matthew Seaman Cc: Subject: Re: ports/160976: [maintainer] www/p5-RTx-Calendar -- drop rt36, add rt40 X-BeenThere: freebsd-perl@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Matthew Seaman List-Id: maintainer of a number of perl-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Sep 2011 21:50:09 -0000 The following reply was made to PR ports/160976; it has been noted by GNATS. From: Matthew Seaman To: FreeBSD-gnats-submit@FreeBSD.org Cc: Subject: Re: ports/160976: [maintainer] www/p5-RTx-Calendar -- drop rt36, add rt40 Date: Mon, 26 Sep 2011 22:40:16 +0100 Updated patch accouting for dougb@'s commits earlier today Index: Makefile =================================================================== RCS file: /home/ncvs/ports/www/p5-RTx-Calendar/Makefile,v retrieving revision 1.12 diff -u -u -r1.12 Makefile --- Makefile 26 Sep 2011 20:01:01 -0000 1.12 +++ Makefile 26 Sep 2011 21:19:46 -0000 @@ -7,7 +7,7 @@ PORTNAME= RTx-Calendar PORTVERSION= 0.08 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= www perl5 MASTER_SITES= CPAN PKGNAMEPREFIX= p5- @@ -15,28 +15,44 @@ MAINTAINER= m.seaman@infracaninophile.co.uk COMMENT= Calendar extension module for the RT ticketing system +LICENSE_COMB= dual +LICENSE= ART10 GPLv1 + BUILD_DEPENDS= ${SITE_PERL}/Date/ICal.pm:${PORTSDIR}/devel/p5-Date-ICal \ ${SITE_PERL}/Data/ICal.pm:${PORTSDIR}/deskutils/p5-Data-ICal \ ${SITE_PERL}/DateTime/Set.pm:${PORTSDIR}/devel/p5-DateTime-Set -RUN_DEPENDS= ${BUILD_DEPENDS} +RUN_DEPENDS:= ${BUILD_DEPENDS} PERL_CONFIGURE= yes -RTHOME?= share/rt38 -RT_PM_DIR= ${SITE_PERL} -BUILD_DEPENDS+= ${RT_PM_DIR}/RT.pm:${PORTSDIR}/www/rt38 +OPTIONS= RT38 "Install for rt-3.8.x (default rt-4.0.x)" off + +.include + +.if defined(WITH_RT38) +RT_VER= 38 +.else +RT_VER= 40 +.endif + +BUILD_DEPENDS+= ${SITE_PERL}/RT.pm:${PORTSDIR}/www/rt${RT_VER} +RUN_DEPENDS+= ${SITE_PERL}/RT.pm:${PORTSDIR}/www/rt${RT_VER} + MAN3PREFIX= ${PREFIX} MAN3= RTx::Calendar.3 -PLIST_SUB+= RTHOME=${RTHOME} +PLIST_SUB+= RTHOME=share/rt${RT_VER} + +post-patch: + @${FIND} ${WRKSRC} -name '*.orig' -delete # Note: You can install using an arbitrary $PREFIX but only if it -# matches the $PREFIX used to install www/rt3{6,8}. Hence ignore +# matches the $PREFIX used to install www/rt{38,40}. Hence ignore # $PREFIX in the environment and inherit settings from RT.pm do-configure: @cd ${CONFIGURE_WRKSRC} && \ unset PREFIX && \ - ${SETENV} ${CONFIGURE_ENV} ${PERL5} -I${RT_PM_DIR} ./${CONFIGURE_SCRIPT} && \ + ${SETENV} ${CONFIGURE_ENV} ${PERL5} -I${SITE_PERL} ./${CONFIGURE_SCRIPT} && \ ${PERL5} -pi -e 's/ doc_(perl|site|\$$\(INSTALLDIRS\))_install$$//' Makefile .include Index: pkg-plist =================================================================== RCS file: /home/ncvs/ports/www/p5-RTx-Calendar/pkg-plist,v retrieving revision 1.3 diff -u -u -r1.3 pkg-plist --- pkg-plist 26 Sep 2011 20:01:01 -0000 1.3 +++ pkg-plist 26 Sep 2011 21:19:46 -0000 @@ -17,6 +17,7 @@ %%RTHOME%%/plugins/RTx-Calendar/html/Elements/CalendarEvent %%RTHOME%%/plugins/RTx-Calendar/html/Callbacks/RTx-Calendar/User/Elements/Tabs/Default %%RTHOME%%/plugins/RTx-Calendar/html/Callbacks/RTx-Calendar/Ticket/Elements/Tabs/Default +%%RTHOME%%/plugins/RTx-Calendar/html/Callbacks/RTx-Calendar/Elements/Tabs/Privileged %%RTHOME%%/plugins/RTx-Calendar/html/Callbacks/RTx-Calendar/Elements/Header/Head man/auto/RTx/Calendar/.packlist @dirrm %%RTHOME%%/plugins/RTx-Calendar/lib/RTx @@ -35,6 +36,7 @@ @dirrm %%RTHOME%%/plugins/RTx-Calendar/html/Callbacks/RTx-Calendar/Ticket/Elements/Tabs @dirrm %%RTHOME%%/plugins/RTx-Calendar/html/Callbacks/RTx-Calendar/Ticket/Elements @dirrm %%RTHOME%%/plugins/RTx-Calendar/html/Callbacks/RTx-Calendar/Ticket +@dirrm %%RTHOME%%/plugins/RTx-Calendar/html/Callbacks/RTx-Calendar/Elements/Tabs @dirrm %%RTHOME%%/plugins/RTx-Calendar/html/Callbacks/RTx-Calendar/Elements/Header @dirrm %%RTHOME%%/plugins/RTx-Calendar/html/Callbacks/RTx-Calendar/Elements @dirrm %%RTHOME%%/plugins/RTx-Calendar/html/Callbacks/RTx-Calendar Index: files/patch-html_Callbacks_RTx-Calendar_Elements_Tabs_Privileged =================================================================== RCS file: files/patch-html_Callbacks_RTx-Calendar_Elements_Tabs_Privileged diff -N files/patch-html_Callbacks_RTx-Calendar_Elements_Tabs_Privileged --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ files/patch-html_Callbacks_RTx-Calendar_Elements_Tabs_Privileged 26 Sep 2011 21:19:46 -0000 @@ -0,0 +1,79 @@ + +$FreeBSD$ + +--- html/Callbacks/RTx-Calendar/Elements/Tabs/Privileged.orig ++++ html/Callbacks/RTx-Calendar/Elements/Tabs/Privileged +@@ -0,0 +1,73 @@ ++%# BEGIN BPS TAGGED BLOCK {{{ ++%# ++%# COPYRIGHT: ++%# ++%# This software is Copyright (c) 1996-2011 Best Practical Solutions, LLC ++%# ++%# ++%# (Except where explicitly superseded by other copyright notices) ++%# ++%# ++%# LICENSE: ++%# ++%# This work is made available to you under the terms of Version 2 of ++%# the GNU General Public License. A copy of that license should have ++%# been provided with this software, but in any event can be snarfed ++%# from www.gnu.org. ++%# ++%# This work is distributed in the hope that it will be useful, but ++%# WITHOUT ANY WARRANTY; without even the implied warranty of ++%# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ++%# General Public License for more details. ++%# ++%# You should have received a copy of the GNU General Public License ++%# along with this program; if not, write to the Free Software ++%# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA ++%# 02110-1301 or visit their web page on the internet at ++%# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. ++%# ++%# ++%# CONTRIBUTION SUBMISSION POLICY: ++%# ++%# (The following paragraph is not intended to limit the rights granted ++%# to you to modify and distribute this software under the terms of ++%# the GNU General Public License and is only of importance to you if ++%# you choose to contribute your changes and enhancements to the ++%# community by submitting them to Best Practical Solutions, LLC.) ++%# ++%# By intentionally submitting any modifications, corrections or ++%# derivatives to this work, or any other work intended for use with ++%# Request Tracker, to Best Practical Solutions, LLC, you confirm that ++%# you are the copyright holder for those contributions and you grant ++%# Best Practical Solutions, LLC a nonexclusive, worldwide, irrevocable, ++%# royalty-free, perpetual, license to use, copy, create derivative ++%# works based on those contributions, and sublicense and distribute ++%# those contributions and any derivatives thereof. ++%# ++%# END BPS TAGGED BLOCK }}} ++<%INIT> ++my $request_path = $HTML::Mason::Commands::r->path_info; ++ ++my $query_string = sub { ++ my %args = @_; ++ my $u = URI->new(); ++ $u->query_form(%args); ++ return $u->query; ++}; ++ ++if ( $request_path =~ qr{^/Search/} && $m->request_args->{Query} ) { ++ my $tabs = PageMenu; ++ $tabs->child( 'calendar' => title => loc('Calendar'), ++ path => '/Search/Calendar.html?' . $query_string->( ++ %{$m->request_args} ) ); ++} ++ ++my $about_me = Menu->child( 'preferences' ); ++my $settings = $about_me ? $about_me->child('settings') : undef; ++ ++if ( $settings ) { ++ $settings->child( 'calendar' => title => loc('Calendar'), ++ path => '/Prefs/Calendar.html' ); ++} ++ ++ Index: files/patch-html_Prefs_Calendar.html =================================================================== RCS file: files/patch-html_Prefs_Calendar.html diff -N files/patch-html_Prefs_Calendar.html --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ files/patch-html_Prefs_Calendar.html 26 Sep 2011 21:19:46 -0000 @@ -0,0 +1,20 @@ + +$FreeBSD$ + +--- html/Prefs/Calendar.html.orig ++++ html/Prefs/Calendar.html +@@ -6,10 +6,14 @@ + + + <& /Elements/Header, Title => $title &> ++% if ( $m->comp_exists( '/User/Elements/Tabs' ) ) { + <& /User/Elements/Tabs, + current_tab => 'Prefs/Calendar.html', + Title => $title + &> ++% } else { ++<& /Elements/Tabs &> ++% } + + <&| /Widgets/TitleBox, title => loc('ICal Feeds (ics)') &> + Index: files/patch-html_Search_Calendar.html =================================================================== RCS file: files/patch-html_Search_Calendar.html diff -N files/patch-html_Search_Calendar.html --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ files/patch-html_Search_Calendar.html 26 Sep 2011 21:19:46 -0000 @@ -0,0 +1,52 @@ + +$FreeBSD$ + +--- html/Search/Calendar.html.orig ++++ html/Search/Calendar.html +@@ -10,9 +10,15 @@ + + + <& /Elements/Header, Title => $title &> ++ ++% if ( $m->comp_exists( '/Ticket/Elements/Tabs' ) ) { + <& /Ticket/Elements/Tabs, + current_tab => "Search/Calendar.html?$QueryString", + Title => $title &> ++% } else { ++ <& /Elements/Tabs &> ++% } ++ + <&| /Widgets/TitleBox, + title => loc('Calendar for ') . $rtdate->GetMonth($Month) . " $Year" , + title_class=> 'inverse', +@@ -26,7 +32,7 @@ + % $PYear--; + % $PMonth = 11; + % } +-«<%$rtdate->GetMonth($PMonth)%> ++?<%$rtdate->GetMonth($PMonth)%> + + + Calendar Preferences and Help +@@ -37,7 +43,7 @@ + % $NYear++; + % $NMonth = 0; + % } +-<%$rtdate->GetMonth($NMonth)%>» ++<%$rtdate->GetMonth($NMonth)%>? + + + +@@ -77,10 +83,10 @@ + + + + + +
+-«<%$rtdate->GetMonth($PMonth)%> ++?<%$rtdate->GetMonth($PMonth)%> + +-<%$rtdate->GetMonth($NMonth)%>» ++<%$rtdate->GetMonth($NMonth)%>? +
-- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matthew@infracaninophile.co.uk Kent, CT11 9PW