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 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup python26 1.0 |
---|
6 | |
---|
7 | name py26-psycopg2 |
---|
8 | version 2.2.2 |
---|
9 | categories-append databases |
---|
10 | license GPLv2+ |
---|
11 | maintainers snc openmaintainer |
---|
12 | description A python DBAPI-2.0 ompliant database adapter for postgresql |
---|
13 | long_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. |
---|
17 | homepage http://www.initd.org/software/initd/psycopg/ |
---|
18 | |
---|
19 | platforms darwin freebsd |
---|
20 | depends_lib-append port:openssl |
---|
21 | |
---|
22 | distname psycopg2-${version} |
---|
23 | master_sites http://initd.org/pub/software/psycopg/ |
---|
24 | |
---|
25 | checksums sha1 850f6bfa2bf986376b45e49334b7f153a33e4960 \ |
---|
26 | rmd160 df51d6bfe81a603cfac54afe2c5eb07de165c0ab |
---|
27 | |
---|
28 | patchfiles patch-setup.cfg.diff |
---|
29 | |
---|
30 | |
---|
31 | if {![variant_isset postgresql83] && ![variant_isset postgresql84] && ![variant_isset postgresql90]} { |
---|
32 | default_variants +postgresql90 |
---|
33 | } |
---|
34 | |
---|
35 | variant 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 | |
---|
45 | variant 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 | |
---|
55 | variant 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 | |
---|
65 | livecheck.url ${master_sites} |
---|
66 | livecheck.regex psycopg2-(\\d+\\.\\d+(\\.\\d+)?)\\.tar\\.gz |
---|