# -*- 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 44419 2008-12-28 09:31:44Z akitada@macports.org $

PortSystem 1.0
PortGroup python25 1.0

name                py25-sqlobject
version             0.10.2
categories          python databases
platforms           darwin
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}

depends_lib-append  port:py25-formencode

post-destroot {
    xinstall -m 644 -W ${worksrcpath}/docs Authors.txt FAQ.txt News.txt \
        SQLBuilder.txt SQLObject.txt ${destroot}${prefix}/share/doc/${name}
    xinstall -m 644 ${worksrcpath}/README.txt \
        ${destroot}${prefix}/share/doc/${name}
    move ${destroot}${prefix}/bin/sqlobject-admin \
        ${destroot}${prefix}/bin/sqlobject-admin2.5
}
