# -*- 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-psycopg2 version 2.6.1 # only port:trac requires py26-psyocopg2 python.versions 26 27 34 python.default_version 27 categories-append databases maintainers snc openmaintainer license LGPL-3+ platforms darwin freebsd description A python DBAPI-2.0-compliant database adapter for postgresql long_description Psycopg2 is a postgresql database adapter for python. \ It's fully compliant to python's DBAPI-2.0. psycopg is \ designed for heavily multi-threaded applications \ featuring connection pooling. homepage http://initd.org/psycopg/ set branch [join [lrange [split ${version} .] 0 1] -] master_sites http://www.psycopg.org/psycopg/tarballs/PSYCOPG-${branch}/ distname psycopg2-${version} checksums md5 842b44f8c95517ed5b792081a2370da1 \ rmd160 6f90c8cad1aadf32af8275faddb728238390205a \ sha256 6acf9abbbe757ef75dc2ecd9d91ba749547941abaffbe69ff2086a9e37d4904c if {${name} ne ${subport}} { depends_lib-append path:lib/libssl.dylib:openssl patchfiles patch-setup.cfg.diff post-patch { if {[variant_isset postgresql84]} { reinplace \ s|@PG_CONFIG@|${prefix}/lib/postgresql84/bin/pg_config|g \ ${worksrcpath}/setup.cfg } if {[variant_isset postgresql90]} { reinplace \ s|@PG_CONFIG@|${prefix}/lib/postgresql90/bin/pg_config|g \ ${worksrcpath}/setup.cfg } if {[variant_isset postgresql91]} { reinplace \ s|@PG_CONFIG@|${prefix}/lib/postgresql91/bin/pg_config|g \ ${worksrcpath}/setup.cfg } if {[variant_isset postgresql92]} { reinplace \ s|@PG_CONFIG@|${prefix}/lib/postgresql92/bin/pg_config|g \ ${worksrcpath}/setup.cfg } if {[variant_isset postgresql93]} { reinplace \ s|@PG_CONFIG@|${prefix}/lib/postgresql93/bin/pg_config|g \ ${worksrcpath}/setup.cfg } if {[variant_isset postgresql94]} { reinplace \ s|@PG_CONFIG@|${prefix}/lib/postgresql94/bin/pg_config|g \ ${worksrcpath}/setup.cfg } } variant postgresql84 conflicts postgresql90 postgresql91 postgresql92 postgresql93 postgresql94 description "Build using postgresql v8.4" { depends_lib-append port:postgresql84 } variant postgresql90 conflicts postgresql84 postgresql91 postgresql92 postgresql93 postgresql94 description "Build using postgresql v9.0" { depends_lib-append port:postgresql90 } variant postgresql91 conflicts postgresql84 postgresql90 postgresql92 postgresql93 postgresql94 description "Build using postgresql v9.1" { depends_lib-append port:postgresql91 } variant postgresql92 conflicts postgresql84 postgresql90 postgresql91 postgresql93 postgresql94 description "Build using postgresql v9.2" { depends_lib-append port:postgresql92 } variant postgresql93 conflicts postgresql84 postgresql90 postgresql91 postgresql92 postgresql94 description "Build using postgresql v9.3" { depends_lib-append port:postgresql93 } variant postgresql94 conflicts postgresql84 postgresql90 postgresql91 postgresql92 postgresql93 description "Build using postgresql v9.4" { depends_lib-append port:postgresql94 } if {![variant_isset postgresql84] && ![variant_isset postgresql90] && ![variant_isset postgresql91] && ![variant_isset postgresql92] && ![variant_isset postgresql93] && ![variant_isset postgresql94]} { default_variants +postgresql93 } livecheck.type none } else { livecheck.url ${master_sites} livecheck.regex psycopg2-(\\d+(\\.\\d+)+)${extract.suffix} }