# -*- 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           github 1.0
PortGroup           java 1.0

github.setup        pinterest ktlint 1.8.0
github.tarball_from releases

distfiles           ${name}
dist_subdir         ${name}/${version}

categories          devel java
platforms           {darwin any}
supported_archs     noarch

maintainers         {amake @amake} openmaintainer
license             MIT
homepage            https://pinterest.github.io/ktlint/

description         An anti-bikeshedding Kotlin linter with built-in formatter
long_description    {*}${description}

checksums           rmd160  8f55d7a1aa5c09050c23859b0aa8d35a67a248f0 \
                    sha256  a3fd620207d5c40da6ca789b95e7f823c54e854b7fade7f613e91096a3706d75 \
                    size    71471207

extract.only
use_configure       no

java.version        1.8+
java.fallback       openjdk8

build {}

destroot {
    xinstall -m 0755 ${distpath}/${distfiles} ${destroot}${prefix}/bin
}

github.livecheck.regex  {([^"-]+)}
