# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8::et:sw=4:ts=4:sts=4
# $Id$
PortSystem          1.0
PortGroup           python 1.0
PortGroup           github 1.0

github.setup        SeTeM pync 1.4 v
name                py-pync
maintainers         nomaintainer
categories-append   aqua
description         A simple Python wrapper around the terminal-notifier command-line tool.
long_description    ${description} It allows you to send User Notifications to \
                    the Notification Center on Mac OS X 10.8, or higher.
platforms           darwin
license             MIT
# Except for ‘Terminal.icns’, which is a copy of Apple’s Terminal.app icon and as such is copyright of Apple.
# But we delete the vendor/ dir, so we should be just MIT licensed.

python.versions     27 33 34

if {$subport ne $name} {
    depends_build       port:py${python.version}-setuptools
    depends_run         port:terminal-notifier

    checksums           rmd160  c579cbad6691798a7db0e57f89d9c006ed18e268 \
                        sha256  1a5355bc1505f076b79286951ae0488053d5c7a74296f73fe37e17f5694e3a95


    livecheck.type      none

    patchfiles          pync_TerminalNotifier.py.diff setup.py.diff

    post-extract {
        delete ${worksrcpath}/pync/vendor
    }

    post-patch {
        reinplace "s|__PREFIX__|${prefix}|" pync/TerminalNotifier.py
    }
}