# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 114324 2013-12-05 08:44:51Z ryandesign@macports.org $

PortSystem              1.0
PortGroup               python 1.0

name                    py-cssutils
version                 0.9.9
categories              python www
maintainers             gmail.com:billitch
license                 LGPL-3+
supported_archs         noarch

description             CSS parser and library for Python
long_description        A Python package to parse and build \
                        CSS Cascading Style Sheets.

platforms               darwin
python.versions         25 26 27

homepage                http://cthedot.de/cssutils/
master_sites            https://bitbucket.org/cthedot/cssutils/downloads/
distname                cssutils-${version}
use_zip                 yes

checksums               rmd160  0affdb2edc523e4f22d54d7a92ce81bccbeb76a6 \
                        sha256  f7061a591859c025504c7871ef3b843383a025d570128edf1c63a6ef53753e8d

if {${name} ne ${subport}} {
    depends_build-append port:py${python.version}-setuptools

    post-destroot {
        # We should notify upstream not to install tests.
        delete ${destroot}${python.pkgd}/tests

        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}
        xinstall -m 644 -W ${worksrcpath} README.txt \
            ${destroot}${prefix}/share/doc/${subport}
    }
    livecheck.type      none
} else {
    livecheck.type      regex
    livecheck.url       [lindex ${master_sites} 0]
    livecheck.regex     cssutils-(\[0-9.\]+)${extract.suffix}
}
