# $Id: Portfile 87583 2011-11-26 22:50:44Z blb@macports.org $

PortSystem          1.0
PortGroup           python 1.0
name                py-bitstring
version             2.2.0
revision            1
categories-append   devel
license             MIT
maintainers         nomaintainer
description         Module to simplify handling of binary data
long_description \
   bitstring is a pure Python module that makes the creation, manipulation \
   and analysis of binary data as simple and natural as possible.

platforms           darwin
supported_archs     noarch

homepage            http://code.google.com/p/python-bitstring/
master_sites        googlecode:python-bitstring
distname            bitstring-${version}
use_zip             yes

checksums           sha1    cd12c16b8d05a98b0e5a7dafc82dcb5891325812 \
                    rmd160  0ef2c6b67f5914a2524f1cd7644b40f8ba421729

if {${name} != ${subport}} {
   post-destroot {
      xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}
      xinstall -m 644 -W ${worksrcpath} README.txt release_notes.txt \
         ${destroot}${prefix}/share/doc/${subport}
      xinstall -m 644 ${worksrcpath}/doc/bitstring_manual.pdf \
         ${destroot}${prefix}/share/doc/${subport}
   }
}

python.default_version   27
python.versions     26 27 31 32

