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: Portfile 47901 2009-03-09 20:44:20Z jmr@macports.org $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup python26 1.0 |
---|
6 | |
---|
7 | name py26-psycopg2 |
---|
8 | version 2.0.9 |
---|
9 | categories-append 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 | distname psycopg2-${version} |
---|
22 | master_sites http://initd.org/pub/software/psycopg/ |
---|
23 | |
---|
24 | checksums md5 885e5bd372afafd14cfd914b000462e7 \ |
---|
25 | sha1 d6aca4b96b69207a795934623de60e9c9ce32378 \ |
---|
26 | rmd160 3194fbae1c69a3734e4db91e21db4b688de1d630 |
---|
27 | |
---|
28 | patchfiles patch-setup.cfg.diff |
---|
29 | |
---|
30 | |
---|
31 | if {![variant_isset postgresql82] && ![variant_isset postgresql83]} { |
---|
32 | default_variants +postgresql83 |
---|
33 | } |
---|
34 | |
---|
35 | variant postgresql82 conflicts postgresql83 description "Build using postgresql v8.2" { |
---|
36 | depends_lib-append port:postgresql82 |
---|
37 | |
---|
38 | post-patch { |
---|
39 | reinplace \ |
---|
40 | s|@PG_CONFIG@|${prefix}/lib/postgresql82/bin/pg_config|g \ |
---|
41 | ${worksrcpath}/setup.cfg |
---|
42 | } |
---|
43 | } |
---|
44 | |
---|
45 | variant postgresql83 conflicts postgresql82 description "Build using postgresql v8.3" { |
---|
46 | depends_lib-append port:postgresql83 |
---|
47 | |
---|
48 | post-patch { |
---|
49 | reinplace \ |
---|
50 | s|@PG_CONFIG@|${prefix}/lib/postgresql83/bin/pg_config|g \ |
---|
51 | ${worksrcpath}/setup.cfg |
---|
52 | } |
---|
53 | } |
---|