# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header:  $

EAPI=5

PYTHON_COMPAT=( python3_3 python3_4 )

inherit mercurial distutils-r1

DESCRIPTION="A distant Gentoo synchronizer helper"
HOMEPAGE="http://tuna.lyua.org/syndgen/"
# SRC_URI="http://tuna.lyua.org/downloads/${P}.tar.bz2"
SRC_URI=""

LICENSE="GPL-3"
SLOT="0"
KEYWORDS=""
IUSE=""

DEPEND="dev-python/setuptools[$PYTHON_USEDEP]
	dev-python/nose[$PYTHON_USEDEP]"
RDEPEND="net-misc/rsync net-misc/openssh app-portage/gentoolkit"

EHG_REPO_URI="https://hg.geekorum.com/syndgen"

[[ "${PV}" != "9999" ]] && EHG_REVISION="v${PV}"

python_install_all()
{
	distutils-r1_python_install_all
	doman doc/syndgen.1
}

python_test(){
	esetup.py nosetests
}
