# -*- 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_test
# The installed binary and the release artifact keep the short name (pgt); only
# the port name is the long project name, to avoid short-name collisions in the
# MacPorts tree. MacPorts allows underscores, so this matches the project /
# release-registry name postgres_test verbatim (the .deb must hyphenate it to
# postgres-test, as Debian package names forbid underscores).
set binary          pgt
version             0.7.1
revision            0
categories          databases
platforms           darwin
supported_archs     x86_64 arm64
license             FSL-1.1-MIT
maintainers         {gitlab.osss.net:cg} openmaintainer
description         PostgreSQL testing framework — SQL-native assertions run by a Rust harness
long_description    PostgreSQL testing framework — SQL-native assertions run by a Rust harness. This port installs the prebuilt macOS universal2 \
                    binary from the osss release server.
homepage            https://tools.osss.net/pgt/

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

checksums           sha256  822bc854fc5fa9ad87f83637703430dc58e810ac13fb8221108073d0cc69420e \
                    size    2067438

use_configure       no
build {}

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

livecheck.type      none
