Ticket #26573: Portfile

File Portfile, 2.3 KB (added by Themanwithoutaplan, 14 years ago)
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: Portfile 69870 2010-07-19 13:27:45Z snc@macports.org $
3
4PortSystem          1.0
5PortGroup           python26 1.0
6
7name                py26-psycopg2
8version             2.2.2
9categories-append   databases
10license             GPLv2+
11maintainers         snc openmaintainer
12description         A python DBAPI-2.0 ompliant database adapter for postgresql
13long_description    Psycopg2 is a postgresql database adapter for python. \
14                    It's fully compliant to pythons DBAPI-2.0. psycopg is \
15                    designed for heavily multi-threaded applications \
16                    featuring connection pooling.
17homepage            http://www.initd.org/software/initd/psycopg/
18
19platforms           darwin freebsd
20depends_lib-append  port:openssl
21
22distname            psycopg2-${version}
23master_sites        http://initd.org/pub/software/psycopg/
24
25checksums           sha1    850f6bfa2bf986376b45e49334b7f153a33e4960 \
26                    rmd160  df51d6bfe81a603cfac54afe2c5eb07de165c0ab
27
28patchfiles          patch-setup.cfg.diff
29
30
31if {![variant_isset postgresql83] && ![variant_isset postgresql84] && ![variant_isset postgresql90]} {
32    default_variants    +postgresql90
33}
34
35variant postgresql83 conflicts postgresql84 postgresql90 description "Build using postgresql v8.3" {
36    depends_lib-append port:postgresql83
37
38    post-patch {
39        reinplace \
40            s|@PG_CONFIG@|${prefix}/lib/postgresql83/bin/pg_config|g \
41            ${worksrcpath}/setup.cfg
42    }
43}
44
45variant postgresql84 conflicts postgresql83 postgresql90 description "Build using postgresql v8.4" {
46    depends_lib-append port:postgresql84
47
48    post-patch {
49        reinplace \
50            s|@PG_CONFIG@|${prefix}/lib/postgresql84/bin/pg_config|g \
51            ${worksrcpath}/setup.cfg
52    }
53}
54
55variant postgresql90 conflicts postgresql83 postgresql84 description "Build using postgresql v9.0" {
56    depends_lib-append port:postgresql90
57
58    post-patch {
59        reinplace \
60            s|@PG_CONFIG@|${prefix}/lib/postgresql90/bin/pg_config|g \
61            ${worksrcpath}/setup.cfg
62    }
63}
64
65livecheck.url       ${master_sites}
66livecheck.regex     psycopg2-(\\d+\\.\\d+(\\.\\d+)?)\\.tar\\.gz