# -*- 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

categories          devel
license             boost
maintainers         {@jmercouris atlas.engineer:administrator} \
                    openmaintainer

description         Thin wrapper over POSIX syscalls.
long_description    The purpose of libfixposix is to offer replacements \
                    for parts of POSIX whose behaviour is inconsistent \
                    across *NIX flavours.

github.setup        sionescu libfixposix 0.5.1 v
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
checksums           rmd160  738de46496318f6643e8b74556cbbaca68cf60d1 \
                    sha256  0c698a4483fee0b5830de668f113c242932adc68dfbffeb09bec527aa28539ce \
                    size    41318

# avoid collision with c++17 header <version>
patchfiles          patch-version-txt.diff
post-patch {
    move ${worksrcpath}/VERSION ${worksrcpath}/VERSION.txt
}

use_autoreconf          yes
depends_build-append    port:pkgconfig
configure.args-append   --disable-silent-rules

variant tests description {enable tests} {
    depends_test-append     port:check
    configure.args-append   --enable-tests
    test.run                yes
    test.target             check
}
