1 |
# Copyright 1999-2011 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/net-misc/putty/putty-0.60_p20100131.ebuild,v 1.10 2011/03/22 20:47:55 ranger Exp $ |
4 |
|
5 |
EAPI="2" |
6 |
|
7 |
inherit autotools eutils toolchain-funcs |
8 |
|
9 |
DESCRIPTION="UNIX port of the famous Telnet and SSH client" |
10 |
HOMEPAGE="http://www.chiark.greenend.org.uk/~sgtatham/putty/" |
11 |
SRC_URI="mirror://gentoo/${P}.tar.gz" |
12 |
LICENSE="MIT" |
13 |
|
14 |
SLOT="0" |
15 |
KEYWORDS="alpha amd64 ppc sparc x86" |
16 |
IUSE="doc ipv6 kerberos" |
17 |
|
18 |
RDEPEND=" |
19 |
x11-libs/gtk+:2 |
20 |
kerberos? ( virtual/krb5 ) |
21 |
!net-misc/pssh |
22 |
" |
23 |
DEPEND="${RDEPEND} dev-lang/perl" |
24 |
|
25 |
S="${WORKDIR}/putty-0.60-2010-01-31" |
26 |
|
27 |
src_prepare() { |
28 |
cd "${S}"/unix || die "cd unix failed" |
29 |
sed \ |
30 |
-i configure.ac \ |
31 |
-e '/^AM_PATH_GTK(/d' \ |
32 |
-e 's|-Wall -Werror||g' || die "sed failed" |
33 |
eautoreconf |
34 |
} |
35 |
|
36 |
src_configure() { |
37 |
cd "${S}"/unix || die "cd failed" |
38 |
econf \ |
39 |
$(use_with kerberos gssapi) \ |
40 |
|| die "econf failed" |
41 |
} |
42 |
|
43 |
src_compile() { |
44 |
cd "${S}"/unix || die "cd unix failed" |
45 |
emake \ |
46 |
$(use ipv6 || echo COMPAT=-DNO_IPV6) \ |
47 |
VER=-DSNAPSHOT=${PV} \ |
48 |
|| die "emake failed" |
49 |
} |
50 |
|
51 |
src_install() { |
52 |
if use doc; then |
53 |
dodoc doc/puttydoc.txt || die "dodoc failed" |
54 |
dohtml doc/*.html || die "dohtml failed" |
55 |
fi |
56 |
|
57 |
cd "${S}"/unix |
58 |
emake DESTDIR="${D}" install || die "install failed" |
59 |
|
60 |
# install desktop file provided by Gustav Schaffter in #49577 |
61 |
doicon "${FILESDIR}"/${PN}.xpm |
62 |
make_desktop_entry "putty" "PuTTY" putty "Network" |
63 |
} |