PortSystem          1.0
PortGroup           github 1.0

github.setup        jdberry tag 0.10 v
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball

categories          sysutils
license             MIT
maintainers         {jberry @jdberry} openmaintainer

description         A command line tool to manipulate and query tags on files.
long_description    tag is a tool to manipulate tags on files starting with Mac OS 10.9 \
	                Mavericks, and to query for files with those tags. tag can use the \
	                file system's built-in metadata search functionality to rapidly find \
	                all files that have been tagged with a given set of tags.

checksums           rmd160  ec25a37711109feaf321653cc5804fd2bfb5308a \
                    sha256  4055c114a004079a467cd2231d590142fc2530d9fc9e6f35754d808b44658dd6 \
                    size    17628

use_configure       no

variant universal {}

build.env           CC=${configure.cc} \
                    "CFLAGS=${configure.cflags} [get_canonical_archflags cc]"

destroot.args       prefix=${prefix}

pre-fetch {
    if { ${os.major} < 13 } {
        ui_error "${name} requires OS X 10.9/Mavericks or newer"
        return -code error "Unsupported OS X version"
    }
}
