# -*- 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-sqlalchemy
version                 0.5.2
categories              python
platforms               darwin
maintainers             stechert 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 d2b041f5877bf108b8ecf7a624e1bec0 \
                        sha1 2c221b8e3821e8a3ea5aa788130dcd94207f5f07 \
                        rmd160 503b8a2f15e435b52688ef3c312dafd627bf3cde
depends_lib             port:py25-distribute

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]
    }
}
