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_p20110905.ebuild,v 1.1 2011/05/10 19:22:14 jer Exp $ |
4 |
|
5 |
EAPI="2" |
6 |
|
7 |
inherit autotools toolchain-funcs |
8 |
|
9 |
MY_P="${P/_p*/}-2011-05-09" |
10 |
|
11 |
DESCRIPTION="UNIX port of the famous Telnet and SSH client" |
12 |
HOMEPAGE="http://www.chiark.greenend.org.uk/~sgtatham/putty/" |
13 |
SRC_URI="http://tartarus.org/~simon/putty-snapshots/${MY_P}.tar.gz" |
14 |
LICENSE="MIT" |
15 |
|
16 |
SLOT="0" |
17 |
KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86" |
18 |
IUSE="doc ipv6 kerberos" |
19 |
|
20 |
RDEPEND=" |
21 |
!net-misc/pssh |
22 |
dev-libs/glib |
23 |
kerberos? ( virtual/krb5 ) |
24 |
x11-libs/gdk-pixbuf |
25 |
x11-libs/gtk+:2 |
26 |
x11-libs/libX11 |
27 |
x11-libs/pango |
28 |
" |
29 |
DEPEND="${RDEPEND} dev-lang/perl" |
30 |
|
31 |
S="${WORKDIR}/${MY_P}" |
32 |
|
33 |
src_prepare() { |
34 |
cd "${S}"/unix || die "cd unix failed" |
35 |
sed \ |
36 |
-i configure.ac \ |
37 |
-e '/^AM_PATH_GTK(/d' \ |
38 |
-e 's|-Wall -Werror||g' || die "sed failed" |
39 |
eautoreconf |
40 |
} |
41 |
|
42 |
src_configure() { |
43 |
cd "${S}"/unix || die "cd failed" |
44 |
econf \ |
45 |
$(use_with kerberos gssapi) \ |
46 |
|| die "econf failed" |
47 |
} |
48 |
|
49 |
src_compile() { |
50 |
cd "${S}"/unix || die "cd unix failed" |
51 |
emake \ |
52 |
$(use ipv6 || echo COMPAT=-DNO_IPV6) \ |
53 |
VER=-DSNAPSHOT=${PV} \ |
54 |
|| die "emake failed" |
55 |
} |
56 |
|
57 |
src_install() { |
58 |
if use doc; then |
59 |
dodoc doc/puttydoc.txt || die "dodoc failed" |
60 |
dohtml doc/*.html || die "dohtml failed" |
61 |
fi |
62 |
|
63 |
cd "${S}"/unix |
64 |
emake DESTDIR="${D}" install || die "install failed" |
65 |
|
66 |
# install desktop file provided by Gustav Schaffter in #49577 |
67 |
doicon "${FILESDIR}"/${PN}.xpm |
68 |
make_desktop_entry "putty" "PuTTY" putty "Network" |
69 |
} |