# -*- 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                    osxphotos
version                 0.73.1
revision                0

categories              graphics python

platforms               {darwin any}
supported_archs         noarch

maintainers             openmaintainer \
                        {breun @breun} \
                        {@RhetTbull gmail.com:rturnbull}

license                 MIT

description             Export photos from Apple's macOS Photos app and query the \
                        Photos library database to access metadata about images.

long_description        {*}${description}

homepage                https://github.com/RhetTbull/osxphotos

checksums               rmd160  5cf3ad9a5bab13ca7c3125a592ef9e01b1e61585 \
                        sha256  ceafaa5747dfb018ac3635c95272ed76dc7dffff5fa1786487f39188c5ced900 \
                        size    2327760

python.default_version  313

depends_build-append    port:py${python.version}-setuptools

depends_lib-append      port:py${python.version}-beautifulsoup4 \
                        port:py${python.version}-bitmath \
                        port:py${python.version}-bpylist2 \
                        port:py${python.version}-cgmetadata \
                        port:py${python.version}-click \
                        port:py${python.version}-mac-alias \
                        port:py${python.version}-makelive \
                        port:py${python.version}-mako \
                        port:py${python.version}-markdown2 \
                        port:py${python.version}-more-itertools \
                        port:py${python.version}-objexplore \
                        port:py${python.version}-osxmetadata \
                        port:py${python.version}-packaging \
                        port:py${python.version}-pathvalidate \
                        port:py${python.version}-photoscript \
                        port:py${python.version}-ptpython \
                        port:py${python.version}-pyobjc \
                        port:py${python.version}-pytimeparse2 \
                        port:py${python.version}-requests \
                        port:py${python.version}-rich \
                        port:py${python.version}-rich-theme-manager \
                        port:py${python.version}-shortuuid \
                        port:py${python.version}-strpdatetime \
                        port:py${python.version}-tenacity \
                        port:py${python.version}-textx \
                        port:py${python.version}-toml \
                        port:py${python.version}-whenever \
                        port:py${python.version}-wrapt \
                        port:py${python.version}-wurlitzer \
                        port:py${python.version}-xdg-base-dirs \
                        port:py${python.version}-yaml

depends_run-append      port:py${python.version}-utitools

post-destroot {
    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}
    xinstall -m 644 -W ${worksrcpath} LICENSE README.md README.rst \
       ${destroot}${prefix}/share/doc/${subport}
}

test.run    yes
test.cmd    osxphotos
test.target
test.args   version

