# $Id: Portfile 101617 2013-01-15 02:26:27Z jmr@macports.org $

PortSystem      1.0
PortGroup       python 1.0

name            py-optik
version         1.5.3
license         BSD
maintainers     nomaintainer
platforms       darwin freebsd
supported_archs noarch
description     flexible, easy-to-use command-line parsing library for python

long_description \
    Optik is a powerful, flexible, extensible, easy-to-use command-line parsing \
    library for Python. Using Optik, you can add intelligent, sophisticated handling \
    of command-line options to your scripts with very little overhead.

homepage        http://optik.sourceforge.net/
master_sites    sourceforge:optik
distname        optik-${version}

checksums       sha1 e4718ed19bf15cf7d882b369e9e5de7c352d7fb5

python.versions 24 25

if {$subport != $name} {
    post-destroot {
        file delete -force ${destroot}${prefix}/share/doc/${subport}
        file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${subport}
        file copy ${worksrcpath}/examples ${destroot}${prefix}/share/doc/${subport}
    }
}
