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

github.setup        discoteq flock 0.4.0 v
github.tarball_from releases
revision            0

categories          sysutils
license             ISC
maintainers         {langly.org:kenneth.ostby @langly} \
                    openmaintainer
description         Flock for Darwin
long_description    This utility manages flock locks from within shell scripts or the command line.
homepage            https://github.com/discoteq/flock

checksums           sha256  c98617f1f29d2fee64b59496a147b3d17b496324a76a007c4bf5ff6b5853b7f7 \
                    rmd160  fa9080a21e2c3ca0ba5db6a301a8ccf890ac2f41 \
                    size    143473

use_autoreconf      yes
autoreconf.cmd      ./autogen.sh

depends_build-append \
                    port:autoconf \
                    port:automake

if {[string match *gcc-4.* ${configure.compiler}]} {
    # cc1: error: unrecognized command line option "-Wtype-limits"
    patchfiles      patch-gcc-4.diff
}
