# $Id: Portfile,v 1.7 2006/03/06 18:38:10 mww Exp $

PortSystem 1.0
PortGroup python24 1.0

name			py-sqlobject
version			0.7.0
categories		python databases
platforms		darwin
maintainers		mww@opendarwin.org
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/
distname		SQLObject-${version}
checksums		sha1 c57e800f929f07dcf0654449f86a1951cfd8e232
patchfiles		patch-setup.py

depends_lib-append	port:py-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}
}
