# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 65908 2010-04-02 22:28:17Z jmr@macports.org $

PortSystem          1.0
PortGroup           python26 1.0

name                py26-appscript
version             0.20.0
categories          python
platforms           darwin
maintainers         nomaintainer
description         High-level application scripting package for Python
long_description    Appscript is a high-level, user-friendly MacPython to \
                    Apple event bridge that allows you to control scriptable \
                    Mac OS X applications using ordinary Python scripts. \
                    Appscript makes MacPython a serious alternative to Apple's \
                    own AppleScript language for automating your Mac.

homepage            http://appscript.sourceforge.net/
master_sites        http://pypi.python.org/packages/source/a/appscript/
distname            appscript-${version}

depends_lib-append  port:py26-distribute

checksums           md5     c803c36665bfe8c8ae55f0ebaf7de684 \
                    sha1    baa3f68cc9501b71630015cf622b2acb837e92fc \
                    rmd160  17e024d89dc0b852626ab1a8d48df1315280a8b6

post-destroot {
    foreach subdir {appscript_2x appscript_3x} {
        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/${subdir}
        file copy ${worksrcpath}/${subdir}/sample \
            ${destroot}${prefix}/share/doc/${name}/${subdir}/sample
        file copy ${worksrcpath}/${subdir}/doc \
            ${destroot}${prefix}/share/doc/${name}/${subdir}/doc
    }
}

