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

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

py-urlgrabber : wrap body correctly to activate only when choosing a subport

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