# -*- 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 83765 2011-09-10 17:57:34Z jmr@macports.org $

PortSystem          1.0
PortGroup           python25 1.0

name                py25-appscript
version             0.22.0
categories          python
platforms           darwin
maintainers         internode.on.net:arsptr
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:py25-distribute

checksums           md5     da82d98d613c0f7d907ca128ac4bac68 \
                    sha1    0fa2b72470c48b9331c8051abb8b74b33b8fd3d8

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
    }
}
