# $Id: Portfile 98519 2012-10-08 00:07:57Z ryandesign@macports.org $

PortSystem      1.0
PortGroup       perl5 1.0

perl5.branches      5.8 5.10 5.12 5.14 5.16
perl5.setup     Crypt-PasswdMD5 1.3
revision        3
maintainers     gmail.com:ooburai
description     provides interoperable MD5-based crypt() functions for perl
long_description        The unix_md5_crypt() provides a crypt()-compatible \
                        interface to the rather new MD5-based crypt() function \
                        found in modern operating systems. It is based on the \
                        implementation found on FreeBSD 2.2-RELEASE.
platforms       darwin
checksums       sha1 887782eb7fd1568ce9514f46156a08c415c26fdf

supported_archs noarch

if {${perl5.major} != ""} {
    depends_build-append bin:iconv:libiconv
    
    post-patch {
        system -W ${worksrcpath} "iconv -f ISO-8859-1 -t UTF-8 Makefile.PL > Makefile.PL.new && mv Makefile.PL.new Makefile.PL"
    }
}
