Ticket #852: Portfile

File Portfile, 2.0 KB (added by mich@…, 21 years ago)

Portfile for #852

Line 
1# $Id: $
2
3PortSystem 1.0
4
5name            TimeDate-perl
6version         1.16
7categories      devel
8description     Perl5 module containing a better/faster date parser for absolute dates
9platforms       darwin
10maintainers     mich@freebsdcluster.org
11distname        TimeDate-${version}
12master_sites    http://www.cpan.dk/CPAN/modules/by-module/Date/
13checksums       md5 b3cc35a7cabd106ac8829d2f2ff4bd9d
14depends_lib     bin:perl5\.8\..:perl5.8
15configure.cmd   perl Makefile.PL
16
17destroot.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
29post-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
35long_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 \