# -*- 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         MacOSX-File 0.71 BSD/DANKOGAI
revision            4
categories-append   sysutils
license             {Artistic-1 GPL}
maintainers         nomaintainer

description         A collection of Perl modules to manipulate files \
                    on Mac OS X
long_description    MacOSX::File is a collection of Perl modules that \
                    allows you to do what binaries in /Developer/Tools \
                    allows you to do directly via perl. You can \
                    implement your own CpMac, MvMac, GetFileInfo and \
                    SetFile without calling these binaries.

checksums           rmd160  a7e06d8126cff447cf7f3a422138fa7f6d140a36 \
                    sha256  0a5a0b5f52446d305f590508e29f59fca90609663a8f4581cb2694165438e903

platforms           darwin
supported_archs     i386 ppc

if {${perl5.major} != ""} {
    patchfiles      use-FSPathCopyObjectSync.patch \
                    fix-Copy-tiger.patch \
                    avoid-FlatCarbon-headers.patch

    post-patch {
        reinplace   "s|/usr/local|${prefix}|g" ${worksrcpath}/Makefile.PL
    }

    test.run        yes
}
