1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit autotools bash-completion-r1 eutils vcs-snapshot
8 DESCRIPTION="Mobile shell that supports roaming and intelligent local echo"
9 HOMEPAGE="http://mosh.org"
10 SRC_URI="http://mosh.org/${P}.tar.gz"
14 KEYWORDS="~amd64 ~arm ~mips ~ppc ~x86 ~amd64-linux ~arm-linux ~x86-linux ~x64-macos"
15 IUSE="+client examples +mosh-hardening +server ufw +utempter"
36 # [0] - avoid sandbox-violation calling git describe in Makefile.
38 "${FILESDIR}"/${PN}-1.2.5-git-version.patch
50 --disable-completion \
51 $(use_enable client) \
52 $(use_enable server) \
53 $(use_enable examples) \
55 $(use_enable mosh-hardening hardening) \
62 for myprog in $(find src/examples -type f -perm /0111) ; do
63 newbin ${myprog} ${PN}-$(basename ${myprog})
64 elog "${myprog} installed as ${PN}-$(basename ${myprog})"
68 dobashcomp conf/bash-completion/completions/mosh