# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 92916 2012-05-10 17:51:14Z deric@macports.org $

PortSystem              1.0
PortGroup               python 1.0

name                    py-scrapy
version                 0.14.3
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

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

checksums           rmd160  7eb62710cd32249ed7c0af3b0a7e789c71c6ac6a \
                    sha256  fd42e2a9e93f1741f24032d3a1a45c5660ce942a1e829c4d481d8ff9f287518a

python.versions 26 27
python.default_version 27

if {$subport != $name} {
    depends_build-append    port:py${python.version}-distribute
    depends_lib-append      port:py${python.version}-lxml port:py${python.version}-twisted
}

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