source: trunk/dports/python/py-pgsql/Portfile

Last change on this file was 130610, checked in by larryv@…, 3 years ago

py{24,25}-pgsql: Replace with py27

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
1# $Id: Portfile 130610 2015-01-02 01:31:57Z ryandesign@macports.org $
2
3PortSystem 1.0
4PortGroup python 1.0
5
6name                    py-pgsql
7version                 2.5.1
8revision                3
9categories-append       databases
10license                 Permissive
11platforms               darwin
12maintainers             geeklair.net:dluke openmaintainer
13description             python DB-API 2.0 compliant interface to postgresql
14long_description        pyPgSQL is a package of two modules that provide a \
15                                Python DB-API 2.0 compliant interface to PostgreSQL \
16                                databases. The first module, libpq, exports the \
17                                PostgreSQL C API to Python. This module is written in \
18                                C and can be compiled into Python or can be \
19                                dynamically loaded on demand. The second module, \
20                                PgSQL, provides the DB-API 2.0 compliant interface and \
21                                support for various PostgreSQL data types, such as \
22                                INT8, NUMERIC, MONEY, BOOL, ARRAYS, etc.
23
24homepage                http://pypgsql.sourceforge.net/
25master_sites    sourceforge:pypgsql
26distname                pyPgSQL-${version}
27checksums               sha1 ae286d2b0b0e6896223430887dd244e9eeef705b
28
29python.versions 26 27
30
31if {${name} ne ${subport}} {
32    depends_lib-append  port:py${python.version}-mx-base
33
34    post-destroot {
35        xinstall -m 644 -W ${worksrcpath} Announce ChangeLog README \
36            README.html ${destroot}${prefix}/share/doc/${subport}
37        xinstall -m 644 -W ${worksrcpath}/examples basic.py demo1a.py \
38            demo1b.py demo2a.py demo2b.py \
39            ${destroot}${prefix}/share/doc/${subport}/examples
40    }
41
42    variant postgresql82 conflicts postgresql83 postgresql84 postgresql90 description {Use with PostgreSQL 8.2} {
43        depends_lib-append  port:postgresql82
44        build.env           PATH="${prefix}/lib/postgresql82/bin:$env(PATH)"
45        destroot.env        [option build.env]
46    }
47
48    variant postgresql83 conflicts postgresql82 postgresql84 postgresql90 description {Use with PostgreSQL 8.3} {
49       depends_lib-append   port:postgresql83
50       build.env            PATH="${prefix}/lib/postgresql83/bin:$env(PATH)"
51       destroot.env         [option build.env]
52    }
53
54    variant postgresql84 conflicts postgresql82 postgresql83 postgresql90 description {Use with PostgreSQL 8.4} {
55       depends_lib-append   port:postgresql84
56       build.env            PATH="${prefix}/lib/postgresql84/bin:$env(PATH)"
57       destroot.env         [option build.env]
58    }
59
60    variant postgresql90 conflicts postgresql82 postgresql83 postgresql84 description {Use with PostgreSQL 9.0} {
61       depends_lib-append   port:postgresql90
62       build.env            PATH="${prefix}/lib/postgresql90/bin:$env(PATH)"
63       destroot.env         [option build.env]
64    }
65
66    if {![variant_isset postgresql82] && ![variant_isset postgresql83] && ![variant_isset postgresql90]} {
67       default_variants   +postgresql84
68    }
69}
Note: See TracBrowser for help on using the repository browser.