pkgsrc/www/p5-HTML-Mason/Makefile

41 lines
1.3 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.34 2009/09/24 06:51:57 sno Exp $
DISTNAME= HTML-Mason-1.42
- updated to 1.39 - took maintainership for package - cleanup up Makefile - introduced options.mk file for the package p5-Cache-Cache is set to default, modperl has been removed from the default options, added to options.mk fcgi has been added to options.mk for lighttpd usage - MESSAGE file entry edited for lighttpd webserver ChangeLog: Revision history for HTML::Mason. An HTML version of this file, complete with links to documentation, is available at http://www.masonhq.com/code/history.html. ** denotes an incompatible change 1.39 Jan 30, 2008 [ ENHANCEMENTS ] - CHI may now be used as the backend for $m->cache as an updated alternative to Cache::Cache. Among other things, this facilitates easy use of Cache::FastMmap and memcached for data caching. Cache::Cache is still the default for now, and is still listed as a prereq for Mason. 1.38 Dec 20, 2007 [ BUG FIXES ] - (Hopefully) fixed a problem where the cpan shell thought that Mason needed mod_perl1 as a prereq when it was trying to require a newish version of mod_perl2. - If you called $r->send_http_header() explicitly in a component under mod_perl 1.x, headers would end up getting sent again once the component finished executing. Reported by Brett Gardner. - Component call with content end tags could not span multiple lines. Fixing this makes it consistent with the opening tag. Patch by Alex Robinson. - Includes a possible fix for a test failure in 10-cache.t. This failure is a problem in the test code, not the Mason core code. 1.37 Sep 6, 2007 [ BUG FIXES ] - Mason could send the HTTP headers twice under mod_perl 1.x when making a request for a directory path that was handled by a dhandler. Reported by David Beaudet. - If you set the Content-Type header in a handler sub before passing control to Mason via ApacheHandler, this value was overwritten if the request was for a directory path. [ ENHANCEMENTS ] - Make t/08-ah.t and t/16-live-cgi.t more verbose about why they are skipping tests when they do so. Based on a patch from C.J. Adams-Collier. 1.36 Jun 10, 2007 [ BUG FIXES ] - If a component with content call ending tag appeared inside a subcomp or method without an opening tag, then the compiler dies with a Perl error, rather than reporting the error usefully. Reported by Rich Williams. - Under mod_perl 2, if decline_dirs was false and a directory was requested, you got a "Use of uninitialized value" warning from ApacheHandler in your logs. Reported by Ogden Nefix. - HTML::Entities is now a prereq. Not requiring it made for various weird gyrations in the tests that didn't seem to work all the time, causing various failures. Fixes RT #24827. - Request::CGIHandler->exec() now returns the return value from executing the component, just like a normal Request. Reported by Adrian Irving-Beer. [ ENHANCEMENTS ] - Added a new Compiler::ToObject parameter, named_component_subs. Turning this on makes it possible to profile components. - Added a new Request parameter, component_error_handler. This can be set to change how component compilation and runtime errors are handled. It can also be set to false to just let errors go unhandled, which could speed up apps that throw a lot of non-object exceptions. 1.35 Oct 17, 2006 [ BUG FIXES ] - Version 1.34 introduced a bug that caused corruption of the callers stack when a component call with content was used. - When Mason tried to load a package required for a feature (like Cache::Cache for $m->cache) and this failed, the error message would say something like "Can't locate Cache::Cache". However, the real error could be that Cache::Cache was present, but a module required by Cache::Cache was not. Now we report the real missing module. - Some people saw a spurious test failure in 05-request.t. RT #22099. - Added Module::Build to the build_requires prereqs. 1.34 Oct 14, 2006 [ BUG FIXES ] - List Module::Build as a build prereq in the Build.PL, so it shows up in META.yml. Reported by Colin Henein. RT #22097. - Apache::Request and mod_perl{1,2} will no longer show up as prereqs in META.yml. Requested by Jesse Vincent. - Fixed a serious memory leak bug where an object referenced in arguments to another component was never destroyed. Reported by Dominic Mitchell. - Using $m->call_next from a helper component should reset base_comp to the request_comp. Reported by Mark Elrod. - The 08-ah.t and 16-live-cgi.t test files could fail with an error like "Failed to re-load 'Mason::Build'" when Mason was being installed via the CPANPLUS shell (and maybe other cases). Reported by David Wheeler. - Fixed a bug where $m->clear_buffer inside a component called from a comp_with_content did not clear all buffers. [ ENHANCEMENTS ] - Added support for get_server_port() in FakeApache. Patch from Dieter Piercey. 1.33 May 28, 2006 [ BUG FIXES ] - If $m->flush_buffer() was called when there was a filter somewhere in the component chain, the flush did nothing. Task id #596. Reported by Shane McCarron. - Added several tests for $m->flush_buffer() and $m->clear_buffer(), which will hopefully avoid more bugs in this part of the code. - On Win32, a test failed when Mason tried to use rename to move a dir into an existing dir. Patch by Shane McCarron. Task id #594 and RT #17828. - Trying to load HTML::Mason::ApacheHandler outside of mod_perl caused an error "like Undefined subroutine &Apache::perl_hook called at /usr/local/share/perl/5.8.7/HTML/Mason/ApacheHandler.pm line 257". While it will never _run_ outside of mod_perl, it should at least load. - Fixed test in 14a-fake_apache.t that failed with CGI.pm >= 3.16. - The example code in the HTML::Mason::Resolver::Null code was just wrong. Fixed by John Siracusa. - Fixed a test failure in 06-compile.t when using bleadperl. RT #17118. 1.32 January 3, 2006 [ BUG FIXES ] - Under mod_perl 1.x with error_mode set to output, the headers were sent after the content when a compilation error occurred. Reported by Gareth Kirwan. Task id #592. - URI-escape utf8 characters the same way that CGI::escape and URI::Escape::uri_escape_utf8 do. Patch by Denis Shaposhnikov. - On startup Mason creates a file named ".__obj_create_marker" in the object directory. Under mod_perl, Mason was not chmod'ing the file when Apache was started as root. This led to permission errors in environments where the Interp is created anew every request. Task id #593. - Treat the return value of component execution as a string in ApacheHandler. This prevent warnings about comparing the empty string to a number when a component returns "". Reported by Benjamin Franz. - Setting a MasonPlugins Apache parameter caused a fatal error. Patch by David Jack Olrik. - Calling base_comp() on the Request object inside a plugin's start_request_hook method caused an infinite recursion in Mason. Reported by Jesse Vincent.
2008-07-22 23:41:55 +02:00
PKGNAME= p5-${DISTNAME}
PKGREVISION= 1
SVR4_PKGNAME= p5hma
CATEGORIES= www perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=HTML/}
- updated to 1.39 - took maintainership for package - cleanup up Makefile - introduced options.mk file for the package p5-Cache-Cache is set to default, modperl has been removed from the default options, added to options.mk fcgi has been added to options.mk for lighttpd usage - MESSAGE file entry edited for lighttpd webserver ChangeLog: Revision history for HTML::Mason. An HTML version of this file, complete with links to documentation, is available at http://www.masonhq.com/code/history.html. ** denotes an incompatible change 1.39 Jan 30, 2008 [ ENHANCEMENTS ] - CHI may now be used as the backend for $m->cache as an updated alternative to Cache::Cache. Among other things, this facilitates easy use of Cache::FastMmap and memcached for data caching. Cache::Cache is still the default for now, and is still listed as a prereq for Mason. 1.38 Dec 20, 2007 [ BUG FIXES ] - (Hopefully) fixed a problem where the cpan shell thought that Mason needed mod_perl1 as a prereq when it was trying to require a newish version of mod_perl2. - If you called $r->send_http_header() explicitly in a component under mod_perl 1.x, headers would end up getting sent again once the component finished executing. Reported by Brett Gardner. - Component call with content end tags could not span multiple lines. Fixing this makes it consistent with the opening tag. Patch by Alex Robinson. - Includes a possible fix for a test failure in 10-cache.t. This failure is a problem in the test code, not the Mason core code. 1.37 Sep 6, 2007 [ BUG FIXES ] - Mason could send the HTTP headers twice under mod_perl 1.x when making a request for a directory path that was handled by a dhandler. Reported by David Beaudet. - If you set the Content-Type header in a handler sub before passing control to Mason via ApacheHandler, this value was overwritten if the request was for a directory path. [ ENHANCEMENTS ] - Make t/08-ah.t and t/16-live-cgi.t more verbose about why they are skipping tests when they do so. Based on a patch from C.J. Adams-Collier. 1.36 Jun 10, 2007 [ BUG FIXES ] - If a component with content call ending tag appeared inside a subcomp or method without an opening tag, then the compiler dies with a Perl error, rather than reporting the error usefully. Reported by Rich Williams. - Under mod_perl 2, if decline_dirs was false and a directory was requested, you got a "Use of uninitialized value" warning from ApacheHandler in your logs. Reported by Ogden Nefix. - HTML::Entities is now a prereq. Not requiring it made for various weird gyrations in the tests that didn't seem to work all the time, causing various failures. Fixes RT #24827. - Request::CGIHandler->exec() now returns the return value from executing the component, just like a normal Request. Reported by Adrian Irving-Beer. [ ENHANCEMENTS ] - Added a new Compiler::ToObject parameter, named_component_subs. Turning this on makes it possible to profile components. - Added a new Request parameter, component_error_handler. This can be set to change how component compilation and runtime errors are handled. It can also be set to false to just let errors go unhandled, which could speed up apps that throw a lot of non-object exceptions. 1.35 Oct 17, 2006 [ BUG FIXES ] - Version 1.34 introduced a bug that caused corruption of the callers stack when a component call with content was used. - When Mason tried to load a package required for a feature (like Cache::Cache for $m->cache) and this failed, the error message would say something like "Can't locate Cache::Cache". However, the real error could be that Cache::Cache was present, but a module required by Cache::Cache was not. Now we report the real missing module. - Some people saw a spurious test failure in 05-request.t. RT #22099. - Added Module::Build to the build_requires prereqs. 1.34 Oct 14, 2006 [ BUG FIXES ] - List Module::Build as a build prereq in the Build.PL, so it shows up in META.yml. Reported by Colin Henein. RT #22097. - Apache::Request and mod_perl{1,2} will no longer show up as prereqs in META.yml. Requested by Jesse Vincent. - Fixed a serious memory leak bug where an object referenced in arguments to another component was never destroyed. Reported by Dominic Mitchell. - Using $m->call_next from a helper component should reset base_comp to the request_comp. Reported by Mark Elrod. - The 08-ah.t and 16-live-cgi.t test files could fail with an error like "Failed to re-load 'Mason::Build'" when Mason was being installed via the CPANPLUS shell (and maybe other cases). Reported by David Wheeler. - Fixed a bug where $m->clear_buffer inside a component called from a comp_with_content did not clear all buffers. [ ENHANCEMENTS ] - Added support for get_server_port() in FakeApache. Patch from Dieter Piercey. 1.33 May 28, 2006 [ BUG FIXES ] - If $m->flush_buffer() was called when there was a filter somewhere in the component chain, the flush did nothing. Task id #596. Reported by Shane McCarron. - Added several tests for $m->flush_buffer() and $m->clear_buffer(), which will hopefully avoid more bugs in this part of the code. - On Win32, a test failed when Mason tried to use rename to move a dir into an existing dir. Patch by Shane McCarron. Task id #594 and RT #17828. - Trying to load HTML::Mason::ApacheHandler outside of mod_perl caused an error "like Undefined subroutine &Apache::perl_hook called at /usr/local/share/perl/5.8.7/HTML/Mason/ApacheHandler.pm line 257". While it will never _run_ outside of mod_perl, it should at least load. - Fixed test in 14a-fake_apache.t that failed with CGI.pm >= 3.16. - The example code in the HTML::Mason::Resolver::Null code was just wrong. Fixed by John Siracusa. - Fixed a test failure in 06-compile.t when using bleadperl. RT #17118. 1.32 January 3, 2006 [ BUG FIXES ] - Under mod_perl 1.x with error_mode set to output, the headers were sent after the content when a compilation error occurred. Reported by Gareth Kirwan. Task id #592. - URI-escape utf8 characters the same way that CGI::escape and URI::Escape::uri_escape_utf8 do. Patch by Denis Shaposhnikov. - On startup Mason creates a file named ".__obj_create_marker" in the object directory. Under mod_perl, Mason was not chmod'ing the file when Apache was started as root. This led to permission errors in environments where the Interp is created anew every request. Task id #593. - Treat the return value of component execution as a string in ApacheHandler. This prevent warnings about comparing the empty string to a number when a component returns "". Reported by Benjamin Franz. - Setting a MasonPlugins Apache parameter caused a fatal error. Patch by David Jack Olrik. - Calling base_comp() on the Request object inside a plugin's start_request_hook method caused an infinite recursion in Mason. Reported by Jesse Vincent.
2008-07-22 23:41:55 +02:00
MAINTAINER= rhaen@NetBSD.org
HOMEPAGE= http://www.masonhq.com/
COMMENT= Perl-based web site development and delivery system
LICENSE= ${PERL5_LICENSE}
PKG_DESTDIR_SUPPORT= user-destdir
DEPENDS+= p5-Cache-Cache>=1:../../devel/p5-Cache-Cache
- updated to 1.39 - took maintainership for package - cleanup up Makefile - introduced options.mk file for the package p5-Cache-Cache is set to default, modperl has been removed from the default options, added to options.mk fcgi has been added to options.mk for lighttpd usage - MESSAGE file entry edited for lighttpd webserver ChangeLog: Revision history for HTML::Mason. An HTML version of this file, complete with links to documentation, is available at http://www.masonhq.com/code/history.html. ** denotes an incompatible change 1.39 Jan 30, 2008 [ ENHANCEMENTS ] - CHI may now be used as the backend for $m->cache as an updated alternative to Cache::Cache. Among other things, this facilitates easy use of Cache::FastMmap and memcached for data caching. Cache::Cache is still the default for now, and is still listed as a prereq for Mason. 1.38 Dec 20, 2007 [ BUG FIXES ] - (Hopefully) fixed a problem where the cpan shell thought that Mason needed mod_perl1 as a prereq when it was trying to require a newish version of mod_perl2. - If you called $r->send_http_header() explicitly in a component under mod_perl 1.x, headers would end up getting sent again once the component finished executing. Reported by Brett Gardner. - Component call with content end tags could not span multiple lines. Fixing this makes it consistent with the opening tag. Patch by Alex Robinson. - Includes a possible fix for a test failure in 10-cache.t. This failure is a problem in the test code, not the Mason core code. 1.37 Sep 6, 2007 [ BUG FIXES ] - Mason could send the HTTP headers twice under mod_perl 1.x when making a request for a directory path that was handled by a dhandler. Reported by David Beaudet. - If you set the Content-Type header in a handler sub before passing control to Mason via ApacheHandler, this value was overwritten if the request was for a directory path. [ ENHANCEMENTS ] - Make t/08-ah.t and t/16-live-cgi.t more verbose about why they are skipping tests when they do so. Based on a patch from C.J. Adams-Collier. 1.36 Jun 10, 2007 [ BUG FIXES ] - If a component with content call ending tag appeared inside a subcomp or method without an opening tag, then the compiler dies with a Perl error, rather than reporting the error usefully. Reported by Rich Williams. - Under mod_perl 2, if decline_dirs was false and a directory was requested, you got a "Use of uninitialized value" warning from ApacheHandler in your logs. Reported by Ogden Nefix. - HTML::Entities is now a prereq. Not requiring it made for various weird gyrations in the tests that didn't seem to work all the time, causing various failures. Fixes RT #24827. - Request::CGIHandler->exec() now returns the return value from executing the component, just like a normal Request. Reported by Adrian Irving-Beer. [ ENHANCEMENTS ] - Added a new Compiler::ToObject parameter, named_component_subs. Turning this on makes it possible to profile components. - Added a new Request parameter, component_error_handler. This can be set to change how component compilation and runtime errors are handled. It can also be set to false to just let errors go unhandled, which could speed up apps that throw a lot of non-object exceptions. 1.35 Oct 17, 2006 [ BUG FIXES ] - Version 1.34 introduced a bug that caused corruption of the callers stack when a component call with content was used. - When Mason tried to load a package required for a feature (like Cache::Cache for $m->cache) and this failed, the error message would say something like "Can't locate Cache::Cache". However, the real error could be that Cache::Cache was present, but a module required by Cache::Cache was not. Now we report the real missing module. - Some people saw a spurious test failure in 05-request.t. RT #22099. - Added Module::Build to the build_requires prereqs. 1.34 Oct 14, 2006 [ BUG FIXES ] - List Module::Build as a build prereq in the Build.PL, so it shows up in META.yml. Reported by Colin Henein. RT #22097. - Apache::Request and mod_perl{1,2} will no longer show up as prereqs in META.yml. Requested by Jesse Vincent. - Fixed a serious memory leak bug where an object referenced in arguments to another component was never destroyed. Reported by Dominic Mitchell. - Using $m->call_next from a helper component should reset base_comp to the request_comp. Reported by Mark Elrod. - The 08-ah.t and 16-live-cgi.t test files could fail with an error like "Failed to re-load 'Mason::Build'" when Mason was being installed via the CPANPLUS shell (and maybe other cases). Reported by David Wheeler. - Fixed a bug where $m->clear_buffer inside a component called from a comp_with_content did not clear all buffers. [ ENHANCEMENTS ] - Added support for get_server_port() in FakeApache. Patch from Dieter Piercey. 1.33 May 28, 2006 [ BUG FIXES ] - If $m->flush_buffer() was called when there was a filter somewhere in the component chain, the flush did nothing. Task id #596. Reported by Shane McCarron. - Added several tests for $m->flush_buffer() and $m->clear_buffer(), which will hopefully avoid more bugs in this part of the code. - On Win32, a test failed when Mason tried to use rename to move a dir into an existing dir. Patch by Shane McCarron. Task id #594 and RT #17828. - Trying to load HTML::Mason::ApacheHandler outside of mod_perl caused an error "like Undefined subroutine &Apache::perl_hook called at /usr/local/share/perl/5.8.7/HTML/Mason/ApacheHandler.pm line 257". While it will never _run_ outside of mod_perl, it should at least load. - Fixed test in 14a-fake_apache.t that failed with CGI.pm >= 3.16. - The example code in the HTML::Mason::Resolver::Null code was just wrong. Fixed by John Siracusa. - Fixed a test failure in 06-compile.t when using bleadperl. RT #17118. 1.32 January 3, 2006 [ BUG FIXES ] - Under mod_perl 1.x with error_mode set to output, the headers were sent after the content when a compilation error occurred. Reported by Gareth Kirwan. Task id #592. - URI-escape utf8 characters the same way that CGI::escape and URI::Escape::uri_escape_utf8 do. Patch by Denis Shaposhnikov. - On startup Mason creates a file named ".__obj_create_marker" in the object directory. Under mod_perl, Mason was not chmod'ing the file when Apache was started as root. This led to permission errors in environments where the Interp is created anew every request. Task id #593. - Treat the return value of component execution as a string in ApacheHandler. This prevent warnings about comparing the empty string to a number when a component returns "". Reported by Benjamin Franz. - Setting a MasonPlugins Apache parameter caused a fatal error. Patch by David Jack Olrik. - Calling base_comp() on the Request object inside a plugin's start_request_hook method caused an infinite recursion in Mason. Reported by Jesse Vincent.
2008-07-22 23:41:55 +02:00
DEPENDS+= p5-Class-Container>=0.07:../../devel/p5-Class-Container
DEPENDS+= p5-Exception-Class>=1.15:../../devel/p5-Exception-Class
DEPENDS+= p5-HTML-Parser-[0-9]*:../../www/p5-HTML-Parser
- updated to 1.39 - took maintainership for package - cleanup up Makefile - introduced options.mk file for the package p5-Cache-Cache is set to default, modperl has been removed from the default options, added to options.mk fcgi has been added to options.mk for lighttpd usage - MESSAGE file entry edited for lighttpd webserver ChangeLog: Revision history for HTML::Mason. An HTML version of this file, complete with links to documentation, is available at http://www.masonhq.com/code/history.html. ** denotes an incompatible change 1.39 Jan 30, 2008 [ ENHANCEMENTS ] - CHI may now be used as the backend for $m->cache as an updated alternative to Cache::Cache. Among other things, this facilitates easy use of Cache::FastMmap and memcached for data caching. Cache::Cache is still the default for now, and is still listed as a prereq for Mason. 1.38 Dec 20, 2007 [ BUG FIXES ] - (Hopefully) fixed a problem where the cpan shell thought that Mason needed mod_perl1 as a prereq when it was trying to require a newish version of mod_perl2. - If you called $r->send_http_header() explicitly in a component under mod_perl 1.x, headers would end up getting sent again once the component finished executing. Reported by Brett Gardner. - Component call with content end tags could not span multiple lines. Fixing this makes it consistent with the opening tag. Patch by Alex Robinson. - Includes a possible fix for a test failure in 10-cache.t. This failure is a problem in the test code, not the Mason core code. 1.37 Sep 6, 2007 [ BUG FIXES ] - Mason could send the HTTP headers twice under mod_perl 1.x when making a request for a directory path that was handled by a dhandler. Reported by David Beaudet. - If you set the Content-Type header in a handler sub before passing control to Mason via ApacheHandler, this value was overwritten if the request was for a directory path. [ ENHANCEMENTS ] - Make t/08-ah.t and t/16-live-cgi.t more verbose about why they are skipping tests when they do so. Based on a patch from C.J. Adams-Collier. 1.36 Jun 10, 2007 [ BUG FIXES ] - If a component with content call ending tag appeared inside a subcomp or method without an opening tag, then the compiler dies with a Perl error, rather than reporting the error usefully. Reported by Rich Williams. - Under mod_perl 2, if decline_dirs was false and a directory was requested, you got a "Use of uninitialized value" warning from ApacheHandler in your logs. Reported by Ogden Nefix. - HTML::Entities is now a prereq. Not requiring it made for various weird gyrations in the tests that didn't seem to work all the time, causing various failures. Fixes RT #24827. - Request::CGIHandler->exec() now returns the return value from executing the component, just like a normal Request. Reported by Adrian Irving-Beer. [ ENHANCEMENTS ] - Added a new Compiler::ToObject parameter, named_component_subs. Turning this on makes it possible to profile components. - Added a new Request parameter, component_error_handler. This can be set to change how component compilation and runtime errors are handled. It can also be set to false to just let errors go unhandled, which could speed up apps that throw a lot of non-object exceptions. 1.35 Oct 17, 2006 [ BUG FIXES ] - Version 1.34 introduced a bug that caused corruption of the callers stack when a component call with content was used. - When Mason tried to load a package required for a feature (like Cache::Cache for $m->cache) and this failed, the error message would say something like "Can't locate Cache::Cache". However, the real error could be that Cache::Cache was present, but a module required by Cache::Cache was not. Now we report the real missing module. - Some people saw a spurious test failure in 05-request.t. RT #22099. - Added Module::Build to the build_requires prereqs. 1.34 Oct 14, 2006 [ BUG FIXES ] - List Module::Build as a build prereq in the Build.PL, so it shows up in META.yml. Reported by Colin Henein. RT #22097. - Apache::Request and mod_perl{1,2} will no longer show up as prereqs in META.yml. Requested by Jesse Vincent. - Fixed a serious memory leak bug where an object referenced in arguments to another component was never destroyed. Reported by Dominic Mitchell. - Using $m->call_next from a helper component should reset base_comp to the request_comp. Reported by Mark Elrod. - The 08-ah.t and 16-live-cgi.t test files could fail with an error like "Failed to re-load 'Mason::Build'" when Mason was being installed via the CPANPLUS shell (and maybe other cases). Reported by David Wheeler. - Fixed a bug where $m->clear_buffer inside a component called from a comp_with_content did not clear all buffers. [ ENHANCEMENTS ] - Added support for get_server_port() in FakeApache. Patch from Dieter Piercey. 1.33 May 28, 2006 [ BUG FIXES ] - If $m->flush_buffer() was called when there was a filter somewhere in the component chain, the flush did nothing. Task id #596. Reported by Shane McCarron. - Added several tests for $m->flush_buffer() and $m->clear_buffer(), which will hopefully avoid more bugs in this part of the code. - On Win32, a test failed when Mason tried to use rename to move a dir into an existing dir. Patch by Shane McCarron. Task id #594 and RT #17828. - Trying to load HTML::Mason::ApacheHandler outside of mod_perl caused an error "like Undefined subroutine &Apache::perl_hook called at /usr/local/share/perl/5.8.7/HTML/Mason/ApacheHandler.pm line 257". While it will never _run_ outside of mod_perl, it should at least load. - Fixed test in 14a-fake_apache.t that failed with CGI.pm >= 3.16. - The example code in the HTML::Mason::Resolver::Null code was just wrong. Fixed by John Siracusa. - Fixed a test failure in 06-compile.t when using bleadperl. RT #17118. 1.32 January 3, 2006 [ BUG FIXES ] - Under mod_perl 1.x with error_mode set to output, the headers were sent after the content when a compilation error occurred. Reported by Gareth Kirwan. Task id #592. - URI-escape utf8 characters the same way that CGI::escape and URI::Escape::uri_escape_utf8 do. Patch by Denis Shaposhnikov. - On startup Mason creates a file named ".__obj_create_marker" in the object directory. Under mod_perl, Mason was not chmod'ing the file when Apache was started as root. This led to permission errors in environments where the Interp is created anew every request. Task id #593. - Treat the return value of component execution as a string in ApacheHandler. This prevent warnings about comparing the empty string to a number when a component returns "". Reported by Benjamin Franz. - Setting a MasonPlugins Apache parameter caused a fatal error. Patch by David Jack Olrik. - Calling base_comp() on the Request object inside a plugin's start_request_hook method caused an infinite recursion in Mason. Reported by Jesse Vincent.
2008-07-22 23:41:55 +02:00
DEPENDS+= p5-Params-Validate>=0.70:../../devel/p5-Params-Validate
Update to 1.31, to ensure compatibility with the new API in the non-alpha release versions of ap2-perl. Changes: ===== An HTML version of this file, complete with links to documentation, is available at http://www.masonhq.com/code/history.html. ** denotes an incompatible change 1.31 August 20, 2005 [ BUG FIXES ] - Fix several regressions in the CGIHandler and FakeApache modules. Some changes from the stable branch were never merged into the trunk before 1.30. Reported by Jesse Vincent. Task id #589. - Under Apache2, if an ApacheHandler object was created during server startup and the associated Interp object created any files or directories, Mason would crash when attempting to chown those files/dirs to the uid/gid that Apache will use after forking. Task #586. - The compiler was adding an extra block around a component's body, which meant that variables declared in the body (in perl lines or blocks) were not seen in the cleanup section. Task id #587. - The compiler was also adding "no warnings 'uninitialized'" in this block, which could hide various errors. - Hopefully fix $VERSION in ApacheHandler so PAUSE will not be confused and think we have regressed. - Turned off some prompts during the module's installation. These were intended to help new users configure Apache to run Mason components, but they're probably a bit confusing. Will return in a future release as a separate script that can be run from the command line. 1.30 August 11, 2005 [ INCOMPATIBLE CHANGES ] - ** Under mod_perl2, MasonArgsMethod will default to "CGI", since libapreq2 is still in development. If you have successfully installed libapreq2, just set MasonArgsMethod to "mod_perl" to use it. [ ENHANCEMENTS ] - Some doc tweaks to clarify that Mason should work out of the box with both mod_perl 1 and 2. - Added "use warnings" to all modules and made sure all tests ran warnings-free. [ BUG FIXES ] - Silence a warning when HTML::Mason::ApacheHandler was loaded outside of mod_perl. - Support renamed Apache2::Status module. 1.29_02 June 22, 2005 [ ENHANCEMENTS ] - ** Support for mod_perl-2.00 (mod_perl-1.99 is no longer supported because of API changes in 2.0RC5). - Mason recovers more gracefully from an empty or corrupted object file. Task id #579. [ BUG FIXES ] - Fixed bug with content type being reset when decline_dirs=0. Submitted by Brian Phillips. Task id #584. - Put "Mason" prefix back in Params.pod. Task id #575. - Fixed fetch_comp(undef) to not return an empty hash. Task id #578. - static_source_touch_file did not take effect until after one request for a top-level component. Reported by Lai Zit Seng. Task id #576. 1.29_01 January 25, 2005 [ INCOMPATIBLE CHANGES ] - ** Mason now requires Perl 5.6.0 or later. However, because 5.6.0 has so many problems, it cannot be officially supported; we strongly recommend upgrading to at least 5.6.1. - ** Mason now requires version 1.24 of mod_perl in the ApacheHandler module. - ** The behaviors of $m->flush_buffer and $m->clear_buffer have been simplified. $m->flush_buffer only acts on the top-level output buffer; $m->clear_buffer clears all output buffers. Task id #554. - ** max_code_cache_size is now kept in terms of number of components, not bytes, and its default value is 'unlimited'. - ** Components with a <%filter> and a cache_self are no longer cached in their filtered state. Performance-related code simplifications made this behavior difficult to maintain. Long term this would be easier to implement with a cache_self component <%flag>. - ** All compiler properties are now read-only. If you need to change compiler properties on a per-request basis, you'll need to create multiple compiler and interpreter objects. - ** comp_exists may try to load the designated component, and may throw an error if it contains a syntax error. - ** The current_time method, deprecated in 1.1x, has been removed. - ** The HTML::Mason::Buffer class has been eliminated for performance reasons. You can use separate components, methods, or subcomponents and scomp to achieve the same effects as buffer pushes and pops. [ ENHANCEMENTS ] - Significantly improved performance in component execution, especially in static_source mode. - Added static_source_touch_file, making it much easier to update a server running in static_source mode. - Added a plugin architecture. Plugin classes can perform actions at key points, e.g. before and after each request and each component call. See HTML::Mason::Plugin for documentation. Task id #24. Initial implementation by Doug Treder. - Added the ability to change component root(s) on the fly if the dynamic_comp_root parameter is turned on. Task id #561. Suggested by Alex Robinson. - Added enable_autoflush parameter. When turned off, Mason can compile components to a more efficient form. - Changed the </&> tag to allow the starting component name to be included. e.g. <&| /foo &> ... </& /foo >. Task id #556. Suggested by Alex Robinson, John Williams, and others. - Moved the notion of component roots (single and multiple) from the Resolver to the Interpreter. This improved the performance of multiple component roots in conjunction with static source mode. Any resolver, file-based or otherwise, can benefit from component root settings or choose to ignore them. - Added the compiler object_id to the object file path, so that multiple versions of Mason do not collide in the same object directory. Task id #569. - Added .obj (or a configurable extension) to object filenames. Task id #152. Suggested by John Tobey. - Added $m->clear_and_abort, syntactic sugar for the common idiom of calling clear_buffer() and then abort(). Task id #505. - Added an official comment syntax, <% # ... %>, and documented the various comment markers in the developer's manual. Task id #566. - Added buffer_preallocate_size parameter, which allows you to potentially reduce buffer reallocations. - Augmented the 'could not find component' error message with the current component root(s). Task id #562. [ BUG FIXES ] - Mason now throws an error if the path specified in a component's 'inherit' flag cannot be found. Task id #480. - Fixed comp_exists to work with any path accepted by comp or fetch_comp, and fixed fetch_comp to stop throwing errors for certain bad paths. Task id #572. - Fixed $m->decline to work from /dhandler. Task id #573. Submitted by Carl Raiha. - Using 'next' or 'last' without a loop can no longer corrupt the component stack. Task id #539.
2005-08-22 21:03:04 +02:00
PERL5_MODULE_TYPE= Module::Build
PERL5_PACKLIST= auto/HTML/Mason/.packlist
EGDIR= ${PREFIX}/share/examples/${PKGBASE}
- updated to 1.39 - took maintainership for package - cleanup up Makefile - introduced options.mk file for the package p5-Cache-Cache is set to default, modperl has been removed from the default options, added to options.mk fcgi has been added to options.mk for lighttpd usage - MESSAGE file entry edited for lighttpd webserver ChangeLog: Revision history for HTML::Mason. An HTML version of this file, complete with links to documentation, is available at http://www.masonhq.com/code/history.html. ** denotes an incompatible change 1.39 Jan 30, 2008 [ ENHANCEMENTS ] - CHI may now be used as the backend for $m->cache as an updated alternative to Cache::Cache. Among other things, this facilitates easy use of Cache::FastMmap and memcached for data caching. Cache::Cache is still the default for now, and is still listed as a prereq for Mason. 1.38 Dec 20, 2007 [ BUG FIXES ] - (Hopefully) fixed a problem where the cpan shell thought that Mason needed mod_perl1 as a prereq when it was trying to require a newish version of mod_perl2. - If you called $r->send_http_header() explicitly in a component under mod_perl 1.x, headers would end up getting sent again once the component finished executing. Reported by Brett Gardner. - Component call with content end tags could not span multiple lines. Fixing this makes it consistent with the opening tag. Patch by Alex Robinson. - Includes a possible fix for a test failure in 10-cache.t. This failure is a problem in the test code, not the Mason core code. 1.37 Sep 6, 2007 [ BUG FIXES ] - Mason could send the HTTP headers twice under mod_perl 1.x when making a request for a directory path that was handled by a dhandler. Reported by David Beaudet. - If you set the Content-Type header in a handler sub before passing control to Mason via ApacheHandler, this value was overwritten if the request was for a directory path. [ ENHANCEMENTS ] - Make t/08-ah.t and t/16-live-cgi.t more verbose about why they are skipping tests when they do so. Based on a patch from C.J. Adams-Collier. 1.36 Jun 10, 2007 [ BUG FIXES ] - If a component with content call ending tag appeared inside a subcomp or method without an opening tag, then the compiler dies with a Perl error, rather than reporting the error usefully. Reported by Rich Williams. - Under mod_perl 2, if decline_dirs was false and a directory was requested, you got a "Use of uninitialized value" warning from ApacheHandler in your logs. Reported by Ogden Nefix. - HTML::Entities is now a prereq. Not requiring it made for various weird gyrations in the tests that didn't seem to work all the time, causing various failures. Fixes RT #24827. - Request::CGIHandler->exec() now returns the return value from executing the component, just like a normal Request. Reported by Adrian Irving-Beer. [ ENHANCEMENTS ] - Added a new Compiler::ToObject parameter, named_component_subs. Turning this on makes it possible to profile components. - Added a new Request parameter, component_error_handler. This can be set to change how component compilation and runtime errors are handled. It can also be set to false to just let errors go unhandled, which could speed up apps that throw a lot of non-object exceptions. 1.35 Oct 17, 2006 [ BUG FIXES ] - Version 1.34 introduced a bug that caused corruption of the callers stack when a component call with content was used. - When Mason tried to load a package required for a feature (like Cache::Cache for $m->cache) and this failed, the error message would say something like "Can't locate Cache::Cache". However, the real error could be that Cache::Cache was present, but a module required by Cache::Cache was not. Now we report the real missing module. - Some people saw a spurious test failure in 05-request.t. RT #22099. - Added Module::Build to the build_requires prereqs. 1.34 Oct 14, 2006 [ BUG FIXES ] - List Module::Build as a build prereq in the Build.PL, so it shows up in META.yml. Reported by Colin Henein. RT #22097. - Apache::Request and mod_perl{1,2} will no longer show up as prereqs in META.yml. Requested by Jesse Vincent. - Fixed a serious memory leak bug where an object referenced in arguments to another component was never destroyed. Reported by Dominic Mitchell. - Using $m->call_next from a helper component should reset base_comp to the request_comp. Reported by Mark Elrod. - The 08-ah.t and 16-live-cgi.t test files could fail with an error like "Failed to re-load 'Mason::Build'" when Mason was being installed via the CPANPLUS shell (and maybe other cases). Reported by David Wheeler. - Fixed a bug where $m->clear_buffer inside a component called from a comp_with_content did not clear all buffers. [ ENHANCEMENTS ] - Added support for get_server_port() in FakeApache. Patch from Dieter Piercey. 1.33 May 28, 2006 [ BUG FIXES ] - If $m->flush_buffer() was called when there was a filter somewhere in the component chain, the flush did nothing. Task id #596. Reported by Shane McCarron. - Added several tests for $m->flush_buffer() and $m->clear_buffer(), which will hopefully avoid more bugs in this part of the code. - On Win32, a test failed when Mason tried to use rename to move a dir into an existing dir. Patch by Shane McCarron. Task id #594 and RT #17828. - Trying to load HTML::Mason::ApacheHandler outside of mod_perl caused an error "like Undefined subroutine &Apache::perl_hook called at /usr/local/share/perl/5.8.7/HTML/Mason/ApacheHandler.pm line 257". While it will never _run_ outside of mod_perl, it should at least load. - Fixed test in 14a-fake_apache.t that failed with CGI.pm >= 3.16. - The example code in the HTML::Mason::Resolver::Null code was just wrong. Fixed by John Siracusa. - Fixed a test failure in 06-compile.t when using bleadperl. RT #17118. 1.32 January 3, 2006 [ BUG FIXES ] - Under mod_perl 1.x with error_mode set to output, the headers were sent after the content when a compilation error occurred. Reported by Gareth Kirwan. Task id #592. - URI-escape utf8 characters the same way that CGI::escape and URI::Escape::uri_escape_utf8 do. Patch by Denis Shaposhnikov. - On startup Mason creates a file named ".__obj_create_marker" in the object directory. Under mod_perl, Mason was not chmod'ing the file when Apache was started as root. This led to permission errors in environments where the Interp is created anew every request. Task id #593. - Treat the return value of component execution as a string in ApacheHandler. This prevent warnings about comparing the empty string to a number when a component returns "". Reported by Benjamin Franz. - Setting a MasonPlugins Apache parameter caused a fatal error. Patch by David Jack Olrik. - Calling base_comp() on the Request object inside a plugin's start_request_hook method caused an infinite recursion in Mason. Reported by Jesse Vincent.
2008-07-22 23:41:55 +02:00
.include "options.mk"
post-install:
${INSTALL_DATA_DIR} ${DESTDIR:Q}${EGDIR:Q}
${INSTALL_DATA} ${WRKSRC}/samples/README ${DESTDIR:Q}${EGDIR:Q}
${INSTALL_DATA} ${WRKSRC}/samples/dump-request ${DESTDIR:Q}${EGDIR:Q}
${INSTALL_DATA} ${WRKSRC}/samples/show-env ${DESTDIR:Q}${EGDIR:Q}
${INSTALL_DATA} ${WRKSRC}/eg/httpd.conf ${DESTDIR:Q}${EGDIR:Q}
${INSTALL_DATA_DIR} ${DESTDIR:Q}${EGDIR:Q}/MyApp
${INSTALL_DATA} ${WRKSRC}/eg/MyApp/* ${DESTDIR:Q}${EGDIR:Q}/MyApp
2002-10-27 21:48:55 +01:00
.include "../../lang/perl5/module.mk"
.include "../../mk/bsd.pkg.mk"