# -*- 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 65907 2010-04-02 22:08:22Z jmr@macports.org $

PortSystem          1.0
PortGroup           python25 1.0

name                py25-pylons
version             0.9.6.2
revision            1
categories-append   www
maintainers         openmaintainer stechert akitada
description         Pylons is a lightweight web framework.
long_description    Pylons combines the very best ideas from the \
                    worlds of Ruby, Python and Perl, providing a \
                    structured but extremely flexible Python web \
                    framework. It's also one of the first projects \
                    to leverage the emerging WSGI standard, which \
                    allows extensive re-use and flexibility -- but \
                    only if you need it. Out of the box, Pylons \
                    aims to make web development fast, flexible \
                    and easy.
platforms           darwin

homepage            http://pylonshq.com/
master_sites        http://cheeseshop.python.org/packages/source/P/Pylons/
distname            Pylons-${version}

checksums           md5 01d0e1ca95cfbfa1f73b8b5ae9a5f0a5 \
                    sha1 d3ed6ea2618925c99180381ccd08b390acb46142 \
                    rmd160 4fa37c53a26fa8f30482c2d80fb4fd68abfde9f0

depends_lib     port:py25-distribute \
                port:py25-routes \
                port:py25-myghty \
                port:py25-paste \
                port:py25-pastedeploy \
                port:py25-pastescript \
                port:py25-simplejson \
                port:py25-WebHelpers \
                port:py25-nose \
                port:py25-beaker \
                port:py25-formencode \
                port:py25-cheetah

post-destroot {
    # We should notify upstream not to install tests.
    delete ${destroot}${prefix}/lib/python2.5/site-packages/tests
    # Dependencies are the packaging system's job, for crying out loud.
    # Cheetah doesn't use setuptools.
    reinplace s|^Cheetah.*||g $destroot/$prefix/lib/python2.5/site-packages/Pylons-${version}-py2.5.egg-info/requires.txt
    # Neither does FormEncode
    reinplace s|^FormEncode.*||g $destroot/$prefix/lib/python2.5/site-packages/Pylons-${version}-py2.5.egg-info/requires.txt
}
