Ticket #18586: Portfile.5

File Portfile.5, 1.8 KB (added by nerdling (Jeremy Lavergne), 16 years ago)

Switched pre-patch phase to defaults_variant

Line 
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
4PortSystem          1.0
5PortGroup           python26 1.0
6
7name                psycopg2
8version             2.0.9
9categories          databases
10maintainers         snc openmaintainer
11description         A python DBAPI-2.0 ompliant database adapter for postgresql
12long_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.
16homepage            http://www.initd.org/software/initd/psycopg/
17
18platforms           darwin freebsd
19depends_lib-append  port:openssl
20
21master_sites        http://initd.org/pub/software/psycopg/ \
22                    http://initd.org/pub/software/psycopg/PSYCOPG-2-0/
23
24checksums           md5 885e5bd372afafd14cfd914b000462e7 \
25                    sha1 d6aca4b96b69207a795934623de60e9c9ce32378 \
26                    rmd160 3194fbae1c69a3734e4db91e21db4b688de1d630
27
28patchfiles          patch-setup.cfg.diff
29
30
31default_variants    +postgresql83
32
33variant postgresql82 conflicts postgresql83 description "Build using postgresql v8.2" {
34    depends_lib-append  port:postgresql82
35   
36    post-patch {
37        reinplace \
38            s|@PG_CONFIG@|${prefix}/lib/postgresql82/bin/pg_config|g \
39            ${worksrcpath}/setup.cfg
40    }
41}
42
43variant postgresql83 conflicts postgresql82 description "Build using postgresql v8.3" {
44    depends_lib-append port:postgresql83
45   
46    post-patch {
47        reinplace \
48            s|@PG_CONFIG@|${prefix}/lib/postgresql83/bin/pg_config|g \
49            ${worksrcpath}/setup.cfg
50    }
51}