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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Wed May 23 08:38:15 2012 UTC (7 years, 6 months ago) by xmw
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
Version bump to address bug 417207, remove all mentioned version.

(Portage version: 2.1.10.62/cvs/Linux x86_64)

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-r1.ebuild,v 1.5 2012/05/05 03:20:43 jdhore Exp $
4
5 EAPI=4
6
7 inherit autotools eutils linux-info toolchain-funcs
8
9 DESCRIPTION="Mobile shell that supports roaming and intelligent local echo"
10 HOMEPAGE="http://mosh.mit.edu"
11 SRC_URI="https://github.com/downloads/keithw/${PN}/${P}.tar.gz"
12
13 LICENSE="GPL-3"
14 SLOT="0"
15 KEYWORDS="~amd64 ~x86"
16 IUSE="+client examples +server skalibs +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 skalibs? ( dev-libs/skalibs )
26 utempter? ( sys-libs/libutempter )"
27 DEPEND="${RDEPEND}
28 virtual/pkgconfig"
29
30 pkg_setup() {
31 if ! use skalibs ; then
32 if kernel_is -lt 2 6 27 ; then
33 ewarn
34 ewarn "Consider activating the skalibs USE flag, iff the build fauls"
35 ewarn
36 fi
37 fi
38 }
39
40 src_prepare() {
41 einfo remove bundled skalibs
42 rm -r third || die
43 if use skalibs ; then
44 epatch "${FILESDIR}"/${P}-shared-skalibs.patch
45 eautoreconf
46 epatch "${FILESDIR}"/${P}-shared-skalibs-fix-configure.patch
47 else
48 epatch "${FILESDIR}"/${PF}-remove-skalibs.patch
49 eautoreconf
50 fi
51 }
52
53 src_configure() {
54 local my_args=""
55 if use skalibs ; then
56 my_args=" --with-skalibs="${EPREFIX}
57 my_args+=" --with-skalibs-include="${EPREFIX}/usr/include/skalibs
58 my_args+=" --with-skalibs-libdir="${EPREFIX}/usr/$(get_libdir)/skalibs
59 fi
60 econf ${my_args} \
61 $(use_enable client) \
62 $(use_enable server) \
63 $(use_enable examples) \
64 $(use_with utempter)
65 }
66
67 src_compile() {
68 emake V=1
69 }
70
71 src_install() {
72 default
73
74 for myprog in $(find src/examples -type f -perm /0111) ; do
75 newbin ${myprog} ${PN}-$(basename ${myprog})
76 elog "${myprog} installed as ${PN}-$(basename ${myprog})"
77 done
78 }

  ViewVC Help
Powered by ViewVC 1.1.20