# -*- 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        bestouff genext2fs 1.5.0 v
github.tarball_from archive
revision            1

categories          sysutils
license             GPL-2
maintainers         free.fr:revol
description         Ext2 filesystem image generator
long_description    Genext2fs generates an ext2 filesystem as a normal (i.e. non-root) user
homepage            https://genext2fs.sourceforge.net/

checksums           sha1    4b06176c1c71b2818dc2f9d772346c5902238c33 \
                    rmd160  972ec7eb2cf7450263a08f34458a55426119bbe8 \
                    sha256  d3861e4fe89131bd21fbd25cf0b683b727b5c030c4c336fadcd738ada830aab0

# see: https://github.com/bestouff/genext2fs/issues/28
post-patch {
    reinplace "s|1\.4\.2|${version}|g" ${worksrcpath}/configure.ac
}

use_autoreconf      yes
autoreconf.cmd      ./autogen.sh

depends_build-append \
                    port:autoconf \
                    port:automake
