# $Id: Portfile 86934 2011-11-07 08:44:53Z jmr@macports.org $

PortSystem          1.0
PortGroup           python24 1.0

name                py-smisk
version             1.1.6
revision            0
categories          python www
platforms           darwin

maintainers         rasmus
description         High performance web service framework
long_description    A modern high performance web service framework, written \
                    in C but controlled by Python.
homepage            http://python-smisk.org/

master_sites        http://python-smisk.org/dist/
distname            smisk-${version}
checksums           sha1 e0b1f278816c03967f178b63659f20cf40ec17b4

depends_lib-append  port:fcgi \
                    port:py24-distribute \
                    port:py24-readline \
                    port:py-elixir \
                    port:py-mako \
                    port:py-yaml

variant minimal description {Minimize number of dependencies} {
  # Smisk will tell the user when she is trying to use a part of Smisk which
  # requires a certain module which is not available, thus no extra
  # configuration is required.
  depends_lib-delete  port:py24-readline \
                      port:py-elixir \
                      port:py-mako \
                      port:py-yaml
}

build.env-append  SMISK_BUILD_ID_SUFFIX=:macports:${revision}
build.args-append -f

post-destroot {
	xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
	xinstall -m 644 -W ${worksrcpath} LICENSE README.rst CHANGELOG.rst ${destroot}${prefix}/share/doc/${name}
	copy ${worksrcpath}/examples ${destroot}${prefix}/share/doc/${name}/examples
}
