# $Id: Portfile 79371 2011-06-11 20:17:06Z perry@macports.org $

PortSystem              1.0
PortGroup               python26 1.0

name                    py26-scrapy
version                 0.12.0.2542
maintainers             perry openmaintainer
platforms               darwin

description             Scrapy is a high level scraping and web crawling \
                        framework for writing spiders to crawl and parse web \
                        pages for all kinds of purposes, from information \
                        retrieval to monitoring or testing web sites.
long_description        ${description}
license                 BSD
homepage                http://pypi.python.org/pypi/Scrapy

livecheck.regex         {: Scrapy (.+)<}
livecheck.type          regex
livecheck.url           ${homepage}

depends_build-append    port:py26-distribute
depends_lib-append      port:py26-lxml port:py26-twisted

distname                Scrapy-${version}
master_sites            http://pypi.python.org/packages/source/S/Scrapy/

checksums               rmd160 9925093de4924246a1dbaa0ace1368cf04e70c32

post-destroot {
    system "find ${destroot} -perm 600 -type f -exec chmod 644 {} \\;"
}
