# -*- 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 118787 2014-04-11 00:14:15Z sean@macports.org $

PortSystem              1.0
PortGroup               python 1.0
PortGroup               bitbucket 1.0

set realname            crecord
bitbucket.setup         edgimar $realname c44e2c19caaa
name                    py-hg$realname
version                 0.1.20140318

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  c072f20d0fb81837677af3c2eb023d519a4ed509 \
                        sha256  975e52b0ace484b31396ad195c9813d36ee3621e0c36816be615777dadf5f4ee

python.versions         27

if {${name} ne ${subport}} {
    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} =
"

    livecheck.type      none
}
