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

Last change on this file was 127464, checked in by stromnov@…, 3 years ago

py{24,25,26}-urlgrabber: Replace with py27-urlgrabber

  • 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 127464 2014-10-28 19:07:06Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           python 1.0
6
7name                py-urlgrabber
8version             3.10.1
9revision            0
10categories-append   net
11platforms           darwin
12license             LGPL-2.1+
13supported_archs     noarch
14
15python.versions     27
16
17maintainers         afb stromnov openmaintainer
18
19description         High-level cross-protocol url-grabber
20
21long_description    Urlgrabber is a high-level cross-protocol url-grabber for python \
22                    supporting HTTP, FTP and file locations. Features include keepalive, \
23                    byte ranges, throttling, authentication, proxies and more.
24
25homepage            http://urlgrabber.baseurl.org/
26master_sites        http://urlgrabber.baseurl.org/download/
27
28distname            urlgrabber-${version}
29
30checksums           rmd160  f1a667bb2e1f79545641c9500587626412c9e43e \
31                    sha256  06b13ff8d527dba3aee04069681b2c09c03117592d5485a80ae4b807cdf33476
32
33if {${name} ne ${subport}} {
34    depends_lib-append  port:py${python.version}-curl
35
36    post-patch {
37        reinplace "s|/usr/bin/python|${python.bin}|g" \
38            ${worksrcpath}/scripts/urlgrabber
39    }
40
41    livecheck.type      none
42} else {
43    livecheck.type      regex
44    livecheck.url       ${master_sites}
45    livecheck.regex     {urlgrabber-(\d+(?:\.\d+)*)\.[tz]}
46}
Note: See TracBrowser for help on using the repository browser.