source: trunk/dports/python/py26-pgsql/Portfile @ 76953

Last change on this file since 76953 was 76953, checked in by blb@…, 10 years ago

Numerous ports: add license field

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