# -*- 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 106911 2013-06-11 14:40:14Z jmr@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-clonedigger
version             1.0.3-beta
license             GPL-3+
maintainers         nomaintainer
description         Clone Digger aimed to detect similar code in Python programs
long_description    Clone Digger is the tool for finding software clones. \
                    Currently only Python language is supported, \
                    Java support will be added soon.
platforms           darwin
supported_archs     noarch
homepage            http://clonedigger.sourceforge.net/
master_sites        http://pypi.python.org/packages/source/c/clonedigger/
distname            clonedigger-${version}
checksums           md5 ac1883622ee2c20a2b91efbf5133b892 \
                    sha1 f5a3854d2f5f0f0b997459d1b0f529e216fecb55 \
                    rmd160 deaf039ca347181959fe54da1b88f6e932b15340

python.versions     25 26

if {$subport == $name} {
    livecheck.type      regex
    livecheck.url       http://pypi.python.org/pypi/clonedigger
    livecheck.regex     "clonedigger-(.+?).tar.gz"
} else {
    depends_build       port:py${python.version}-setuptools
    livecheck.type      none
}
