# $Id: Portfile 79419 2011-06-13 07:05:31Z ryandesign@macports.org $

PortSystem          1.0
PortGroup           python25 1.0

name                bkchem
version             0.13.0
categories          science python
platforms           darwin
maintainers         nomaintainer
supported_archs     noarch
license             GPL-2+

description         Free chemical drawing program.
long_description    Free chemical drawing program written in Python by Beda \
                    Kosata.

homepage            http://bkchem.zirael.org/
master_sites        ${homepage}download/

checksums           sha1    ab38ba090682f36b1f34c7805f888c5c92e75186 \
                    rmd160  d6fba65d2c4cb58f9d9c3f6a4e8e850e2338ec8e

depends_lib-append  port:py25-tkinter
patchfiles          patch-setup.py.diff

post-patch {
    reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/setup.py
    reinplace "s|__PYTHON__|${python.bin}|g" ${worksrcpath}/setup.py
    reinplace "s|__PYTHON_PKGD__|${python.pkgd}|g" ${worksrcpath}/setup.py
}

livecheck.type      regex
livecheck.url       ${homepage}download_en.html
livecheck.regex     ${name}-(\[0-9.\]+)${extract.suffix}
