# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=2 PYTHON_USE_WITH=ncurses inherit python DESCRIPTION="Track parallel merges and display their logs on a split-screen basis" HOMEPAGE="http://proj.mgorny.alt.pl/misc/#portage-jobsmon" SRC_URI="http://dl.mgorny.alt.pl/misc/${P}.py.bz2" LICENSE="BSD" SLOT="0" KEYWORDS="~amd64" IUSE="" RDEPEND="dev-python/pyinotify" src_configure() { python_convert_shebangs $(python_get_version) ${P}.py } src_install() { sitedir=$(python_get_sitedir) exeinto "${sitedir}" newexe ${P}.py ${PN}.py || die # try to create relative symlink local symsitedir=${sitedir} [[ ${sitedir} == /usr/* ]] && symsitedir=../${sitedir#/usr/} dosym "${symsitedir}"/${PN}.py /usr/bin/${PN} || die } pkg_postinst() { python_mod_optimize "${sitedir}"/${PN}.py } pkg_postrm() { python_mod_cleanup }