source: trunk/dports/python/py-recaptcha/Portfile

Last change on this file was 148976, checked in by raimue@…, 18 months ago

Mass update of python ports for master_sites pypi

The pypi hosting site changed the naming scheme for new uploads. While old URLs
continue to work, this possibly breaks updates as master_sites would need to be
changed. This patch updates all previously hardcoded references to
pypi.python.org to the pypi: mirror sites, which was already updated to check
at both the old and new location. See #51391.

Overriding maintainers as this is a mass update of ports.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 KB
Line 
1# -*- 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
2# $Id: Portfile 148976 2016-05-24 07:48:05Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           python 1.0
6
7name                py-recaptcha
8version             1.0.6
9categories-append   graphics
10platforms           darwin freebsd
11supported_archs     noarch
12license             MIT
13maintainers         nomaintainer
14
15description         Python recaptcha client
16long_description    Provides a CAPTCHA for Python using the reCAPTCHA \
17                    service. Does not require any imaging libraries \
18                    because the CAPTCHA is served directly from \
19                    reCAPTCHA. Also allows you to securely obfuscate \
20                    emails with Mailhide. This functionality requires \
21                    pycrypto. This library requires two types of API \
22                    keys. If you'd like to use the CAPTCHA, you'll \
23                    need a key from http://recaptcha.net/api/getkey. \
24                    For Mailhide, you'll need a key from \
25                    http://mailhide.recaptcha.net/apikey
26homepage            http://pypi.python.org/pypi/recaptcha-client
27
28master_sites        pypi:r/recaptcha-client/
29distname            recaptcha-client-${version}
30checksums           md5     74228180f7e1fb76c4d7089160b0d919 \
31                    sha1    661317355af7a2985c9011b6efa026b7178e9917 \
32                    rmd160  7dffe66b7fd37f5be2a7d7b2bf24c3978f46c8e9
33
34python.versions     27
35
36if {${name} ne ${subport}} {
37    depends_build       port:py${python.version}-setuptools
38    depends_lib-append  port:py${python.version}-crypto
39    post-destroot {
40        xinstall -m 644 ${worksrcpath}/build/lib/recaptcha/__init__.py \
41                ${destroot}${python.pkgd}/recaptcha/
42    }
43    livecheck.type  none
44} else {
45    livecheck.type  regex
46    livecheck.url   ${homepage}
47    livecheck.regex {recaptcha-client&version=(\d+(\.\d+)*)}
48}
Note: See TracBrowser for help on using the repository browser.