Ticket #45993: Portfile

File Portfile, 1.3 KB (added by naninunenor@…, 9 years ago)
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
3PortSystem          1.0
4PortGroup           python 1.0
5
6name                py-oauthlib
7version             0.7.2
8categories-append   devel
9license             BSD
10maintainers         nomaintainer
11supported_archs     noarch
12
13description         An implementation of the OAuth for Python
14long_description    \
15    A generic, spec-compliant, thorough implementation of \
16    the OAuth request-signing logic for Python
17
18platforms           darwin
19
20homepage            https://github.com/idan/oauthlib
21master_sites        http://pypi.python.org/packages/source/o/oauthlib/
22distname            oauthlib-${version}
23
24checksums           rmd160 f30010118a29007e0a5495c8b605557a6e10f293 \
25                    sha256 a051f04ee8ec3305055ab34d87b36c9a449375e07c7d6a05bcafa48329cac7c3
26
27python.versions     27 34
28
29if {${name} ne ${subport}} {
30    depends_build   port:py${python.version}-setuptools
31    depends_lib-append \
32                    port:py${python.version}-crypto \
33                    port:py${python.version}-blinker
34    post-destroot {
35        if {[file exists ${destroot}${python.pkgd}/tests]} {
36            delete ${destroot}${python.pkgd}/tests
37        }
38    }
39}