# -*- 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

PortSystem          1.0
PortGroup           python 1.0

name                py-recaptcha
version             1.0.6
revision            1
categories-append   graphics
platforms           {darwin any} freebsd
supported_archs     noarch
license             MIT
maintainers         nomaintainer

description         Python recaptcha client
long_description    Provides a CAPTCHA for Python using the reCAPTCHA \
                    service. Does not require any imaging libraries \
                    because the CAPTCHA is served directly from \
                    reCAPTCHA. Also allows you to securely obfuscate \
                    emails with Mailhide. This functionality requires \
                    pycrypto. This library requires two types of API \
                    keys. If you'd like to use the CAPTCHA, you'll \
                    need a key from http://recaptcha.net/api/getkey. \
                    For Mailhide, you'll need a key from \
                    http://mailhide.recaptcha.net/apikey
homepage            https://pypi.python.org/pypi/recaptcha-client

python.rootname     recaptcha-client

checksums           rmd160  7dffe66b7fd37f5be2a7d7b2bf24c3978f46c8e9 \
                    sha256  28c6853c1d13d365b7dc71a6b05e5ffb56471f70a850de318af50d3d7c0dea2f \
                    size    7389

python.versions     27

if {${name} ne ${subport}} {
    patchfiles-append   patch-requires-pycryptodome.diff \
                        patch-setup-pycryptodome.diff
 
    depends_build       port:py${python.version}-setuptools
    depends_lib-append  port:py${python.version}-pycryptodome
    post-destroot {
        xinstall -m 644 ${worksrcpath}/build/lib/recaptcha/__init__.py \
                ${destroot}${python.pkgd}/recaptcha/
    }
    livecheck.type  none
}
