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