# $Id: Portfile 79818 2011-06-26 23:12:46Z blb@macports.org $

PortSystem          1.0
PortGroup           python27 1.0
name                py27-bitstring
version             2.2.0
categories-append   devel
license             MIT
maintainers         blb openmaintainer
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

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

checksums           sha1    cd12c16b8d05a98b0e5a7dafc82dcb5891325812 \
                    rmd160  0ef2c6b67f5914a2524f1cd7644b40f8ba421729

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

