# -*- 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$

PortSystem              1.0
PortGroup               python 1.0
PortGroup               bitbucket 1.0

set realname            crecord
bitbucket.setup         edgimar $realname 55cf805769eb
name                    py-hg$realname
version                 0.1.20130119

categories-append       devel
platforms               darwin
license                 GPL-2
supported_archs         noarch
maintainers             sean openmaintainer

description             Crecord Extension for Mercurial
long_description        The crecord mercurial extension allows you to \
                        interactively choose \ among the changes you have made (with \
                        line-level granularity), and \ commit only those changes you select.

checksums               rmd160  c95361a072ef568858bae51642d8132432757933 \
                        sha256  6108de919cec2af23f68b696941c1508617f6f15dc0e57a7246cabf711bdb158

python.versions         27

if {$subport != $name} {
    depends_lib         path:bin/hg:mercurial \
                        port:ncurses

    build {}

    destroot {
        xinstall -d ${destroot}${python.pkgd}
        copy ${worksrcpath}/${realname} ${destroot}${python.pkgd}/${realname}
    }

    notes               "
To enable ${realname}, add the following to your ~/.hgrc:

\[extensions\]
${realname} = ${python.pkgd}/${realname}
"

    livecheck.type      none
}
