pkgsrc/databases/p5-DBIx-SearchBuilder/Makefile

32 lines
1.2 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.51 2014/12/07 22:09:51 mef Exp $
DISTNAME= DBIx-SearchBuilder-1.66
PKGNAME= p5-${DISTNAME}
CATEGORIES= databases perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=DBIx/}
MAINTAINER= pkgsrc-users@NetBSD.org
Update p5-DBIx-SearchBuilder from version 1.01 to 1.15. Add HOMEPAGE pointing into search.cpan.org. Add DEPENDS on p5-Cache-Simple-TimedExpiry, as that appears to be required to have "make test" complete. Change log: 1.15 Sat Nov 27 13:09:56 EST 2004 - Fix a testsuite bug when DBD::SQLite isn't there 1.14 - Silenced warnings about uninitialized warnings when inserting null cols into the database. - Started adding lowercase method name aliases - Minor refactoring of 'id' method for a stupid, tiny perf improvement - Refactoring of DBIx::SearchBuilder::Record::Cachable for performance improvement - Added a FlushCache method to DBIx::SearchBuilder::Record::Cachable. - Started to flesh out a...test suite - SearchBuilder now truncates strings before inserting them into character types in the database as mysql generally does. Additionally, it truncates things at utf8 character boundaries...as mysql does not. - Fix for an undefined record cache warning on load from Autrijus Tang - Major documentation cleanups --Simon Cavalletto - A few tweaks to the ::Record class to eliminate the hard-coding of the name of the id column --Simon Cavalletto 1.12 - Better error handling for some query build failure cases - Corrected query builder for SQLite - More refactoring. 1.11 - When loading an object whose "id" has been altered, as in the case of RT's "Merge" functionality, the wrong object was returned by the caching layer. Special casing for the "id" method was removed. 1.10 - Identical to 1.10_05 1.10_05 - Reworked the _Accessible mechanism in DBIx::SearchBuilder::Record to remove a horribly crufty old caching mechanism that created a copy of the accessible hash for each and every object instantiated, sometimes quite slowly. 1.10_04 Mon Aug 30 17:33:18 EDT 2004 A query builder fix for an issue that bit RT2: Unsatisfied dependency chain in Joins Users_2 at /usr/local/share/perl/5.8.3/DBIx/SearchBuilder/Handle.pm line 965, line 69. Stack: [/usr/local/share/perl/5.8.3/DBIx/SearchBuilder/Handle.pm:965] [/usr/local/share/perl/5.8.3/DBIx/SearchBuilder.pm:326] [/usr/local/share/perl/5.8.3/DBIx/SearchBuilder.pm:119] [/usr/local/share/perl/5.8.3/DBIx/SearchBuilder.pm:410] 1.10_03 Mon Aug 30 14:31:10 EDT 2004 - Cache Sanity fixes from Autrijus Tang <autrijus@autrijus.org> 1.10_02 Thu Aug 26 13:31:13 EDT 2004 1.10_01 Thu Aug 26 00:08:31 EDT 2004 - Reimplemented DBIx::SearchBuilder:::Record::Cachable to use Cache::Simple::TimedExpiry. This should make it faster and more memory efficient. 1.02_03 Thu Jul 22 13:29:17 EDT 2004 - Additional bullet proofing for joins. Now we default to ALIAS1 being "main" (cubic@acronis.ru) 1.02_02 Tue Jul 20 13:06:06 EDT 2004 - Fixed a join bug that mostly manifests as a 'Dependency chain' error on RT2. 1.02_01 Wed Jul 7 12:28:08 EDT 2004 - magic _Object instantiation from cubic@acronis.ru - make SB::_Handle settable directly (cubic@acronis.ru) - document the above
2004-12-05 18:34:25 +01:00
HOMEPAGE= http://search.cpan.org/dist/DBIx-SearchBuilder/
COMMENT= Extension for easy SQL SELECT Statement generation
LICENSE= ${PERL5_LICENSE}
Update to 1.35: 1.35 Wed Nov 2 22:36:02 EST 2005 * Doc fixes and OrderBy cleanup from ruslan 1.34 Wed Nov 2 22:26:15 EST 2005 * Clone support from Ruslan 1.33 Thu Sep 22 14:27:46 EDT 2005 * Better SQL statement logging from alex 1.32 Thu Sep 1 06:52:42 EDT 2005 * DBD::SQLite is necessary for the test suite to run correctl 1.31 Fri Jul 29 12:47:25 EDT 2005 * Updated MANIFEST to fix a build issue - Thanks to Andy Lester and David Glasser 1.30 Thu Jul 28 10:17:27 EDT 2005 * Removed {{{ and }}} fold markers. Patch from Ruslan 1.30_03 Thu Jun 9 01:35:49 EDT 2005 * Significant new tests from Ruslan Zakirov and Dave Glasser * You no longer need to explicitly bless a DBIx::SearchBuilder::Handle subclass * Start of a major overhaul of the subclass API for DBIx::SearchBuilder::Record objects. A new "schema" method will define the data in _ClassAccessible and also generate database schema using DBIx::DBSchema. Fixes from Ruslan: * for numeric types, make the empty check be "null or 0", not "null or ''" * New search tests from ruslan * added an init_data method to t/utils.pl * CleanSlate doesnt init show_rows * CleanSlate doesnt clean _{open|close}_parens * get rid of stupid ifs in CleanSlate * get rid of evals in _DoSearch and _DoCount, use Handle methods to control DBI error handling * rewrite LoadByPrimaryKeys args handling to consistent with other Load* methods * report error when PK filed is missing in LoadByPrimaryKeys * fix warning in __Set methods when newvalue is undef * small code cleanups * test coverage grows from 75.2% to 84.7% for Record.pm 1.30_02 Sun May 22 15:21:19 EDT 2005 - Lots of patches from Ruslan: First and main change is using of `goto &$AUTOLOAD` syntax, that helps avoid code duplication and hides AUTOLOAD sub from stack trace. I think this also would help implement CompileAllAutoSubs method easier. - It's also one of the steps to better tests coverage. - Test coverage for Record.pm grows from 66% to 75.2%. - _LoadFromSQL never reported error when PK fields are missed. Fixed. - fetchrow_hashref dies only when RaiseErrors is true, because we can control this from Handle obj so we should die according to $Handle->RaiseErrors property. Fixed. - When RaiseErrors is "false" then fetchrow_hashref returns undef and we should check $sth->err(see `perldoc DBI`). Fixed. - After call to fetchrow we should clean "fetched" internal hash and fill it only when we return successful result. Fixed. - If SimpleQuery fails, _LoadFromSQL method doesn't return any error message. Fixed. 1.30_01 Mon May 16 21:37:03 BST 2005 - Patches from Ruslan to switch to using 'capitalization.pm' for our regular_case subroutine aliases 1.27 Sun May 8 22:49:30 EDT 2005 - Added supoprt for functions containing "?" to represent the parameter in ->Column() - Added better support for functional columns in search listings and group by clauses 1.26 Sun Apr 17 19:22:23 EDT 2005 - Added support for expression based left joins 1.25 Sat Apr 9 12:33:30 EDT 2005 - Backed out a change introduced in 1.23 that caused table and column names to be quoted, causing Postgres to flip out. 1.24 Wed Apr 6 22:54:37 EDT 2005 - Added a new "SearchBuilder::Unique" module for uniquifying search results 1.23 - Now use DBI->quote_identifier to quote column and table names (Ruslan) - Test suite updates (Ruslan)
2005-11-24 19:54:21 +01:00
BUILD_DEPENDS+= p5-DBD-SQLite-[0-9]*:../../databases/p5-DBD-SQLite
DEPENDS+= p5-Cache-Simple-TimedExpiry>=0.21:../../devel/p5-Cache-Simple-TimedExpiry
DEPENDS+= p5-Class-ReturnValue>=0.40:../../devel/p5-Class-ReturnValue
Update to 1.35: 1.35 Wed Nov 2 22:36:02 EST 2005 * Doc fixes and OrderBy cleanup from ruslan 1.34 Wed Nov 2 22:26:15 EST 2005 * Clone support from Ruslan 1.33 Thu Sep 22 14:27:46 EDT 2005 * Better SQL statement logging from alex 1.32 Thu Sep 1 06:52:42 EDT 2005 * DBD::SQLite is necessary for the test suite to run correctl 1.31 Fri Jul 29 12:47:25 EDT 2005 * Updated MANIFEST to fix a build issue - Thanks to Andy Lester and David Glasser 1.30 Thu Jul 28 10:17:27 EDT 2005 * Removed {{{ and }}} fold markers. Patch from Ruslan 1.30_03 Thu Jun 9 01:35:49 EDT 2005 * Significant new tests from Ruslan Zakirov and Dave Glasser * You no longer need to explicitly bless a DBIx::SearchBuilder::Handle subclass * Start of a major overhaul of the subclass API for DBIx::SearchBuilder::Record objects. A new "schema" method will define the data in _ClassAccessible and also generate database schema using DBIx::DBSchema. Fixes from Ruslan: * for numeric types, make the empty check be "null or 0", not "null or ''" * New search tests from ruslan * added an init_data method to t/utils.pl * CleanSlate doesnt init show_rows * CleanSlate doesnt clean _{open|close}_parens * get rid of stupid ifs in CleanSlate * get rid of evals in _DoSearch and _DoCount, use Handle methods to control DBI error handling * rewrite LoadByPrimaryKeys args handling to consistent with other Load* methods * report error when PK filed is missing in LoadByPrimaryKeys * fix warning in __Set methods when newvalue is undef * small code cleanups * test coverage grows from 75.2% to 84.7% for Record.pm 1.30_02 Sun May 22 15:21:19 EDT 2005 - Lots of patches from Ruslan: First and main change is using of `goto &$AUTOLOAD` syntax, that helps avoid code duplication and hides AUTOLOAD sub from stack trace. I think this also would help implement CompileAllAutoSubs method easier. - It's also one of the steps to better tests coverage. - Test coverage for Record.pm grows from 66% to 75.2%. - _LoadFromSQL never reported error when PK fields are missed. Fixed. - fetchrow_hashref dies only when RaiseErrors is true, because we can control this from Handle obj so we should die according to $Handle->RaiseErrors property. Fixed. - When RaiseErrors is "false" then fetchrow_hashref returns undef and we should check $sth->err(see `perldoc DBI`). Fixed. - After call to fetchrow we should clean "fetched" internal hash and fill it only when we return successful result. Fixed. - If SimpleQuery fails, _LoadFromSQL method doesn't return any error message. Fixed. 1.30_01 Mon May 16 21:37:03 BST 2005 - Patches from Ruslan to switch to using 'capitalization.pm' for our regular_case subroutine aliases 1.27 Sun May 8 22:49:30 EDT 2005 - Added supoprt for functions containing "?" to represent the parameter in ->Column() - Added better support for functional columns in search listings and group by clauses 1.26 Sun Apr 17 19:22:23 EDT 2005 - Added support for expression based left joins 1.25 Sat Apr 9 12:33:30 EDT 2005 - Backed out a change introduced in 1.23 that caused table and column names to be quoted, causing Postgres to flip out. 1.24 Wed Apr 6 22:54:37 EDT 2005 - Added a new "SearchBuilder::Unique" module for uniquifying search results 1.23 - Now use DBI->quote_identifier to quote column and table names (Ruslan) - Test suite updates (Ruslan)
2005-11-24 19:54:21 +01:00
DEPENDS+= p5-Clone-[0-9]*:../../devel/p5-Clone
DEPENDS+= {perl>=5.8.3,p5-Encode>=1.99}:../../textproc/p5-Encode
DEPENDS+= p5-Want-[0-9]*:../../devel/p5-Want
# Recommented dependencies
DEPENDS+= p5-capitalization>=0.03nb1:../../devel/p5-capitalization
DEPENDS+= p5-Class-Accessor-[0-9]*:../../devel/p5-Class-Accessor
DEPENDS+= p5-DBIx-DBSchema-[0-9]*:../../databases/p5-DBIx-DBSchema
Update to 0.99 Patch provided by Dieter Roelants in PR pkg/25132 0.99 - Bundled changes from 0.98* and released production version Removed duplicate code in cache expiry routines Experimental SearchBuilder::Union collection object. Released at the YAPC::Taipei::22004 Release Party 0.98_04 - New mysql/oracle "Join" code that allows more complex bundling of joins from Linda and Robert 0.98_03 - New test infrastructure from Andy Lester 0.98_02 - Better handling of != clauses on Postgres 0.97_02 - Support for "Group By" clauses. Support for delayed load of certain columns from Autrijus Tang. 0.97_01 - Oracle doesn't support binary-safe clobs in a reasonable manner. 0.96 - Releasing 0.96_01 as usable 0.96_01 - Fix a couple of spurious warnings in Record::Cachable Records loaded from multiple-record searches were never cached correctly 0.95_03 - Allow case-insensitive loading by columns in SearchBuilder::Record - Record::LoadByCols now lets you specify operator and values 0.95_01 - Removed historical escaping for non-ascii searche queries 0.94- - Fix for multiple handles in one app from Autrijus Tang 0.93 - Added ODBC database driver from Autrijus Tang - Added the ability to sort on functions of columns from Autrijus Tang - Improved case-insensitve searching behavior for PostgreSQL - Added support for multiple handles in one app from Autrijus Tang (#4167) - Added initial Informix database driver from Oliver Tappe 0.92 Sept 4, 2003 - Fixed a bug that caused certain types of pre-canned table aliases to fail to work on join 0.90 Aug 8, 2003 - Disable Class::ReturnValue's stack trace feature as it interacted poorly with a stack containing lots of data 0.89_02 July 19, 2003 - Patch from Grant DeGraw to allow ordering by multiple columns. 0.89_01 July 18 2003 - Patch from Brook for: - better oracle support - remove "SELECT DISTINCT" when it's not necessary 0.88 June 23 2003 - More correct generation of "Distinct" keyword on counts for queries with left joins 0.87 June 16 2003 - Changed DBIx::SB::Record::Cachable to expire cached object when a "deeper" method call changes their values 0.86 June 7 2003 - Doing conditional connections was failing on postgres, because the handle was defined, but not connected 0.85 June 7 2003 - Stan's destroy fix was actually badly breaking RT - It's now an optional parameter.
2004-04-11 18:12:40 +02:00
PERL5_PACKLIST= auto/DBIx/SearchBuilder/.packlist
PERL5_MODULE_TYPE= Module::Install::Bundled
.include "../../databases/p5-DBI/buildlink3.mk"
2002-10-14 00:22:45 +02:00
.include "../../lang/perl5/module.mk"
.include "../../mk/bsd.pkg.mk"