source: trunk/dports/python/py-urlgrabber/Portfile @ 97528

Last change on this file since 97528 was 97528, checked in by michaelld@…, 8 years ago

py-urlgrabber : set default python version to avoid bad dependency; set livecheck in outside scope only.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.4 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 97528 2012-09-08 01:56:57Z michaelld@macports.org $
3
4PortSystem          1.0
5PortGroup           python 1.0
6
7name                py-urlgrabber
8version             3.9.1
9python.versions     24 25 26 27
10python.default_version 27
11maintainers         afb stromnov openmaintainer
12
13description         High-level cross-protocol url-grabber
14
15long_description    Urlgrabber is a high-level cross-protocol url-grabber for python \
16                    supporting HTTP, FTP and file locations. Features include keepalive, \
17                    byte ranges, throttling, authentication, proxies and more.
18
19platforms           darwin
20
21homepage            http://urlgrabber.baseurl.org/
22master_sites        http://urlgrabber.baseurl.org/download/
23distname            urlgrabber-${version}
24
25checksums           md5     00c8359bf71062d0946bacea521f80b4 \
26                    sha1    937c7ad3177539c337d4010e0175b2c7bd874938 \
27                    rmd160  377196ddb01f6cd4903e063e8e9cba40a0f80fff
28
29if {$subport != $name} {
30
31    depends_lib-append  port:py${python.version}-curl
32
33    post-patch {
34        reinplace "s|/usr/bin/python|${python.bin}|g" \
35            ${worksrcpath}/scripts/urlgrabber
36    }
37
38    livecheck.type      none
39
40} else {
41
42    livecheck.type      regex
43    livecheck.url       ${master_sites}
44    livecheck.regex     "urlgrabber-(\\d+(?:\\.\\d+)*)${extract.suffix}"
45
46}
Note: See TracBrowser for help on using the repository browser.