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

PortSystem          1.0
PortGroup           github 1.0

github.setup        goblinhack fatdisk 1.0.0-beta v
categories          sysutils emulators
platforms           darwin linux
maintainers         e-dad.net:glenn
license             MIT

description         a utility to allow mountless modification of DOS disks

long_description    ${name} is ${description}. It allows you to perform \
                    various operations on files on a DOS-formatted disk \
                    image in FAT12,16,32 formats without needing to do \
                    any mounting of the disk image, or needing root or \
                    sudo access. It can extract files from the DOS disk \
                    to the local hard drive, and likewise can import files \
                    from the local disk back onto the DOS disk. \
                    Additionally you can do basic operations like list, \
                    cat, hexdump, etc.

checksums           rmd160  0ef84b43e37a3f9f8c4c3cca3c617daf3b60eca1 \
                    sha256  950b60fa52e80ee3a01d9f939eedec41af90906f947a663d13c05fc78148bfa6

depends_build       port:makedepend

patchfiles          patch-Makefile.base.diff \
                    patch-RUNME.diff

configure.cmd       ./RUNME
configure.pre_args
configure.universal_args-delete --disable-dependency-tracking

test.run            yes
test.cmd            ./TESTME
test.target

destroot {
    xinstall ${worksrcpath}/fatdisk ${destroot}${prefix}/bin

    set docdir ${prefix}/share/doc/${subport}
    xinstall -d ${destroot}${docdir}
    xinstall -m 644 -W ${worksrcpath} LICENSE README.md ${destroot}${docdir}
}