# -*- 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
# $Id: Portfile 112393 2013-10-22 08:36:40Z ryandesign@macports.org $

PortSystem 1.0
PortGroup python 1.0

name                    py-dpkt
version                 1.8
categories-append       net
license                 BSD
maintainers             nomaintainer
description             python packet creation and parsing library
long_description        dpkt provides fast, simple packet creation and \
                        parsing for python programs, with definitions for the \
                        basic TCP/IP protocols.
platforms               darwin
supported_archs         noarch

homepage                http://code.google.com/p/dpkt/
master_sites            googlecode:dpkt

checksums               rmd160  6c52dd753897ea10b15b9a67ef0303464bbfc7eb \
                        sha256  c56de2f9dc2f4654a356de0f0d458bb7b1c86c374988e8b4f358556f7dbe0507

python.versions         24 25 26 27

if {${name} ne ${subport}} {
    if {${python.version} == 24} {
        # 1.8 does not build with Python 2.4
        # http://code.google.com/p/dpkt/issues/detail?id=116
        version         1.7
        revision        0

        checksums       rmd160  f802d54c4619871a9168a168bd092497ac2f23ff \
                        sha256  185277cd37ce1d65a95d7a8b8652bf33725645ea7ca0086baf3fe643506abe72
    }

    livecheck.type      none
}

distname                dpkt-${version}
