# -*- 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 44419 2008-12-28 09:31:44Z akitada@macports.org $

PortSystem 1.0
PortGroup python24 1.0

name                    py-sqlalchemy
version                 0.4.7p1
categories              python
platforms               darwin
maintainers             landonf akitada openmaintainer
description             Python SQL ORM
long_description        SQLAlchemy is the Python SQL toolkit and Object \
                        Relational Mapper that gives application developers \
                        the full power and flexibility of SQL.

homepage                http://www.sqlalchemy.org
master_sites            sourceforge:sqlalchemy
distname                SQLAlchemy-${version}
checksums               md5 5657ace9ed484429486b24e4b6e6f1ad \
                        sha1 b4f158cf7930234b8be8794e481a79ebcbf3fbf0 \
                        rmd160 da2006ceb80c0d3ddb3ed68dd3c0c0fc7eede2bf
depends_lib             port:py-setuptools

post-destroot {
    # Install example files not installed by the Makefile
    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/examples
    foreach f [glob -directory ${worksrcpath}/doc *] {
        copy $f ${destroot}${prefix}/share/doc/${name}/[file tail $f]
    }
    foreach f [glob -directory ${worksrcpath}/examples *] {
        copy $f ${destroot}${prefix}/share/doc/${name}/examples/[file tail $f]
    }
}
