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

Last change on this file was 146975, checked in by petr@…, 18 months ago

py-apsw: add py35 subport

  • 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 146975 2016-03-22 18:21:14Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           python 1.0
6
7name                py-apsw
8version             3.7.14.1-r1
9platforms           darwin
10license             zlib
11maintainers         nomaintainer
12
13description         Very thin SQLite 3 wrapper for python
14long_description    APSW provides an SQLite 3 wrapper that provides \
15                    the thinnest layer over SQLite 3 possible. \
16                    Everything you can do from the C API to SQLite 3, \
17                    you can do from Python.  Although APSW looks \
18                    vaguely similar to the DBAPI, it is not compliant \
19                    with that API and instead works the way SQLite 3 does.
20homepage            http://code.google.com/p/apsw/
21
22master_sites        googlecode:apsw
23distname            apsw-${version}
24use_zip             yes
25
26checksums           md5     ae32e46df985b5fbbdbdd17640367711 \
27                    sha1    735f1b1e236055e4f0de286e17e400d7db1f87e7 \
28                    rmd160  91df80878469dbed49c35f5d2704bdcb9cfbe549
29
30python.versions     27 34 35
31
32if {${name} ne ${subport}} {
33    depends_lib-append  port:sqlite3
34
35    post-extract {
36        copy ${filespath}/setup.cfg ${worksrcpath}/setup.cfg
37        reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/setup.cfg
38    }
39
40    post-destroot {
41        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}
42        xinstall -m 644 -W ${worksrcpath}/doc/ apsw.html \
43                ${destroot}${prefix}/share/doc/${subport}
44    }
45
46    livecheck.type  none
47} else {
48    livecheck.type  regex
49    livecheck.url   http://code.google.com/p/apsw/downloads/list
50    livecheck.regex {apsw-([0-9\.]+(-r1)?).zip}
51}
Note: See TracBrowser for help on using the repository browser.