# $Id: Portfile 43634 2008-12-12 19:24:39Z toby@macports.org $

PortSystem      1.0
PortGroup       perl5 1.0

perl5.setup     Locale-gettext 1.05
set my_name		gettext
distname        ${my_name}-${version}

homepage        http://search.cpan.org/dist/gettext/
maintainers     nomaintainer
platforms       darwin
description     Perl interface to GNU gettext

long_description    ${description}

checksums       md5 f3d3f474a1458f37174c410dfef61a46 \
                sha1 705f519ad61b4a8c522d8aaf98425e0bd21709f2 \
                rmd160 767adfce05b8fe77ddd7d3814951822746cf6e4b

depends_lib-append     port:gettext port:libiconv

patchfiles      patch-Makefile.PL
post-patch {
    reinplace s|-lintl|-I${prefix}/include\ -L${prefix}/lib\ -lintl|g ${worksrcpath}/Makefile.PL
}

livecheck.check regex
livecheck.url   ${homepage}
livecheck.regex ${my_name}-(\\d+(?:\\.\\d+)*)

