Ticket #16934: Portfile

File Portfile, 1.1 KB (added by chris@…, 16 years ago)

Portfile for p5-time-period

Line 
1# $Id$
2
3PortSystem          1.0
4PortGroup           perl5 1.0
5
6perl5.setup         Time-Period 1.20
7maintainers         behanna.org:chris
8description         Determine if a time is within the next specified period.
9
10homepage            http://search.cpan.org/~pryan/Period-${version}/Period.pm
11master_sites        http://search.cpan.org/CPAN/authors/id/P/PR/PRYAN/
12
13long_description    \
14{Time::Period is a module that provides the inPeriod method, which takes        \
15an argument of a time and a delta from the current time, and returns true      \
16if the time is within now + delta, false otherwise.  It is used for            \
17firing scheduled events--backups, expiration of backups, etc.}
18
19platforms           darwin freebsd
20
21distfiles           Period-${version}${extract.suffix}
22
23checksums           md5 63b073af8ec96e7fa48801cd6fcccdd1 \
24                    sha1 98d324e9858debfa918d60892600650230a86e87 \
25                    rmd160 4439c41e6f18498fd768f2bb0a44f75510284fa3
26
27#
28# We have to hack around the non-standard distfile name.
29#
30post-extract {
31    file rename "${workpath}/Period-${version}" "${worksrcpath}"
32}
33