# -*- 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 66164 2010-04-06 13:01:54Z stromnov@macports.org $

PortSystem 1.0
PortGroup python26 1.0

name                    py26-sqlalchemy
version                 0.5.8
categories-append       databases
platforms               darwin
maintainers             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     716f6666b691d8a0ebafece9a3da31cd \
                        sha1    810dfbd4aad58723b86047cd5ff72da7110b191f \
                        rmd160  1118b0d89b13c8866674199302976f17677e0382
depends_lib             port:py26-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]
    }
}

livecheck.regex         {<a href="/download\.html"><b>(.+?)</b></a>}
livecheck.type          regex
livecheck.url           ${homepage}
