# -*- 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

PortSystem          1.0
PortGroup           python 1.0

name                py-sqlobject
python.rootname     SQLObject
version             3.11.0
revision            0

categories-append   databases
supported_archs     noarch
platforms           {darwin any}
license             LGPL-2.1+
maintainers         nomaintainer

description         Object-Relational Manager, aka database wrapper
long_description    SQLObject is a popular *Object Relational Manager* for providing an \
                    object interface to your database, with tables as classes, rows as \
                    instances, and columns as attributes. \
                    SQLObject includes a Python-object-based query language that makes SQL \
                    more abstract, and provides substantial database independence for \
                    applications.

homepage            https://www.sqlobject.org/

checksums           rmd160  0ecad92ce18aa6991b3cfac51f7c6c93db5b3ee5 \
                    sha256  42b1b2acce9ed5cc42b45e06c688af5d4fc68f61fc5671bb1057208a62df7678 \
                    size    1327706

python.versions     312

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

    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 0644 -W ${worksrcpath} README.rst ANNOUNCE.rst \
            LICENSE ${destroot}${docdir}
    }
}
