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

Contents of /net-misc/mosh/mosh-1.2.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Tue Oct 30 00:28:06 2012 UTC (23 months, 3 weeks ago) by xmw
Branch: MAIN
Changes since 1.5: +7 -1 lines
Fix bash-comp paths (bug 440124, thanks Marcin Mirosław)

(Portage version: 2.1.11.31/cvs/Linux x86_64, signed Manifest commit with key 62EEF090)

1 # Copyright 1999-2012 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.2.ebuild,v 1.5 2012/08/21 14:17:21 johu Exp $
4
5 EAPI=4
6
7 inherit autotools vcs-snapshot
8
9 DESCRIPTION="Mobile shell that supports roaming and intelligent local echo"
10 HOMEPAGE="http://mosh.mit.edu"
11 SRC_URI="https://github.com/keithw/${PN}/tarball/${P} -> ${P}.tar.gz"
12
13 LICENSE="GPL-3"
14 SLOT="0"
15 KEYWORDS="amd64 ~mips ppc x86"
16 IUSE="bash-completion +client examples +mosh-hardening +server ufw +utempter"
17 REQUIRED_USE="|| ( client server )
18 examples? ( client )"
19
20 RDEPEND="dev-libs/protobuf
21 sys-libs/ncurses:5
22 virtual/ssh
23 client? ( dev-lang/perl
24 dev-perl/IO-Tty )
25 utempter? ( sys-libs/libutempter )"
26 DEPEND="${RDEPEND}
27 virtual/pkgconfig"
28
29 src_prepare() {
30 eautoreconf
31 }
32
33 src_configure() {
34 econf \
35 $(use_enable test tests) \
36 $(use_enable bash-completion completion) \
37 $(use_enable client) \
38 $(use_enable server) \
39 $(use_enable examples) \
40 $(use_enable ufw) \
41 $(use_enable mosh-hardening hardening) \
42 $(use_with utempter)
43 }
44
45 src_compile() {
46 emake V=1
47 }
48
49 src_test() {
50 einfo "running test encrypt-decrypt"
51 ./src/tests/encrypt-decrypt -q || die
52 einfo "running test ocb-aes"
53 ./src/tests/ocb-aes -q || die
54 }
55
56 src_install() {
57 default
58
59 for myprog in $(find src/examples -type f -perm /0111) ; do
60 newbin ${myprog} ${PN}-$(basename ${myprog})
61 elog "${myprog} installed as ${PN}-$(basename ${myprog})"
62 done
63
64 if use bash-completion ; then
65 insinto /usr/share/bash-completion
66 doins "${D}"/etc/bash_completion.d/mosh
67 rm -rf "${D}"/etc/bash_completion.d
68 fi
69 }

  ViewVC Help
Powered by ViewVC 1.1.20