# $Id: Portfile 66969 2010-04-27 04:52:00Z 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

universal_variant           no
if {[info exists supported_archs]} {
    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}
