/[gentoo-x86]/net-misc/mosh/mosh-1.2.5-r1.ebuild
Gentoo

Contents of /net-misc/mosh/mosh-1.2.5-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Fri Jul 31 07:59:15 2015 UTC (2 years, 2 months ago) by monsieurp
Branch: MAIN
CVS Tags: HEAD
EAPI 5 bump.

Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 93491BB8)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/mosh/mosh-1.2.5.ebuild,v 1.1 2015/07/26 18:16:50 xmw Exp $
4
5 EAPI=5
6
7 inherit autotools bash-completion-r1 eutils vcs-snapshot
8
9 DESCRIPTION="Mobile shell that supports roaming and intelligent local echo"
10 HOMEPAGE="http://mosh.mit.edu"
11 SRC_URI="http://mosh.mit.edu/${P}.tar.gz"
12
13 LICENSE="GPL-3"
14 SLOT="0"
15 KEYWORDS="~amd64 ~arm ~mips ~ppc ~x86 ~amd64-linux ~arm-linux ~x86-linux ~x64-macos"
16 IUSE="+client examples +mosh-hardening +server ufw +utempter"
17
18 REQUIRED_USE="|| ( client server )
19 examples? ( client )"
20
21 RDEPEND="dev-libs/protobuf
22 sys-libs/ncurses:5
23 virtual/ssh
24 client? (
25 dev-lang/perl
26 dev-perl/IO-Tty
27 )
28 utempter? (
29 sys-libs/libutempter
30 )"
31
32 DEPEND="${RDEPEND}
33 virtual/pkgconfig"
34
35 # [0] - avoid sandbox-violation calling git describe in Makefile
36 PATCHES=(
37 "${FILESDIR}"/${P}-git-version.patch
38 )
39
40 src_prepare() {
41 # apply patches.
42 epatch ${PATCHES[@]}
43
44 eautoreconf
45 }
46
47 src_configure() {
48 econf \
49 --disable-completion \
50 $(use_enable client) \
51 $(use_enable server) \
52 $(use_enable examples) \
53 $(use_enable ufw) \
54 $(use_enable mosh-hardening hardening) \
55 $(use_with utempter)
56 }
57
58 src_compile() {
59 emake V=1
60 }
61
62 src_install() {
63 default
64
65 for myprog in $(find src/examples -type f -perm /0111) ; do
66 newbin ${myprog} ${PN}-$(basename ${myprog})
67 elog "${myprog} installed as ${PN}-$(basename ${myprog})"
68 done
69
70 # bug 477384
71 dobashcomp conf/bash-completion/completions/mosh
72 }

  ViewVC Help
Powered by ViewVC 1.1.20