# $Id: Portfile 54249 2009-07-23 21:00:10Z ryandesign@macports.org $

PortSystem        1.0
PortGroup         perl5 1.0

perl5.setup       Net-LibIDN 0.12
maintainers       oaf.dk:mni
description       Perl bindings for GNU Libidn
long_description  Net::LibIDN is bindings for GNU Libidn, which is an \
                  implementation of the Stringprep, Punycode and IDNA \
                  specifications defined by the IETF Internationalized \
                  Domain Names (IDN) working group.
checksums         md5     c3e4de2065009d67bcb1df0afb473e12 \
                  sha1    ac446edf66ac523d5463b59ed9698e2ccb9b04ab \
                  rmd160  a595c3758c9577b6d09d856cf220c303fdc3d2a2
platforms         darwin

depends_lib-append      port:libidn

patchfiles-append       patch-Makefile.PL.diff

post-patch {
    reinplace s|@CC@|${configure.cc}|g ${worksrcpath}/Makefile.PL
}

configure.env           C_INCLUDE_PATH="${prefix}/include" \
                        LIBRARY_PATH="${prefix}/lib"
