1 | # -*- 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 |
---|
2 | # $Id$ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup python26 1.0 |
---|
6 | |
---|
7 | name psycopg2 |
---|
8 | version 2.0.9 |
---|
9 | categories databases |
---|
10 | maintainers snc openmaintainer |
---|
11 | description A python DBAPI-2.0 ompliant database adapter for postgresql |
---|
12 | long_description Psycopg2 is a postgresql database adapter for python. \ |
---|
13 | It's fully compliant to pythons DBAPI-2.0. psycopg is \ |
---|
14 | designed for heavily multi-threaded applications \ |
---|
15 | featuring connection pooling. |
---|
16 | homepage http://www.initd.org/software/initd/psycopg/ |
---|
17 | |
---|
18 | platforms darwin freebsd |
---|
19 | depends_lib-append port:openssl |
---|
20 | |
---|
21 | master_sites http://initd.org/pub/software/psycopg/ \ |
---|
22 | http://initd.org/pub/software/psycopg/PSYCOPG-2-0/ |
---|
23 | |
---|
24 | checksums md5 885e5bd372afafd14cfd914b000462e7 \ |
---|
25 | sha1 d6aca4b96b69207a795934623de60e9c9ce32378 \ |
---|
26 | rmd160 3194fbae1c69a3734e4db91e21db4b688de1d630 |
---|
27 | |
---|
28 | pre-patch { |
---|
29 | if {![variant_isset postgresql83] && ![variant_isset postgresql82]} { |
---|
30 | return -code error \ |
---|
31 | "You have to choose either +postgresql82 or +postgresql83" |
---|
32 | } |
---|
33 | } |
---|
34 | patchfiles patch-setup.cfg.diff |
---|
35 | |
---|
36 | |
---|
37 | variant postgresql82 description "Build using postgresql v8.2" { |
---|
38 | depends_lib-append port:postgresql82 |
---|
39 | |
---|
40 | post-patch { |
---|
41 | reinplace \ |
---|
42 | s|@PG_CONFIG@|${prefix}/lib/postgresql82/bin/pg_config|g \ |
---|
43 | ${worksrcpath}/setup.cfg |
---|
44 | } |
---|
45 | } |
---|
46 | |
---|
47 | variant postgresql83 description "Build using postgresql v8.3" { |
---|
48 | depends_lib-append port:postgresql83 |
---|
49 | |
---|
50 | post-patch { |
---|
51 | reinplace \ |
---|
52 | s|@PG_CONFIG@|${prefix}/lib/postgresql83/bin/pg_config|g \ |
---|
53 | ${worksrcpath}/setup.cfg |
---|
54 | } |
---|
55 | } |
---|