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

Last change on this file was 150724, checked in by petr@…, 16 months ago

various py-* ports, nomaintainer: retire py26 subport for ports without dependents

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 KB
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 150724 2016-07-27 20:07:24Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           python 1.0
6
7name                    py-pygresql
8version                 4.1.1
9license                 Permissive
10categories-append       databases
11platforms               darwin
12maintainers             nomaintainer
13
14description             Python module that interfaces to a PostgreSQL database
15
16long_description        PyGreSQL is an open-source Python module that \
17                        interfaces to a PostgreSQL database. It embeds the \
18                        PostgreSQL query library to allow easy use of the \
19                        powerful PostgreSQL features from a Python script.
20
21homepage                http://www.pygresql.org/
22master_sites            ${homepage}files/ freebsd
23distname                PyGreSQL-${version}
24extract.suffix          .tgz
25
26checksums               rmd160  5cd30aceb7cb82acb2e3a36045be30b21112dd3f \
27                        sha256  bb14092f97c66ed13b8faf71471b8c156c6b46d915858447f3a63e9abe48eef7
28
29python.versions         27
30
31if {${name} ne ${subport}} {
32    depends_lib-append  port:postgresql92
33
34    post-patch {
35        reinplace "s|\'pg_config|\'${prefix}/lib/postgresql92/bin/pg_config|g" \
36            ${worksrcpath}/setup.py
37    }
38
39    post-destroot {
40        set docdir ${prefix}/share/doc/${subport}
41        xinstall -d -m 755 ${destroot}${docdir}
42        xinstall -m 644 {*}[glob ${worksrcpath}/docs/*] {*}[glob ${worksrcpath}/tutorial/*] ${destroot}${docdir}
43    }
44}
45
46if {${name} eq ${subport}} {
47    livecheck.type      regex
48    livecheck.url       ${homepage}announce.html
49    livecheck.regex     PyGreSQL version (4\.\[0-9\.\]+)
50} else {
51    livecheck.type      none
52}
Note: See TracBrowser for help on using the repository browser.