source: trunk/dports/python/py-backports-lzma/Portfile

Last change on this file was 149215, checked in by stromnov@…, 18 months ago

py-backports-lzma: update to version 0.0.6

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 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 149215 2016-06-06 11:37:02Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           python 1.0
6
7name                py-backports-lzma
8epoch               1
9version             0.0.6
10revision            0
11categories-append   devel
12platforms           darwin
13license             BSD
14supported_archs     noarch
15
16python.versions     27
17
18maintainers         stromnov openmaintainer
19
20description         Backport of Python 3.3's 'lzma' module for XZ/LZMA compressed files.
21long_description    ${description}
22
23homepage            https://github.com/peterjc/backports.lzma
24master_sites        pypi:b/backports.lzma/
25
26distname            backports.lzma-${version}
27
28checksums           rmd160  6ce2fdddb8fa6e16104f6d0d00d1a628e2a407cb \
29                    sha256  c9c97b10fb1941abdd896b9447e3745da59b32750b27c015ddb8eaf3654daaea
30
31if {${name} ne ${subport}} {
32    depends_lib-append  port:py${python.version}-backports \
33                        port:xz
34
35    patchfiles-append   patch-setup.py.diff
36
37    post-patch {
38        reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/setup.py
39    }
40
41    post-destroot {
42        foreach f {__init__.py __init__.pyc __init__.pyo __pycache__} {
43            set fp "${destroot}${python.pkgd}/backports/$f"
44            if {[file exists ${fp}]} {
45                file delete -force ${fp}
46            }
47        }
48    }
49
50    livecheck.type      none
51} else {
52    livecheck.type      regex
53    livecheck.url       https://pypi.python.org/pypi/backports.lzma/json
54    livecheck.regex     {backports\.lzma-(\d+(?:\.\d+)*)\.[tz]}
55}
Note: See TracBrowser for help on using the repository browser.