Ticket #18586: Portfile.6

File Portfile.6, 1.9 KB (added by nerdling (Jeremy Lavergne), 16 years ago)

fix changes from r47901 (override distname)

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 47901 2009-03-09 20:44:20Z jmr@macports.org $
3
4PortSystem          1.0
5PortGroup           python26 1.0
6
7name                py26-psycopg2
8version             2.0.9
9categories-append   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
21distname            psycopg2-${version}
22master_sites        http://initd.org/pub/software/psycopg/
23
24checksums           md5 885e5bd372afafd14cfd914b000462e7 \
25                    sha1 d6aca4b96b69207a795934623de60e9c9ce32378 \
26                    rmd160 3194fbae1c69a3734e4db91e21db4b688de1d630
27
28patchfiles          patch-setup.cfg.diff
29
30
31if {![variant_isset postgresql82] && ![variant_isset postgresql83]} {
32    default_variants    +postgresql83
33}
34
35variant 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
45variant 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}