# -*- 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$ PortSystem 1.0 PortGroup python 1.0 name py-sqlalchemy version 0.7.8 revision 0 categories-append databases license MIT 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 rmd160 54fd493e880feb41fc45c851ca2f4c30a9589561 \ sha256 e0d8b81cbb3bbb19a9e6ed0d31ecc525ed20c0590e595801d2c531052b92618f python.versions 24 25 26 27 31 32 if {$subport != $name} { depends_build-append port:py${python.version}-distribute post-destroot { # 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" || $subport == "py31-sqlalchemy" || $subport == "py32-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 {(.+?)} livecheck.type regex livecheck.url ${homepage}