# -*- 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.2 # only port:trac requires py26-psyocopg2 python.versions 26 27 34 35 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 4a392949ba31a378a18ed3e775a4693f \ rmd160 f9b73dd247d2caa97f08b8730798d9f6f4ae9dd1 \ sha256 70490e12ed9c5c818ecd85d185d363335cc8a8cbf7212e3c185431c79ff8c05c if {${name} ne ${subport}} { depends_lib-append path:lib/libssl.dylib:openssl patchfiles patch-setup.cfg.diff post-patch { 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 } if {[variant_isset postgresql95]} { reinplace \ s|@PG_CONFIG@|${prefix}/lib/postgresql95/bin/pg_config|g \ ${worksrcpath}/setup.cfg } if {[variant_isset postgresql96]} { reinplace \ s|@PG_CONFIG@|${prefix}/lib/postgresql96/bin/pg_config|g \ ${worksrcpath}/setup.cfg } } variant postgresql91 conflicts postgresql92 postgresql93 postgresql94 postgresql95 postgresql96 description "Build using postgresql v9.1" { depends_lib-append port:postgresql91 } variant postgresql92 conflicts postgresql91 postgresql93 postgresql94 postgresql95 postgresql96 description "Build using postgresql v9.2" { depends_lib-append port:postgresql92 } variant postgresql93 conflicts postgresql91 postgresql92 postgresql94 postgresql95 postgresql96 description "Build using postgresql v9.3" { depends_lib-append port:postgresql93 } variant postgresql94 conflicts postgresql91 postgresql92 postgresql93 postgresql95 postgresql96 description "Build using postgresql v9.4" { depends_lib-append port:postgresql94 } variant postgresql95 conflicts postgresql91 postgresql92 postgresql93 postgresql94 postgresql96 description "Build using postgresql v9.5" { depends_lib-append port:postgresql95 } variant postgresql96 conflicts postgresql91 postgresql92 postgresql93 postgresql94 postgresql95 description "Build using postgresql v9.5" { depends_lib-append port:postgresql96 } if {![variant_isset postgresql91] && ![variant_isset postgresql92] && ![variant_isset postgresql93] && ![variant_isset postgresql94] && ![variant_isset postgresql95] && ![variant_isset postgresql96]} { default_variants +postgresql95 } livecheck.type none } else { livecheck.url ${master_sites} livecheck.regex psycopg2-(\\d+(\\.\\d+)+)${extract.suffix} }