# -*- 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 75142 2011-01-16 04:39:24Z snc@macports.org $

PortSystem          1.0
PortGroup           python27 1.0

name                py27-appscript
version             0.22.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:py27-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
    }
}

