# -*- 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 73761 2010-11-24 12:26:39Z ryandesign@macports.org $

PortSystem                  1.0
PortGroup                   python26 1.0

name                        py26-rpncalc
set my_name                 rpncalc
version                     2.7
platforms                   darwin
maintainers                 ryandesign openmaintainer
license                     GPL-2
homepage                    http://calcrpnpy.sourceforge.net/
master_sites                sourceforge:calcrpnpy

description                 an interpreter for Reverse Polish Notation (RPN) \
                            that easily integrates with the standard Python \
                            interpreter

long_description            ${my_name} is ${description}.

distname                    ${my_name}-${version}

checksums                   md5     92ab71d027e50097505b68fda7341f51 \
                            sha1    f81c5053854c184e6700e2fa2ed9c2a46c72ce2f \
                            rmd160  b7d7f5ae3489e76b8025b6691e0f9785339a1944

supported_archs             noarch

depends_run-append          port:py26-clnum

post-destroot {
    set docdir ${destroot}${prefix}/share/doc/${name}
    xinstall -d ${docdir} ${destroot}${prefix}/share/examples
    xinstall -W ${worksrcpath} \
        COPYING \
        UserManual.html \
        changelog \
        ${docdir}
    copy ${worksrcpath}/examples ${destroot}${prefix}/share/examples/${name}
}

livecheck.type              regex
livecheck.url               http://sourceforge.net/projects/calcrpnpy/files/
livecheck.regex             /${my_name}-(\[0-9.\]+)${extract.suffix}
