# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortSystem          1.0

name                postgres_sql_formatter
version             0.17.0
revision            0
categories          databases
platforms           darwin
supported_archs     x86_64 arm64
license             FSL-1.1-MIT
maintainers         {gitlab.osss.net:cg} openmaintainer
description         Format SQL to a PostgreSQL house style
long_description    Format SQL to a PostgreSQL house style. This port installs the prebuilt macOS universal2 \
                    binary from the osss release server.
homepage            https://tools.osss.net/pgsf/

# The published distfile + installed binary keep the short `pgsf` invocation name;
# only the port is the long project name (avoids short-name collisions in the port tree).
set binary          pgsf

master_sites        https://gitlab.osss.net/api/v4/projects/7/packages/generic/${name}/${version}/
distfiles           ${binary}-macos-universal2${extract.suffix}
dist_subdir         ${name}/${version}
extract.mkdir       yes

checksums           sha256  eb2a1e00bea0a53ae0f81030f6e10753b6aa4d57c98acae63640b2241e77eeef \
                    size    3044444

use_configure       no
build {}

destroot {
    xinstall -m 0755 ${worksrcpath}/${binary} ${destroot}${prefix}/bin/${binary}
}

livecheck.type      none
