# -*- 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 79334 2011-06-09 17:47:34Z ryandesign@macports.org $

PortSystem          1.0
PortGroup           python26 1.0

name                py26-sqlalchemy
version             0.7.1
categories          python databases
platforms           darwin
maintainers         akitada openmaintainer
license             MIT

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           sha1    58bdee2dbb339e77cf5ef716fc3b52a82ec1cf4e \
                    rmd160  ffdd5d137b8ea7a6b60788678d62a0cfdb11cdae

depends_lib         port:py26-distribute

default_variants    +cextensions

variant cextensions description {With C extensions} {
    build.cmd-append    --with-cextensions
    destroot.cmd-append --with-cextensions
}

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}
