1 | # $Id: $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name TimeDate-perl |
---|
6 | version 1.16 |
---|
7 | categories devel |
---|
8 | description Perl5 module containing a better/faster date parser for absolute dates |
---|
9 | platforms darwin |
---|
10 | maintainers mich@freebsdcluster.org |
---|
11 | distname TimeDate-${version} |
---|
12 | master_sites http://www.cpan.dk/CPAN/modules/by-module/Date/ |
---|
13 | checksums md5 b3cc35a7cabd106ac8829d2f2ff4bd9d |
---|
14 | depends_lib bin:perl5\.8\..:perl5.8 |
---|
15 | configure.cmd perl Makefile.PL |
---|
16 | |
---|
17 | destroot.args INSTALLPRIVLIB=${destroot}${prefix}/lib/perl5/5.8.0 \ |
---|
18 | INSTALLSITELIB=${destroot}${prefix}/lib/perl5/site_perl/5.8.0 \ |
---|
19 | INSTALLARCHLIB=${destroot}${prefix}/lib/perl5/5.8.0/darwin \ |
---|
20 | INSTALLSITEARCH=${destroot}${prefix}/lib/perl5/site_perl/5.8.0/darwin \ |
---|
21 | INSTALLBIN=${destroot}${prefix}/bin \ |
---|
22 | INSTALLSITEBIN=${destroot}${prefix}/bin \ |
---|
23 | INSTALLSCRIPT=${destroot}${prefix}/bin \ |
---|
24 | INSTALLMAN1DIR=${destroot}${prefix}/share/man/man1 \ |
---|
25 | INSTALLMAN3DIR=${destroot}${prefix}/share/man/man3 \ |
---|
26 | INSTALLSITEMAN1DIR=${destroot}${prefix}/share/man/man1 \ |
---|
27 | INSTALLSITEMAN3DIR=${destroot}${prefix}/share/man/man3 |
---|
28 | |
---|
29 | post-destroot { cd ${destroot}${prefix}/lib/perl5/site_perl/5.8.0/darwin/auto/TimeDate/ |
---|
30 | system "cat .packlist | sed s#${destroot}/##g >.packlist.new" |
---|
31 | system "mv .packlist.new .packlist" |
---|
32 | } |
---|
33 | |
---|
34 | |
---|
35 | long_description \ |
---|
36 | The TimeDate distribution replaces earlier GetDate distribution, which was \ |
---|
37 | only a date parser. The date parser contained in this distribution \ |
---|
38 | is far superior to the yacc based parser, and a *lot* fatser. \ |
---|
39 | \ |
---|
40 | The parser contained here will only parse absolute dates, if you want a date \ |
---|
41 | parser that can parse relative dates then take a look at the \ |
---|
42 | Time modules by David Muir on CPAN. \ |
---|
43 | \ |
---|
44 | The file Local.pm.new which is included in this distribution is a patched \ |
---|
45 | version of Time::Local which comes with perl. It fixes two problems \ |
---|
46 | \ |
---|
47 | - It determines the zone offset based on now rather than epoch \ |
---|
48 | - It fixes a problem with looping forever when a year > 1900 is passed in \ |
---|