# $Id: Portfile 66968 2010-04-27 04:49:45Z ryandesign@macports.org $

PortSystem                  1.0
PortGroup                   python26 1.0

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

description                 a Python interface to the Class Library for \
                            Numbers (CLN)

long_description            ${my_name} is ${description}.

distname                    ${my_name}-${version}

checksums                   md5     f65404433484707f7fb5a50416de6acf \
                            sha1    13d22216539b157d0369f44483c30390495c6a63 \
                            rmd160  1e86c3df9ab44c7a777c637f274a736c81e4b231

depends_lib-append          port:cln

# cln is not universal
universal_variant           no

build.env                   CPPFLAGS="${configure.cppflags}"

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

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