Files
macports-ports/python/py-cssutils/Portfile
T

46 lines
1.6 KiB
Tcl

# -*- 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$
PortSystem 1.0
PortGroup python 1.0
name py-cssutils
version 1.0
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 26 27 34
homepage http://cthedot.de/cssutils/
master_sites https://bitbucket.org/cthedot/cssutils/downloads/
distname cssutils-${version}
use_zip yes
checksums rmd160 16efd2eca89977a98fb0edb01e17ed5233b43f2e \
sha256 4504762f5d8800b98fa713749c00acfef8419826568f9363c490e45146a891af
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}
}