# -*- 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 114324 2013-12-05 08:44:51Z ryandesign@macports.org $

PortSystem 1.0
PortGroup python 1.0

name                py-sqlobject
version             0.10.2
revision            1
categories-append   databases
license             LGPL-2.1+
platforms           darwin
supported_archs     noarch
maintainers         openmaintainer akitada
description         object-relational mapper for python
long_description    SQLObject is an object-relational mapper. It allows \
                    you to translate RDBMS table rows into Python objects, \
                    and manipulate those objects to transparently \
                    manipulate the database. In using SQLObject, you will \
                    create a class definition that will describe how the \
                    object connects to the database (in addition to any \
                    other methods you may wish to add to the class). \
                    SQLObject will produce the code to access the \
                    database, and update the database with your changes. \
                    The interface to the database is meant to be \
                    indistinguishable from other interfaces you may add to \
                    the object. SQLObject also includes a novel feature to \
                    generate WHERE clauses using Python syntax and objects \
                    (instead of generating SQL using string substitution, \
                    as is traditional).

homepage            http://www.sqlobject.org/
master_sites        http://cheeseshop.python.org/packages/source/S/SQLObject/
checksums           md5 6ef1eb9464c08743fd25d8c10dae62af \
                    sha1 fe3588dc438a8789346014adc8ce84867276150e \
                    rmd160 2cbe649415b717d64249b4a548416cd1c08c48bf
distname            SQLObject-${version}

python.versions     24 25

if {${name} ne ${subport}} {
    depends_lib-append  port:py${python.version}-formencode

    post-destroot {
        xinstall -m 644 -W ${worksrcpath}/docs Authors.txt FAQ.txt News.txt \
            SQLBuilder.txt SQLObject.txt ${destroot}${prefix}/share/doc/${subport}
        xinstall -m 644 ${worksrcpath}/README.txt \
            ${destroot}${prefix}/share/doc/${subport}
    }
}
