# $Id: Portfile 47038 2009-02-20 15:51:51Z deric@macports.org $

PortSystem          1.0
PortGroup           python25 1.0

name                py25-icalendar
version             1.2
categories          python
maintainers         deric
platforms           darwin
description         The iCalendar package is a parser/generator of RFC 2445 \
                    iCalendar files.
long_description    The inspiration has come from the email package in the \
                    standard lib, which I think is pretty simple, yet \
                    efficient and powerful. The package can both generate \
                    and parse iCalendar files, and can easily be used as is. \
                    The aim is to make a package that is fully compliant to \
                    RFC 2445, well designed, simple to use and well documented.
                    
homepage            http://codespeak.net/icalendar/
master_sites        ${homepage}
distname            iCalendar-${version}
extract.suffix      .tgz
checksums           md5 810cb3707605b75e51163e6eb1c1410a \
                    sha1 76caea7deb43cd299fb20bc940f305d43747fde9 \
                    rmd160 6809c1c2bc4688032c0145919e4ed569b0de6a04

post-destroot {
    # install docs
    xinstall -m 644 -W ${worksrcpath}/ CHANGES.txt CREDITS.txt HISTORY.txt INSTALL.txt LICENSE.txt README.txt TODO.txt \
    ${destroot}${prefix}/share/doc/${name}

    xinstall -m 644 -W ${worksrcpath}/doc example.txt groupscheduled.ics groupscheduled.txt multiple.ics multiple.txt small.ics small.txt \
    ${destroot}${prefix}/share/doc/${name}
}
