1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 PYTHON_COMPAT=( python2_7 )
7 inherit python-single-r1
9 DESCRIPTION="A set of profiles for the GNU Screen console window manager (app-misc/screen)"
10 HOMEPAGE="http://byobu.co"
11 SRC_URI="https://launchpad.net/${PN}/trunk/${PV}/+download/${P/-/_}.orig.tar.gz"
15 KEYWORDS="~amd64 ~x86"
17 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
19 RDEPEND="${PYTHON_DEPS}
20 $(python_gen_cond_dep '
21 dev-libs/newt[${PYTHON_MULTI_USEDEP}]
23 screen? ( app-misc/screen )
24 !screen? ( app-misc/tmux )"
31 # Set default system backend to screen
33 sed -i -e 's/#\(BYOBU_BACKEND\).*/\1="screen"/' etc/byobu/backend || die
40 # Create symlinks for backends
41 dosym ${PN} /usr/bin/${PN}-screen
42 dosym ${PN} /usr/bin/${PN}-tmux
44 docompress -x /usr/share/doc/${PN}