Ticket #42698: Portfile

File Portfile, 1.4 KB (added by jul_bsd@…, 11 years ago)
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$
3
4PortSystem          1.0
5PortGroup           python 1.0
6
7name                py-cymruservices
8version             1.4
9platforms           darwin
10supported_archs     noarch
11maintainers         nomaintainer
12categories          python security
13license             GPL-3
14description         Python API for the Cymru Services: Bogon Reference, \
15                    IP to ASN Mapping Project, Malware Hash Registry
16long_description    ${description}
17
18homepage            https://pypi.python.org/pypi/cymru-services
19distname            cymru-services-${version}
20master_sites        https://pypi.python.org/packages/source/c/cymru-services/
21
22checksums           rmd160  205508bcd62c8ca2e563576c216016a7d0a72a69 \
23                    sha256  f8d5ceebcbec963ace0ff57069d33077bc71856fa9e9de9661818fc90da92ac5
24
25python.versions     24 25 26 27 33
26python.default_version     27
27
28# BUGS: ip2asn & bogon
29# AttributeError: 'module' object has no attribute 'ip_address'
30# mhr: OK
31patchfiles          patch-cymru-__init__.py.diff
32
33if {${name} ne ${subport}} {
34    depends_run-append  port:py${python.version}-ipaddr port:py${python.version}-adns
35}
36
37livecheck.type     regex
38livecheck.url       ${homepage}
39livecheck.regex     "<a href=\"/pypi/cymru-services/.*?\">(\\d+(?:\\.\\d+)*)</a>"