Permalink
Fetching contributors…
Cannot retrieve contributors at this time
124 lines (98 sloc) 4.2 KB
# -*- 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.7.6.1
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 4e353b92f35ef597e14868d8a47a2df9 \
rmd160 e52d3a6e31a66e38c609f566bf18a5ab5c84956d \
sha256 27959abe64ca1fc6d8cd11a71a1f421d8287831a3262bd4cacd43bbf43cc3c82 \
size 427374
if {${name} ne ${subport}} {
depends_lib-append path:lib/libssl.dylib:openssl
patchfiles patch-setup.cfg.diff
post-patch {
if {[variant_isset postgresql10]} {
reinplace \
s|@PG_CONFIG@|${prefix}/lib/postgresql10/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 postgresql10 conflicts postgresql92 postgresql93 postgresql94 \
postgresql95 postgresql96 \
description "Build using postgresql v10.1" {
depends_lib-append port:postgresql10
}
variant postgresql92 conflicts postgresql10 postgresql93 postgresql94 \
postgresql95 postgresql96 \
description "Build using postgresql v9.2" {
depends_lib-append port:postgresql92
}
variant postgresql93 conflicts postgresql10 postgresql92 postgresql94 \
postgresql95 postgresql96 \
description "Build using postgresql v9.3" {
depends_lib-append port:postgresql93
}
variant postgresql94 conflicts postgresql10 postgresql92 postgresql93 \
postgresql95 postgresql96 \
description "Build using postgresql v9.4" {
depends_lib-append port:postgresql94
}
variant postgresql95 conflicts postgresql10 postgresql92 postgresql93 \
postgresql94 postgresql96 \
description "Build using postgresql v9.5" {
depends_lib-append port:postgresql95
}
variant postgresql96 conflicts postgresql10 postgresql92 postgresql93 \
postgresql94 postgresql95 \
description "Build using postgresql v9.6" {
depends_lib-append port:postgresql96
}
if {
![variant_isset postgresql10] && ![variant_isset postgresql92] &&
![variant_isset postgresql93] && ![variant_isset postgresql94] &&
![variant_isset postgresql95] && ![variant_isset postgresql96]
} {
default_variants +postgresql10
}
livecheck.type none
} else {
livecheck.type pypi
}