# $Id: Portfile 89310 2012-01-24 17:02:55Z singingwolfboy@macports.org $

PortSystem			1.0
PortGroup			python 1.0

name				py-pastescript
version				1.7.5
revision            1
python.versions     24 25 26 27
categories-append		www
maintainers			akitada openmaintainer
description			Paste Script is a pluggable command-line \
				frontend, to the Paste system.
long_description		${description}

platforms			darwin

homepage			http://pythonpaste.org/paste/
master_sites			http://pypi.python.org/packages/source/P/PasteScript/
distname			PasteScript-${version}
checksums           rmd160  58f48f8bd85f8c708503235cd5dad6df002b55e2 \
                    sha256  2b685be69d6ac8bc0fe6f558f119660259db26a15e16a4943c515fbee8093539

if {$name != $subport} {
    depends_lib-append \
                    port:py${python.version}-paste \
                    port:py${python.version}-pastedeploy

post-destroot {
	if {[file exists ${destroot}${python.pkgd}/tests]} {
		delete ${destroot}${python.pkgd}/tests
	}
	foreach f [glob -directory ${worksrcpath}/docs *] {
		copy $f ${destroot}${prefix}/share/doc/${subport}/[file tail $f]
	}
}

}
