# Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ EAPI=5 PYTHON_COMPAT=( python{2_7,3_3,3_4,3_5} ) PYTHON_REQ_USE="ncurses" inherit distutils-r1 git-r3 DESCRIPTION="A ncurses-based status monitor for Tor relays" HOMEPAGE="http://www.atagar.com/arm/" SRC_URI="" EGIT_REPO_URI="https://git.torproject.org/nyx.git" LICENSE="GPL-3" SLOT="0" KEYWORDS="" IUSE="test" DEPEND="test? ( dev-python/mock[${PYTHON_USEDEP}] ) dev-python/setuptools[${PYTHON_USEDEP}]" RDEPEND=">=net-libs/stem-1.2.2_p20140718[${PYTHON_USEDEP}] net-vpn/tor" python_prepare_all() { distutils-r1_python_prepare_all } python_install() { distutils-r1_python_install # Workaround until setup.py is fixed upstream # python_moduleinto nyx # python_domodule nyx/config # python_replicate_script "${ED}"/usr/bin/run_arm } python_install_all() { distutils-r1_python_install_all } python_test() { ${PYTHON} run_tests.py || die } pkg_postinst() { elog "Some graphing data issues have been noted in testing" elog "when run as root. It is not recommended to run arm as" elog "root until those issues have been isolated and fixed." elog elog "Trouble with graphs under app-misc/screen? Try:" elog 'TERM="rxvt-unicode" arm' }