# $Id: Portfile 85267 2011-10-12 06:29:11Z jmr@macports.org $

PortSystem            1.0
PortGroup             perl5 1.0

perl5.setup           WWW-Mechanize 1.66
revision              1
license               {Artistic-1 GPL}
maintainers           nomaintainer

supported_archs       noarch
description           Handy web browsing in a Perl object
long_description      WWW::Mechanize, or Mech for short, helps you automate \
                      interaction with a website. It supports performing a \
                      sequence of page fetches including following links and \
                      submitting forms. Each fetched page is parsed and its \
                      links and forms are extracted. A link or a form can be \
                      selected, form fields can be filled and the next page \
                      can be fetched. Mech also stores a history of the URLs \
                      you've visited, which can be queried and revisited.

platforms             darwin

checksums             md5 40690ba4cd93b8c3b931582acf87eeac \
                      sha1 1c61a0320c0ffce214c37389bd3d828456841523 \
                      rmd160 8bafcf32f45bf726174426b29336e66754f16f39

if {${perl5.major} != ""} {
depends_lib-append    port:p${perl5.major}-libwww-perl \
                      port:p${perl5.major}-html-parser \
                      port:p${perl5.major}-http-server-simple \
                      port:p${perl5.major}-test-warn \
                      port:p${perl5.major}-uri
}
