head 1.6; access; symbols pkgsrc-2013Q2:1.6.0.4 pkgsrc-2013Q2-base:1.6 pkgsrc-2012Q4:1.6.0.2 pkgsrc-2012Q4-base:1.6 pkgsrc-2011Q4:1.5.0.20 pkgsrc-2011Q4-base:1.5 pkgsrc-2011Q3:1.5.0.18 pkgsrc-2011Q3-base:1.5 pkgsrc-2011Q2:1.5.0.16 pkgsrc-2011Q2-base:1.5 pkgsrc-2011Q1:1.5.0.14 pkgsrc-2011Q1-base:1.5 pkgsrc-2010Q4:1.5.0.12 pkgsrc-2010Q4-base:1.5 pkgsrc-2010Q3:1.5.0.10 pkgsrc-2010Q3-base:1.5 pkgsrc-2010Q2:1.5.0.8 pkgsrc-2010Q2-base:1.5 pkgsrc-2010Q1:1.5.0.6 pkgsrc-2010Q1-base:1.5 pkgsrc-2009Q4:1.5.0.4 pkgsrc-2009Q4-base:1.5 pkgsrc-2009Q3:1.5.0.2 pkgsrc-2009Q3-base:1.5 pkgsrc-2009Q2:1.3.0.6 pkgsrc-2009Q2-base:1.3 pkgsrc-2009Q1:1.3.0.4 pkgsrc-2009Q1-base:1.3 pkgsrc-2008Q4:1.3.0.2 pkgsrc-2008Q4-base:1.3 pkgsrc-2008Q3:1.2.0.42 pkgsrc-2008Q3-base:1.2 cube-native-xorg:1.2.0.40 cube-native-xorg-base:1.2 pkgsrc-2008Q2:1.2.0.38 pkgsrc-2008Q2-base:1.2 pkgsrc-2008Q1:1.2.0.36 pkgsrc-2008Q1-base:1.2 pkgsrc-2007Q4:1.2.0.34 pkgsrc-2007Q4-base:1.2 pkgsrc-2007Q3:1.2.0.32 pkgsrc-2007Q3-base:1.2 pkgsrc-2007Q2:1.2.0.30 pkgsrc-2007Q2-base:1.2 pkgsrc-2007Q1:1.2.0.28 pkgsrc-2007Q1-base:1.2 pkgsrc-2006Q4:1.2.0.26 pkgsrc-2006Q4-base:1.2 pkgsrc-2006Q3:1.2.0.24 pkgsrc-2006Q3-base:1.2 pkgsrc-2006Q2:1.2.0.22 pkgsrc-2006Q2-base:1.2 pkgsrc-2006Q1:1.2.0.20 pkgsrc-2006Q1-base:1.2 pkgsrc-2005Q4:1.2.0.18 pkgsrc-2005Q4-base:1.2 pkgsrc-2005Q3:1.2.0.16 pkgsrc-2005Q3-base:1.2 pkgsrc-2005Q2:1.2.0.14 pkgsrc-2005Q2-base:1.2 pkgsrc-2005Q1:1.2.0.12 pkgsrc-2005Q1-base:1.2 pkgsrc-2004Q4:1.2.0.10 pkgsrc-2004Q4-base:1.2 pkgsrc-2004Q3:1.2.0.8 pkgsrc-2004Q3-base:1.2 pkgsrc-2004Q2:1.2.0.6 pkgsrc-2004Q2-base:1.2 pkgsrc-2004Q1:1.2.0.4 pkgsrc-2004Q1-base:1.2 pkgsrc-2003Q4:1.2.0.2 pkgsrc-2003Q4-base:1.2 buildlink2:1.1.1.1.0.2 buildlink2-base:1.2 netbsd-1-5-PATCH003:1.1.1.1 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.6 date 2012.01.22.19.38.54; author abs; state dead; branches; next 1.5; 1.5 date 2009.08.26.17.39.01; author sno; state Exp; branches; next 1.4; 1.4 date 2009.07.07.19.45.49; author sno; state dead; branches; next 1.3; 1.3 date 2008.11.17.02.17.09; author he; state Exp; branches; next 1.2; 1.2 date 2002.05.29.15.11.00; author uebayasi; state dead; branches; next 1.1; 1.1 date 2001.07.02.18.08.27; author nra; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2001.07.02.18.08.27; author nra; state Exp; branches 1.1.1.1.2.1; next ; 1.1.1.1.2.1 date 2002.06.23.19.04.30; author jlam; state dead; branches; next ; desc @@ 1.6 log @Updated www/p5-Template-Toolkit to 2.23 patch-aa covered upstream #----------------------------------------------------------------------- # Version 2.23 - 21st January 2012 #------------------------------------------------------------------------ * Fixed bug RT#47929 which caused the XS Stash to die mysteriously when calling code that used string evaluation (e.g. DateTime). * Fixed bug RT#68722 so that list.defined('alpha') always returns false. * Added the TRACE_VARS option to keep track of what variables are used in a template. It's not documented yet. See t/trace_vars.t for an example of use. * Applied patch from RT#48989 to avoid Template::Plugin::Procedural from adding target class' methods AUTOLOAD and new methods multiple times (Jens Rehsack) * Applied patch from RT#53451 to accept negative epoch times in Template::Plugin::Date. * Applied patch from Marc Remy to add $Template::Directive::WHILE_MAX option to tpage. @ text @$NetBSD: patch-aa,v 1.5 2009/08/26 17:39:01 sno Exp $ # Fixes RT #48989 --- lib/Template/Plugin/Procedural.pm.orig 2009-08-25 11:19:17.219629000 +0200 +++ lib/Template/Plugin/Procedural.pm 2009-08-25 11:21:08.970766000 +0200 @@@@ -39,34 +39,40 @@@@ # okay, in our proxy create the autoload routine that will # call the right method in the real class no strict "refs"; - *{ $proxy . "::AUTOLOAD" } = sub { - # work out what the method is called - $AUTOLOAD =~ s!^.*::!!; - - print STDERR "Calling '$AUTOLOAD' in '$class'\n" - if $DEBUG; - - # look up the sub for that method (but in a OO way) - my $uboat = $class->can($AUTOLOAD); - - # if it existed call it as a subroutine, not as a method - if ($uboat) { - shift @@_; - return $uboat->(@@_); - } - - print STDERR "Eeek, no such method '$AUTOLOAD'\n" - if $DEBUG; - - return ""; - }; + unless( defined( *{ $proxy . "::AUTOLOAD" } ) ) + { + *{ $proxy . "::AUTOLOAD" } = sub { + # work out what the method is called + $AUTOLOAD =~ s!^.*::!!; + + print STDERR "Calling '$AUTOLOAD' in '$class'\n" + if $DEBUG; + + # look up the sub for that method (but in a OO way) + my $uboat = $class->can($AUTOLOAD); + + # if it existed call it as a subroutine, not as a method + if ($uboat) { + shift @@_; + return $uboat->(@@_); + } + + print STDERR "Eeek, no such method '$AUTOLOAD'\n" + if $DEBUG; + + return ""; + }; + } # create a simple new method that simply returns a blessed # scalar as the object. - *{ $proxy . "::new" } = sub { - my $this; - return bless \$this, $_[0]; - }; + unless( defined( *{ $proxy . "::new" } ) ) + { + *{ $proxy . "::new" } = sub { + my $this; + return bless \$this, $_[0]; + }; + } return $proxy; } @ 1.5 log @Adding a bug-fix which supresses same function is installed multiple times. See http://rt.cpan.org/Ticket/Display.html?id=48989 for details. @ text @d1 1 a1 1 $NetBSD$ @ 1.4 log @pkgsrc changes: - Updated package for p5 module Template::Toolkit from 2.20 to 2.21 - Set license to perl license according to META.yml - Adjusting dependencies according to META.yml Upstream changes: #----------------------------------------------------------------------- # Version 2.21 - 30th June 2009 #------------------------------------------------------------------------ * Fixed a PRE_CHOMP bug that left \r characters lying around when confronted with templates with DOS \r\n line endings. https://rt.cpan.org/Ticket/Display.html?id=43345 * Applied patch from Bradley Baetz to fix defblock #line numbers http://rt.cpan.org/Public/Bug/Display.html?id=47024 #----------------------------------------------------------------------- # Version 2.20_4 (2.21 candidate) - 21st May 2009 #------------------------------------------------------------------------ * Added the even(), odd() and parity() methods to Template::Iterator to assist in making zebra tables. * Removed a post-5.6 perlism in Template::Context that broke on 5.6.2 https://rt.cpan.org/Ticket/Display.html?id=46250 * Replaced a whole bunch of UNIVERSAL::isa() calls with blessed/isa * Applied a patch from Norbert Buchm"uller to prevent the #line markers from being whitespaced away from the first column. https://rt.cpan.org/Ticket/Display.html?id=46269 * Applied a patch from Denis F. Latypoff to fix uri/url filters with utf8 text https://rt.cpan.org/Ticket/Display.html?id=41173 #----------------------------------------------------------------------- # Version 2.20_3 (2.21 candidate) - 20th May 2009 #------------------------------------------------------------------------ * Fixed the XS Stash to compile properly in threaded Perls. https://rt.cpan.org/Public/Bug/Display.html?id=46240 * Applied a patch to the XS Stash from Alexey A. Kiritchun to make the scalar.length vmethod work correctly with utf8 strings. http://lists.tt2.org/pipermail/templates/2009-May/010803.html #----------------------------------------------------------------------- # Version 2.20_2 (2.21 candidate) - 17th May 2009 #------------------------------------------------------------------------ * Applied a patch to Template::Test from Andrew Ford to make it skip properly. http://lists.tt2.org/pipermail/templates/2009-March/010678.html * Changed the ttree -v/--verbose option so be less verbose and only report on things that have changed. To make it more verbose (like previous versions), add a second -v/--verbose flag, e.g. $ ttree -v -v * Also added the --summary option to tree to print a summary of what it did, and the --color/--colour option to make it print its verbose messages in colour (on ANSI terminals). * Applied a ttree patch from Lyle Brooks to allow ttree to accept a directory name as a command line argument. * Added the define_view() and define_views() method to Template::Context and added the VIEWS option to pre-define views when the Template object is created. Thanks to Timmy Chan for providing the groundwork on this. http://lists.tt2.org/pipermail/templates/2009-April/010689.html * Retrospectively fixed the Changes for 2.20 to mention the ttree --encoding option. * Applied a patch from Chisel Wright, changing uses of UNIVERSAL::can() to use blessed() and ->can(). http://lists.tt2.org/pipermail/templates/2009-May/010790.html * Fixed a memory leak in the XS Stash introduced in 2.20. Thanks to Breno G. de Oliveira for reporting the problem and helping to narrow it down. https://rt.cpan.org/Public/Bug/Display.html?id=46058 #------------------------------------------------------------------------ # Version 2.20_1 (2.21 candidate) - 7th April 2009 #------------------------------------------------------------------------ * Deleted all the old HTML documentation (now available separately from http://tt2.org/download/index.html#html_docs), examples, libraries and other cruft that was way out of date and badly unloved. * Tweaked Template::Parser to work better with the ANYCASE option. It now knows that anything following a dotop cannot be a keyword so that you can write data.last without the 'last' bit being interpreted as the LAST keyword. Thanks to Sean McAfee for the post that inspired it. http://lists.tt2.org/pipermail/templates/2008-September/010462.html * Fixed a broken test for Apache::Util in the html_entity filter. Added the use_html_entities() and use_apache_util() class methods to Template::Filters to allow end-user selection of one or the other. http://rt.cpan.org/Public/Bug/Display.html?id=40870 http://template-toolkit.org/svnweb/Template2/revision/?rev=1177 * Tweaked Template::Context to recognise Badger::Exception objects and convert them to Template::Exception objects. This is a temporary measure to keep things working during the transition to Badger-based modules. * Added the STRICT option which will cause the stash to throw an exception on encountering an undefined value. Thanks to Ben Tilly for the prod. * Applied a patch to Template::Iterator from Jonathon Padfield to make get_all() do the right thing if get_first() hasn't been called. * Applied a patch to Template::Stash::Context from Ben Tilly to make it easier to subclass. * Applied a patch from Robin Berjon to add the xml filter. @ text @d1 24 a24 448 --- Makefile.PL.orig 2008-08-08 12:41:15.000000000 +0200 +++ Makefile.PL 2008-09-21 16:17:36.000000000 +0200 @@@@ -15,10 +15,9 @@@@ $| = 1; select STDOUT; -use vars qw( $TT_VERSION $TT_PREFIX $TT_IMAGES - $TT_BUILD_DOCS $TT_SPLASH_DOCS $TT_EXAMPLES $TT_EXTRAS +use vars qw( $TT_VERSION $TT_PREFIX $TT_XS_ENABLE $TT_XS_DEFAULT - $TT_SPLASH_THEME $TT_QUIET $TT_ACCEPT $TT_YES ); + $TT_QUIET $TT_ACCEPT $TT_YES ); # check O/S to set sensible defaults @@@@ -65,7 +64,7 @@@@ TT_XS_ENABLE Enable XS Stash (y) TT_XS_DEFAULT Use XS Stash by default (y) - TT_QUIET no messages (n) + TT_QUIET no messages (n) TT_ACCEPT accept defaults (n) By default, the Makefile.PL runs in interactive mode, @@@@ -83,26 +82,12 @@@@ # in this script, here defaulted to sensible values $TT_VERSION = $Template::VERSION; -$TT_PREFIX = ''; # $PREFIX; -$TT_IMAGES = $IMAGES; -$TT_BUILD_DOCS = 'n'; -$TT_SPLASH_DOCS = 'n'; -$TT_EXAMPLES = 'n'; -$TT_EXTRAS = 'n'; -$TT_SPLASH_THEME = 'default'; $TT_XS_ENABLE = 'y'; $TT_XS_DEFAULT = 'y'; $TT_QUIET = 'n'; $TT_ACCEPT = 'n'; -my $TT_SPLASH_FG = ''; -my $TT_SPLASH_BG = ''; -my $TT_SPLASH_FT = ''; -my $TT_SPLASH_BT = ''; - my $DEFAULTS_FILE = '.defaults.cfg'; -my $TT_DOCS_CFG = catfile('docs','ttree.cfg'); -my $TT_EXAMPLE_CFG = catfile('examples','ttree.cfg'); my $DEFAULTS = ''; if (-f $DEFAULTS_FILE) { @@@@ -110,13 +95,6 @@@@ $DEFAULTS = " read from '$DEFAULTS_FILE'"; } -$TT_PREFIX = $ttconfig{ TT_PREFIX } if $ttconfig{ TT_PREFIX }; -$TT_IMAGES = $ttconfig{ TT_IMAGES } if $ttconfig{ TT_IMAGES }; -$TT_SPLASH_THEME = $ttconfig{ TT_THEME } if $ttconfig{ TT_THEME }; -$TT_BUILD_DOCS = $ttconfig{ TT_DOCS } if defined $ttconfig{ TT_DOCS }; -$TT_SPLASH_DOCS = $ttconfig{ TT_SPLASH } if defined $ttconfig{ TT_SPLASH }; -$TT_EXAMPLES = $ttconfig{ TT_EXAMPLES } if defined $ttconfig{ TT_EXAMPLES }; -$TT_EXTRAS = $ttconfig{ TT_EXTRAS } if defined $ttconfig{ TT_EXTRAS }; $TT_XS_ENABLE = $ttconfig{ TT_XS_ENABLE } if defined $ttconfig{ TT_XS_ENABLE }; $TT_XS_DEFAULT = $ttconfig{ TT_XS_DEFAULT } if defined $ttconfig{ TT_XS_DEFAULT }; $TT_QUIET = $ttconfig{ TT_QUIET } if defined $ttconfig{ TT_QUIET }; @@@@ -129,25 +107,13 @@@@ $TT_ACCEPT = $ENV{PERL_MM_USE_DEFAULT} ? 'y' : 'n'; } -foreach ($TT_BUILD_DOCS, $TT_SPLASH_DOCS, $TT_EXAMPLES, - $TT_EXTRAS, $TT_XS_ENABLE, $TT_XS_DEFAULT ) { +foreach ($TT_XS_ENABLE, $TT_XS_DEFAULT ) { $_ = 'n' if ! $_; } $TT_ACCEPT = 0 if $TT_ACCEPT eq 'n'; $TT_QUIET = 0 if $TT_QUIET eq 'n'; $TT_QUIET = 0 unless $TT_ACCEPT; -my $SPLASH_STYLES = { - default => [ 'lilac', 'mauve' ], - aqua => [ 'aqua', 'marine' ], - grey => [ 'grey75', 'grey50' ], - blue => [ 'grey75', 'blue75' ], - red => [ 'grey75', 'red75' ], - green => [ 'grey75', 'green75' ], - leon => [ 'red75', 'orange', 'white', 'black' ], -}; - - # define version numbers of required modules my $TT_APPCONFIG_VERSION = '1.56'; my $TT_FILE_SPEC_VERSION = '0.8'; @@@@ -160,11 +126,6 @@@@ version_check(); mandatory_modules(); optional_stash_xs(); -#optional_extras(); -#splash_images(); -#html_docs(); -#html_docstyle(); -#html_examples(); write_defaults(); print "\n"; @@@@ -174,55 +135,11 @@@@ # build options and write Makefile #------------------------------------------------------------------------ -package MY; - -sub postamble { - return '' unless $main::TT_PREFIX; - my $amble =<<'EOF'; -tt2_install :: - @@$(PERL) bin/tt2inst -v "$(TT_PREFIX)" - -tt2_splash :: - @@$(PERL) -I$(INST_LIB) -I$(INST_ARCHLIB) bin/gifsplash -v -i "$(TT_PREFIX)" - -EOF - $amble .=<SUPER::install(@@_); - my $add = 'tt2_install tt2_splash'; - $add .= ' tt2_html_docs' if $main::TT_BUILD_DOCS; - $add .= ' tt2_examples' if $main::TT_EXAMPLES; - $basic =~ s/^(install\s+::\s+.*)$/$1 $add/m - if $main::TT_PREFIX; - $basic; -} - -sub constants { - my $class = shift; - my $basic = $class->SUPER::constants(@@_); - $basic = "TT_PREFIX = $main::TT_PREFIX\n$basic" - if $main::TT_PREFIX; - $basic; -} - package main; my %opts = ( %config, - 'NAME' => 'Template', + 'NAME' => 'Template', 'DISTNAME' => 'Template-Toolkit', 'VERSION_FROM' => 'lib/Template.pm', 'EXE_FILES' => [ 'bin/tpage', 'bin/ttree' ], @@@@ -310,7 +227,7 @@@@ sub version_check { eval "use Template"; unless ($@@ or $Template::VERSION =~ /^2/) { - warn(< HTML, and PostScript - - * Splash! - a stylish HTML user interface template library / widget set - - * HTML documentation - distributed in template form for customisation - - * Stylesheet templates to generate docs as vanilla HTML or using Splash! - - * Examples - numerous examples of using the template libraries - -If you want to install these optional components then you'll need to -specify a separate directory for them. - -EOF - - if ($TT_EXTRAS = ( - ttprompt('Do you want to install these components?', - $TT_EXTRAS) =~ /^y/i)) { - message(<{ $t }; - local $" = '/'; - printf(" %-8s @@$v\n", $t); - } - print "\n"; - - while (! $splash_style) { - $TT_SPLASH_THEME = ttprompt("Enter name of colour scheme: ", - $TT_SPLASH_THEME); - message("! No such scheme\n"), $TT_SPLASH_THEME = 'default' - unless ($splash_style = $SPLASH_STYLES->{ $TT_SPLASH_THEME }); - } - - ( $TT_SPLASH_BG, $TT_SPLASH_FG, $TT_SPLASH_BT, $TT_SPLASH_FT ) - = @@$splash_style; - - # default background (unselected) text is black, fore is white - $TT_SPLASH_BT ||= 'black'; - $TT_SPLASH_FT ||= 'white'; - - $style = 'splash'; - $style_cfg = < $TT_DOCS_CFG") || die "$TT_DOCS_CFG: $!\n"; - print FP < $TT_EXAMPLE_CFG") || die "$TT_EXAMPLE_CFG: $!\n"; - print FP < $DEFAULTS_FILE") || die "$DEFAULTS_FILE: $!\n"; - my ( $ttdocs, $ttsplash, $ttexamples, - $ttextras, $ttxs_enable, $ttxs_default ) - = map { $_ ? 'y' : 'n' } - ( $TT_BUILD_DOCS, $TT_SPLASH_DOCS, $TT_EXAMPLES, - $TT_EXTRAS, $TT_XS_ENABLE, $TT_XS_DEFAULT ); + my ( $ttxs_enable, $ttxs_default ) + = map { $_ ? 'y' : 'n' } + ( $TT_XS_ENABLE, $TT_XS_DEFAULT ); print FP < $file") || die "$file: $!\n"; print FP $text; @ 1.3 log @Update from version 2.19nb1 to 2.20. Pkgsrc changes: o Accept default TT options, don't set them explicitly. o Add commented-out additional HOMEPAGE using search.cpan.org. o Add a patch related to module bug http://rt.cpan.org/Public/Bug/Display.html?id=39100 Thanks to Jens Rehsack for the update, provided in PR pkg/39600! Upstream changes: #------------------------------------------------------------------------ # Version 2.20 - 13th August 2008 #------------------------------------------------------------------------ * Updated all the documentation. * Restored the GIF images that got mangled in the switch from CVS to Subversion. * Fixed the Makefile.PL to pre-glob the tests to keep things working smoothly in Win32. http://rt.cpan.org/Ticket/Display.html?id=25573 * Applied a patch to Template::Directives from Ben Morrow to fix the SWITCH/CASE directive when matching strings containing regex metacharacters. http://rt.cpan.org/Ticket/Display.html?id=24183 * Applied a patch to Template::Parser from Koichi Taniguchi to make it treat TAGS with case sensitivity. http://rt.cpan.org/Ticket/Display.html?id=19975 * Changed html_entity_filter_factory() in Template::Filters to only look for Apache::Utils and HTML::Entities once. http://rt.cpan.org/Ticket/Display.html?id=19837 Template::Stash --------------- * Applied a patch to Template::Stash from Jess Robinson which allows you to call a list method on a single object and have it automatically upgraded to a single item list. Changed the XS Stash to do the same. http://lists.tt2.org/pipermail/templates/2006-November/009115.html * Fixed a minor bug in the XS Stash which prevented it from updating hash entries with empty, but defined keys. Thanks to Yitzchak Scott-Thoennes for reporting the problem. http://lists.tt2.org/pipermail/templates/2007-November/009819.html * Applied a patch from Alexandr Ciornii to make the XS Stash compile cleanly under VC++ 6.0 and with Sun's C compiler. http://rt.cpan.org/Ticket/Display.html?id=20291 Template::Provider ------------------ * Fixed a minor bug in the Template::Provider code added in 2.19 that caused errors in templates to only be reported once. Subsequent fetches incorrectly returned 'not found' instead of repeating the error. * Made Template::Provider use File::Spec->catfile instead of using '/' and letting Perl worry about Doing The Right Thing. http://rt.cpan.org/Ticket/Display.html?id=34489 * Applied patch from Lyle Brooks to add binmode to the _template_content() method in Template::Provider. http://rt.cpan.org/Ticket/Display.html?id=38075 * Applied patch from Ted Carnahan to silence UNIVERSAL::isa warnings in Template::Provider. http://rt.cpan.org/Ticket/Display.html?id=25468 * Applied patch to Template::Provider from Andrew Hamlin which works around a bug in Strawberry Perl on Win32. http://rt.cpan.org/Ticket/Display.html?id=34578 Template::VMethods ------------------ * Applied a patch from Paul "LeoNerd" Evans to make the list.slice vmethod work properly with negative indices. http://lists.tt2.org/pipermail/templates/2008-March/010105.html Plugins ------- * Added the Math plugin and related files to the MANIFEST so they actually get shipped out as part of the distribution. D'Oh! http://rt.cpan.org/Ticket/Display.html?id=27375 * Added the Scalar plugin which adds the .scalar vmethod for calling object methods and subroutines in scalar context. * Added Template::Plugin::Assert which allows you to assert that values are defined. * Changed Template::Plugin::Filter to weaken the $self reference to avoid circular references and memory leaks. Thanks to Masahiro Honma for reporting the problem and suggesting the fix. * Applied patch from Ronald J Kimball to make Template::Plugin::Date accept dates with the year coming first. http://lists.tt2.org/pipermail/templates/2007-July/009540.html * Added C<1;> to the end of a few plugin modules that were missing it. ttree ----- * Changed the --accept option in ttree to match against the full file path (relative to --src dir) rather than just the file name. This makes it behave the same way as the --ignore option. * Applied patch from Lyle Brooks to add binmode to the process() call in ttree. http://rt.cpan.org/Ticket/Display.html?id=38076 * Added a patch from Nigel Metheringham also to set binmode in ttree but via a configuration option. https://rt.cpan.org/Ticket/Display.html?id=30760 @ text @@ 1.2 log @Updated to 2.07. Provided by Hiramatsu Yoshifumi in pkg/16289 as 2.06, and further update to 2.07 by me. Some of changes from 2.04 are: * Add 'valign' as an option to the html/cell template. * Added the 'uri' filter for URI escaping text. * Incorporated Doug's XS Stash. * Modified Template::Plugins fetch() method to accept $factory as a code reference. * 'orange' became valid colour. * Added 'sorted' as a flag to the HTML plugin. * Added get_all() and get() to the DBI iterator. And many bug fixes as usual. @ text @d1 167 a167 40 $NetBSD: patch-aa,v 1.1 2001/07/02 18:08:27 nra Exp $ --- Makefile.PL.orig Thu Jun 14 03:59:04 2001 +++ Makefile.PL Fri Jun 29 10:10:31 2001 @@@@ -10,7 +10,7 @@@@ $TT_LATEX_PATH $TT_PDFLATEX_PATH $TT_DVIPS_PATH $TT_LATEX_ENABLE $TT_SPLASH_THEME ); -$TT_INST_ROOT = '/usr/local/tt2'; +$TT_INST_ROOT = '/usr/pkg/share/tt2'; $TT_IMAGES = '/tt2/images'; $TT_RUN_DBI = 'y'; $TT_BUILD_DOCS = 'y'; @@@@ -191,16 +191,16 @@@@ $TT_LATEX_ENABLE = 'n'; } $TT_LATEX_ENABLE ||= 'y'; -$TT_LATEX_ENABLE = ( - prompt('Do you want to enable the latex filter?', - $TT_LATEX_ENABLE) =~ /^y/i -); +#$TT_LATEX_ENABLE = ( +# prompt('Do you want to enable the latex filter?', +# $TT_LATEX_ENABLE) =~ /^y/i +#); if ( $TT_LATEX_ENABLE ) { - if (prompt('Are the pdflatex, latex and dvips paths ok?', 'y') !~ /^y/i) { - $TT_PDFLATEX_PATH = prompt('pdflatex path', $TT_PDFLATEX_PATH); - $TT_LATEX_PATH = prompt('latex path', $TT_LATEX_PATH); - $TT_DVIPS_PATH = prompt('dvips path', $TT_DVIPS_PATH); - } +# if (prompt('Are the pdflatex, latex and dvips paths ok?', 'y') !~ /^y/i) { +# $TT_PDFLATEX_PATH = prompt('pdflatex path', $TT_PDFLATEX_PATH); +# $TT_LATEX_PATH = prompt('latex path', $TT_LATEX_PATH); +# $TT_DVIPS_PATH = prompt('dvips path', $TT_DVIPS_PATH); +# } } else { # # Empty paths will cause the latex filter to throw an error @@@@ -237,7 +237,8 @@@@ d169 1 a169 1 EOF d171 2 a172 8 -if (prompt('Do you want to install these components?', 'y') =~ /^y/i) { +if (1) { +#prompt('Do you want to install these components?', 'y') =~ /^y/i) { print <{ $TT_SPLASH_THEME }); } @@@@ -437,10 +438,10 @@@@ EOF d384 123 d508 1 a508 1 - prompt('Do you want to build the HTML example pages?', d511 78 a588 18 +# $TT_EXAMPLES = ( +# prompt('Do you want to build the HTML example pages?', +# $TT_EXAMPLES) =~ /^y/i +# ); #-------------------------------------------------------------------- # write ttree config file for building examples @@@@ -698,9 +699,10 @@@@ print "[X] version $DBI::VERSION installed, configuring tests\n\n"; - if (prompt("Do you want to run the DBI tests?\n" . - "It requires access to an existing test database.", - $TT_RUN_DBI) =~ /y/i) { + if (0) { +#prompt("Do you want to run the DBI tests?\n" . +# "It requires access to an existing test database.", +# $TT_RUN_DBI) =~ /y/i) { d590 2 a591 2 $TT_RUN_DBI = 1; my ($driver, $dbname); @ 1.1 log @Initial revision @ text @d1 1 a1 1 $NetBSD$ @ 1.1.1.1 log @ Add the p5-Template-Toolkit version 2.04. This package is a perl5 text template and dynamic web page intergration module. @ text @@ 1.1.1.1.2.1 log @Merge from pkgsrc-current to buildlink2 branch. @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.1.1.1 2001/07/02 18:08:27 nra Exp $ @