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

perl5.branches      5.28 5.30 5.32 5.34
perl5.setup         Filesys-DiskSpace 0.05
revision            3
license             {Artistic-1 GPL}
maintainers         nomaintainer

description         Perl df
long_description    This routine displays information on a file system such \
                    as its type, the amount of disk space occupied, the \
                    total disk space and the number of inodes. It tries \
                    syscall(SYS_statfs) and syscall(SYS_statvfs) in several \
                    ways. If all fails, it croaks.

checksums           rmd160  3af50a43330e451e6333a896ec19135c061cc9be \
                    sha256  9bc3e3384840df7d4ebdfd563f59b7a7f2bb4d47990ceab699bc16a4abb374c0

platforms           {darwin any}
supported_archs     noarch

if {${perl5.major} != ""} {
    patchfiles      patch-lib-Filesys-Diskspace.pm

    post-install {
        ui_msg "\n
To use Filesys::Diskspace some .ph Perl header files are required.  They
may be generated using .h C header files with the following commands:

    cd /usr/include
    sudo h2ph sys/*
\n"
    }
}