pkgsrc/www/p5-Template-Toolkit/Makefile

29 lines
860 B
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.49 2017/06/05 14:25:32 ryoon Exp $
DISTNAME= Template-Toolkit-2.27
PKGNAME= p5-${DISTNAME}
PKGREVISION= 1
CATEGORIES= www perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Template/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.template-toolkit.org/
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
2008-11-17 03:17:09 +01:00
#HOMEPAGE= http://search.cpan.org/dist/Template-Toolkit/
2004-02-21 08:45:35 +01:00
COMMENT= Perl5 text template and dynamic web page integration toolkit
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.
2009-07-07 21:45:49 +02:00
LICENSE= ${PERL5_LICENSE}
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.
2009-07-07 21:45:49 +02:00
DEPENDS+= p5-AppConfig>=1.56:../../devel/p5-AppConfig
Updating package for p5 module Template::Toolkit from 2.21 to 2.22 pkgsrc changes: - Add dependency to textproc/p5-Pod-POM for Template::Plugin::Pod and graphics/p5-Image-Info for Template::Plugin::Image Upstream changes: #----------------------------------------------------------------------- # Version 2.22 - 21st July 2009 #------------------------------------------------------------------------ * Changed pod coverage and kwalitee tests to only run when release testing. #----------------------------------------------------------------------- # Version 2.21_02 - 4th July 2009 #------------------------------------------------------------------------ * Added UTF8 support to the XS Stash. https://rt.cpan.org/Ticket/Display.html?id=45842 * Fixed the truncate filter to handle lengths shorter than the '...' string being appended on the end. https://rt.cpan.org/Ticket/Display.html?id=45617 * Fixed a bug in the parser/grammar to make NEXT/LAST work correctly inside nested loops. https://rt.cpan.org/Ticket/Display.html?id=40887 * Fixed a bug in Template::Plugin::Filter that was causing the weakened $self reference in a dynamic filter closure to be garbage collected too soon. (NOTE: this has probably un-fixed a previous bug) https://rt.cpan.org/Ticket/Display.html?id=46691 * Applied patch to allow list.sort to sort on multiple fields. https://rt.cpan.org/Ticket/Display.html?id=40637 #----------------------------------------------------------------------- # Version 2.21_01 - 4th July 2009 #------------------------------------------------------------------------ * Removed Template::Plugin::Autoformat and t/autoform.t. They're now available as a separate distribution. * Fixed some Win32 test failures and XS Stash compilation problems.
2009-08-08 15:19:08 +02:00
# recommended because of default-plugin
DEPENDS+= p5-Image-Info-[0-9]*:../../graphics/p5-Image-Info
DEPENDS+= p5-Pod-POM-[0-9]*:../../textproc/p5-Pod-POM
PERL5_PACKLIST= auto/Template/.packlist
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
2008-11-17 03:17:09 +01:00
MAKE_PARAMS= TT_ACCEPT=y
pre-configure:
${FIND} ${WRKSRC} -name "*.orig" -type f | ${XARGS} ${RM} -f
2002-10-27 22:20:37 +01:00
.include "../../lang/perl5/module.mk"
.include "../../mk/bsd.pkg.mk"