# -*- 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         MogileFS-Utils 2.30
categories-append   net sysutils
license             {Artistic-1 GPL}
platforms           {darwin any}
maintainers         nomaintainer

description         MogileFS tools
long_description    This package contains two tools to manage MogileFS: mogadm (MogileFS \
                    admin tool) and mogtool (inject/extract data to/from a MogileFS \
                    installation)

checksums           rmd160  730164a55fa4c7084ef1b08738c82e18cf40663e \
                    sha256  a2619add8d42d3209809f1aeeae79ae046ce86c18738adece635d21afc0540a2 \
                    size    40653

if {${perl5.major} != ""} {
    depends_lib-append \
                    port:p${perl5.major}-mogilefs-client \
                    port:p${perl5.major}-libwww-perl

    post-patch {
            reinplace "s|/usr/bin/perl|${perl5.bin}|" {*}[glob ${worksrcpath}/mog*]
    }

    supported_archs noarch
}
