# $Id: Portfile 76618 2011-03-02 19:24:03Z singingwolfboy@macports.org $

PortSystem          1.0
PortGroup           python27 1.0

name                py27-scss
set real_name       pyScss
version             1.0.3
license             MIT
categories-append   www devel
maintainers         singingwolfboy openmaintainer
description         SCSS compiler for Python
long_description \
    SCSS (Sassy CSS) makes CSS fun again. SCSS is an extension of CSS3, \
    adding nested rules, variables, mixins, selector inheritance, and more. \
    It’s translated to well-formatted, standard CSS using the command line \
    tool or a web-framework plugin. This is a SCSS compiler for Python.

platforms           darwin
supported_archs     noarch

homepage            http://github.com/Kronuz/${real_name}
master_sites        http://pypi.python.org/packages/source/p/${real_name}
distname            ${real_name}-${version}

checksums           md5     97c88b4edf60331fe1c4a5161f151fcc \
                    sha1    58176a047292c26ebd6000737e47206d73a316c7 \
                    rmd160  7464830f76957ad882cd300936bee859d7057c4d

post-destroot {
    file attributes ${destroot}${python.pkgd}/scss.py -permissions a+x
    reinplace "s|#!/usr/bin/env python|#!${python.bin}|" \
        ${destroot}${python.pkgd}/scss.py
    ln -s ${python.pkgd}/scss.py ${destroot}${prefix}/bin/scss
}

livecheck.type      regex
livecheck.url       ${master_sites}
livecheck.regex     {${real_name}-(\d+(?:\.\d+)*)}
