2010-08-21 18:32:42 +02:00
|
|
|
# $NetBSD: Makefile,v 1.6 2010/08/21 16:36:23 seb Exp $
|
2009-02-14 00:53:54 +01:00
|
|
|
|
2010-03-16 18:10:55 +01:00
|
|
|
DISTNAME= DateTime-Format-Flexible-0.15
|
2009-02-14 00:53:54 +01:00
|
|
|
PKGNAME= p5-${DISTNAME}
|
2010-08-21 18:32:42 +02:00
|
|
|
PKGREVISION= 1
|
2009-02-14 00:53:54 +01:00
|
|
|
CATEGORIES= time perl5
|
|
|
|
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=DateTime/}
|
|
|
|
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2010-03-16 18:10:55 +01:00
|
|
|
HOMEPAGE= http://search.cpan.org/dist/DateTime-Format-Flexible/
|
2009-02-14 00:53:54 +01:00
|
|
|
COMMENT= Flexibly parse strings and turn them into DateTime objects
|
2009-06-14 22:19:24 +02:00
|
|
|
LICENSE= ${PERL5_LICENSE}
|
2009-02-14 00:53:54 +01:00
|
|
|
|
Updating time/p5-DateTime-Format-Flexible from 0.09 to 0.14
pkgsrc changes:
- Adapt dependency version to pkgsrc used version numbers, not CPAN
Upstream changes:
0.14 Sun Feb 28 2010
- fix test: '1 month ago at 4pm' could be potentially less that 28 days ago.
- fix tests for infinity, -infinity, infinito, and -infinito
0.13 Sat Feb 27 2010
- make parsing for infinity and -infinity more reliable
0.12 Thu Feb 25 2010
- fix DateTime::Format::Builder import
0.11 Wed Feb 24 2010
- remove Readonly dependency
- support some postgresql datetimes: epoch, infinity, -infinity, allballs
- see http://www.postgresql.org/docs/8.4/interactive/datatype-datetime.html section 8.5.1.4
- 'infinity' returns a DateTime::Infinite::Future object
- '-infinity' returns a DateTime::Infinite::Past object
0.10 Wed Feb 24 18:45:00 2009
- support for single character am/pm strings '3p'
- support for days of the week (wednesday => the nearest future wednesday) (thanks Shawn Moore, rt #53188)
- note: this is quite limited, I need more test cases
- works: wednesday
- works: wed at 3p
- support for bare months (february)
- support for limited timezones that are not at the end of the string (thanks Dave Faraldo)
- 'Wed Nov 11 13:55:48 PST 2009' becomes
- 2009-11-11T13:55:48 America/Los_Angeles
- beginning multiple language support (contributions welcome)
- support english (en) and spanish (es)
- support dates like 'now, today, tomorrow'
- switch to strptime from regexes for some parsing for clarity
- now supports negative timezone offsets IF it is a 4 digit offset and there is a space before the offset
- works: 2007-05-06T04:44:44 -0800
- does not work: 2007-05-06T04:44:44-0800
- does not work: 2007-05-06T04:44:44-08
- does not work: 2007-05-06T04:44:44 -08
- now supports 2 digit years as the first number if the year is > 31
- works: 35-12-23 (2035-12-23T00:00:00)
- does not work: 11-12-13 (2013-11-12T00:00:00, or 2013-12-11T00:00:00 with european hinting)
- timezone parsing should now be more reliable
- you can now set a 'base' datetime object to help fill out partial datetimes
2010-03-08 17:45:23 +01:00
|
|
|
DEPENDS+= p5-DateTime-[0-9]*:../../time/p5-DateTime
|
|
|
|
DEPENDS+= p5-DateTime-Format-Builder>=0.7400:../../time/p5-DateTime-Format-Builder
|
2009-05-01 23:04:14 +02:00
|
|
|
DEPENDS+= p5-DateTime-TimeZone-[0-9]*:../../time/p5-DateTime-TimeZone
|
Updating time/p5-DateTime-Format-Flexible from 0.09 to 0.14
pkgsrc changes:
- Adapt dependency version to pkgsrc used version numbers, not CPAN
Upstream changes:
0.14 Sun Feb 28 2010
- fix test: '1 month ago at 4pm' could be potentially less that 28 days ago.
- fix tests for infinity, -infinity, infinito, and -infinito
0.13 Sat Feb 27 2010
- make parsing for infinity and -infinity more reliable
0.12 Thu Feb 25 2010
- fix DateTime::Format::Builder import
0.11 Wed Feb 24 2010
- remove Readonly dependency
- support some postgresql datetimes: epoch, infinity, -infinity, allballs
- see http://www.postgresql.org/docs/8.4/interactive/datatype-datetime.html section 8.5.1.4
- 'infinity' returns a DateTime::Infinite::Future object
- '-infinity' returns a DateTime::Infinite::Past object
0.10 Wed Feb 24 18:45:00 2009
- support for single character am/pm strings '3p'
- support for days of the week (wednesday => the nearest future wednesday) (thanks Shawn Moore, rt #53188)
- note: this is quite limited, I need more test cases
- works: wednesday
- works: wed at 3p
- support for bare months (february)
- support for limited timezones that are not at the end of the string (thanks Dave Faraldo)
- 'Wed Nov 11 13:55:48 PST 2009' becomes
- 2009-11-11T13:55:48 America/Los_Angeles
- beginning multiple language support (contributions welcome)
- support english (en) and spanish (es)
- support dates like 'now, today, tomorrow'
- switch to strptime from regexes for some parsing for clarity
- now supports negative timezone offsets IF it is a 4 digit offset and there is a space before the offset
- works: 2007-05-06T04:44:44 -0800
- does not work: 2007-05-06T04:44:44-0800
- does not work: 2007-05-06T04:44:44-08
- does not work: 2007-05-06T04:44:44 -08
- now supports 2 digit years as the first number if the year is > 31
- works: 35-12-23 (2035-12-23T00:00:00)
- does not work: 11-12-13 (2013-11-12T00:00:00, or 2013-12-11T00:00:00 with european hinting)
- timezone parsing should now be more reliable
- you can now set a 'base' datetime object to help fill out partial datetimes
2010-03-08 17:45:23 +01:00
|
|
|
DEPENDS+= p5-List-MoreUtils-[0-9]*:../../devel/p5-List-MoreUtils
|
2009-02-14 00:53:54 +01:00
|
|
|
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
USE_LANGUAGES= #
|
|
|
|
|
|
|
|
PERL5_PACKLIST= auto/DateTime/Format/Flexible/.packlist
|
|
|
|
|
|
|
|
.include "../../lang/perl5/module.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|