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

# Only needed to Darwin 10 (OSX10.6) for getline
legacysupport.newest_darwin_requires_legacy 10

github.setup        dosfstools dosfstools 4.2 v
github.tarball_from releases

categories          sysutils
platforms           darwin
license             GPL-3+
maintainers         {gmail.com:davidgilman1 @dgilman} openmaintainer

description         dosfstools consists of the programs mkfs.fat, fsck.fat \
                    and fatlabel to create, check and label file systems \
                    of the FAT family.
long_description    ${description}

checksums           rmd160  5f9ae26d49fbc5cefc26eab8b02313a1ebfd9e69 \
                    sha256  64926eebf90092dca21b14259a5301b7b98e7b1943e8a201c7d726084809b527 \
                    size    320917

# Remove in the next release
# https://github.com/dosfstools/dosfstools/pull/158
patchfiles-append   patch-sysmacros_h_conditional.diff

configure.args      --without-udev \
                    --enable-compat-symlinks

depends_lib         port:libiconv

depends_test        port:vim
test.run            yes
test.target         check
