Ticket #61448: Portfile

File Portfile, 1.6 KB (added by jhoyt4, 3 years ago)

modified Portfile

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           github 1.0
5PortGroup           python 1.0
6
7github.setup        reclosedev requests-cache 0.5.2 v
8revision            0
9name                py-requests-cache
10
11categories-append   devel
12platforms           darwin
13license             BSD
14supported_archs     noarch
15maintainers         nomaintainer
16
17description         Transparent persistent cache for py-requests
18long_description    ${description}
19
20checksums           rmd160  ccd76aca28b1ba826a88beb5fc65f16aec26e583 \
21                    sha256  813023269686045f8e01e2289cc1e7e9ae5ab22ddd1e2849a9093ab3ab7270eb \
22                    size    31159
23
24python.versions     27 35 36 37 38
25
26master_sites        https://files.pythonhosted.org/packages/0c/d4/bdc22aad6979ceeea2638297f213108aeb5e25c7b103fa02e4acbe43992e
27
28if {${name} ne ${subport}} {
29    depends_build-append \
30                    port:py${python.version}-setuptools
31
32    depends_lib-append \
33                    port:py${python.version}-requests
34
35    post-destroot {
36        set docdir ${prefix}/share/doc/${subport}
37        xinstall -d ${destroot}${docdir}
38        xinstall -m 0644 -W ${worksrcpath} README.rst CONTRIBUTORS.rst \
39            LICENSE HISTORY.rst ${destroot}${docdir}
40    }
41
42    depends_test-append \
43                    port:py${python.version}-mock \
44                    port:py${python.version}-pytest
45
46    test.run        yes
47    test.cmd        py.test-${python.branch}
48    test.target
49    test.env        PYTHONPATH=${worksrcpath}/build/lib
50
51    livecheck.type  none
52}