# -*- 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-xattr
version             0.9.7
license             {MIT PSF}
platforms           darwin linux
maintainers         {danchr @danchr} openmaintainer
description         Python wrapper for extended filesystem attributes
long_description    xattr is a Python wrapper for Darwin, Linux, and FreeBSD \
                    extended filesystem attributes. Extended attributes \
                    extend the basic attributes of files and directories in \
                    the file system. They are stored as name:data pairs \
                    associated with file system objects (files, directories, \
                    symlinks, etc). Extended attributes are available on \
                    Darwin 8.0 and later. This corresponds to Mac OS X 10.4 \
                    (Tiger) and later.

homepage            http://undefined.org/python/#xattr
master_sites        pypi:x/xattr/
distname            xattr-${version}

checksums           rmd160  48424e7c2812dd341b1e09bc9b8278f1a2bf2529 \
                    sha256  b0bbca828e04ef2d484a6522ae7b3a7ccad5e43fa1c6f54d78e24bb870f49d44 \
                    size    13389

python.versions     27 35 36 37 38 39

if {${name} ne ${subport}} {
    depends_build       port:py${python.version}-setuptools
    depends_lib-append  port:py${python.version}-cffi

    test.run            yes
    test.cmd            ${python.bin} setup.py

    livecheck.type      none
} else {
    livecheck.type      pypi
}
