# -*- 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-psycopg2 version 2.8.3 categories-append databases maintainers {snc @nerdling} 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. python.versions 27 34 35 36 37 homepage http://initd.org/psycopg/ master_sites pypi:[string index ${python.rootname} 0]/${python.rootname} distname ${python.rootname}-${version} checksums md5 bc00aa77595c03af7d68876ceb74ef77 \ rmd160 f03a3ec9775d92d65b43c6a651570a4d38b45f0a \ sha256 897a6e838319b4bf648a574afb6cabcb17d0488f8c7195100d48d872419f4457 \ size 377333 if {${name} ne ${subport}} { depends_lib-append path:lib/libssl.dylib:openssl port:py${python.version}-setuptools patchfiles patch-setup.cfg.diff post-patch { if {[variant_isset postgresql11]} { reinplace \ s|@PG_CONFIG@|${prefix}/lib/postgresql11/bin/pg_config|g \ ${worksrcpath}/setup.cfg } if {[variant_isset postgresql10]} { reinplace \ s|@PG_CONFIG@|${prefix}/lib/postgresql10/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 postgresql11 conflicts postgresql94 \ postgresql95 postgresql96 \ description "Build using postgresql v11" { depends_lib-append port:postgresql11 } variant postgresql10 conflicts postgresql94 \ postgresql95 postgresql96 postgresql11 \ description "Build using postgresql v10" { depends_lib-append port:postgresql10 } variant postgresql94 conflicts postgresql10 \ postgresql95 postgresql96 postgresql11 \ description "Build using postgresql v9.4" { depends_lib-append port:postgresql94 } variant postgresql95 conflicts postgresql10 \ postgresql94 postgresql96 postgresql11 \ description "Build using postgresql v9.5" { depends_lib-append port:postgresql95 } variant postgresql96 conflicts postgresql10 \ postgresql94 postgresql95 postgresql11 \ description "Build using postgresql v9.6" { depends_lib-append port:postgresql96 } if { ![variant_isset postgresql10] && ![variant_isset postgresql94] && ![variant_isset postgresql95] && ![variant_isset postgresql96] && ![variant_isset postgresql11] } { default_variants +postgresql11 } livecheck.type none } else { livecheck.type pypi } universal_variant no