# -*- 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
categories-append databases
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 rmd160 3ba951dee72088a1b3c08f4fe7b6ec7b2cbb2d4e \
sha256 246fe35eb0b2d23360b5057453bf77bc9294a164954adcb84f41aa5b30273e09
python.versions 24 25 26 27
depends_build-append port:py${python.version}-distribute
# Install example files not installed by the Makefile
if {$subport == "py24-sqlalchemy" || $subport == "py25-sqlalchemy"} {
xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}/examples
foreach f [glob -directory ${worksrcpath}/doc *] {
copy $f ${destroot}${prefix}/share/doc/${subport}/[file tail $f]
foreach f [glob -directory ${worksrcpath}/examples *] {
copy $f ${destroot}${prefix}/share/doc/${subport}/examples/[file tail $f]
} elseif {$subport == "py26-sqlalchemy" || $subport == "py27-sqlalchemy"} {
xinstall -m 755 -d ${destroot}${python.prefix}/share/doc/sqlalchemy/examples
foreach f [glob -directory ${worksrcpath}/doc *] {
copy $f ${destroot}${python.prefix}/share/doc/sqlalchemy/[file tail $f]
foreach f [glob -directory ${worksrcpath}/examples *] {
copy $f ${destroot}${python.prefix}/share/doc/sqlalchemy/examples/[file tail $f]
livecheck.regex {<a href="/download\.html"><b>(.+?)</b></a>}
livecheck.url ${homepage}