/[gentoo-x86]/net-misc/putty/putty-9999.ebuild
Gentoo

Contents of /net-misc/putty/putty-9999.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Wed Mar 4 14:37:05 2015 UTC (4 years, 6 months ago) by jer
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +6 -4 lines
Version bump (bug #542098).

(Portage version: 2.2.17/cvs/Linux x86_64, signed Manifest commit with key A792A613)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/putty/putty-9999.ebuild,v 1.2 2014/11/15 13:38:10 jer Exp $
4
5 EAPI=5
6 inherit autotools eutils gnome2-utils git-r3 toolchain-funcs
7
8 DESCRIPTION="A Free Telnet/SSH Client"
9 HOMEPAGE="http://www.chiark.greenend.org.uk/~sgtatham/putty/"
10 EGIT_REPO_URI="git://git.tartarus.org/simon/putty.git"
11 SRC_URI="http://dev.gentoo.org/~jer/${PN}-icons.tar.bz2"
12 LICENSE="MIT"
13
14 SLOT="0"
15 KEYWORDS=""
16 IUSE="doc +gtk ipv6 kerberos"
17
18 RDEPEND="
19 !net-misc/pssh
20 gtk? (
21 dev-libs/glib:2
22 x11-libs/gdk-pixbuf
23 x11-libs/gtk+:2
24 x11-libs/libX11
25 x11-libs/pango
26 )
27 kerberos? ( virtual/krb5 )
28 "
29 DEPEND="
30 ${RDEPEND}
31 app-doc/halibut
32 dev-lang/perl
33 virtual/pkgconfig
34 "
35
36 src_unpack() {
37 git-r3_src_unpack
38 default
39 }
40
41 src_prepare() {
42 sed -i \
43 -e '/AM_PATH_GTK(/d' \
44 -e 's|-Werror||g' \
45 configure.ac || die
46
47 ./mkfiles.pl || die
48
49 eautoreconf
50 }
51
52 src_configure() {
53 cd "${S}"/unix || die
54 econf \
55 $(use_with kerberos gssapi) \
56 $(use_with gtk)
57 }
58
59 src_compile() {
60 emake -C "${S}"/doc
61 emake -C "${S}"/unix AR=$(tc-getAR) $(usex ipv6 '' COMPAT=-DNO_IPV6)
62 }
63
64 src_install() {
65 dodoc doc/puttydoc.txt
66
67 if use doc; then
68 dohtml doc/*.html
69 fi
70
71 cd "${S}"/unix || die
72 default
73
74 if use gtk ; then
75 for i in 16 22 24 32 48 64 128 256; do
76 newicon -s ${i} "${WORKDIR}"/${PN}-icons/${PN}-${i}.png ${PN}.png
77 done
78
79 # install desktop file provided by Gustav Schaffter in #49577
80 make_desktop_entry ${PN} PuTTY ${PN} Network
81 fi
82 }
83
84 pkg_preinst() {
85 use gtk && gnome2_icon_savelist
86 }
87
88 pkg_postinst() {
89 use gtk && gnome2_icon_cache_update
90 }
91
92 pkg_postrm() {
93 use gtk && gnome2_icon_cache_update
94 }

  ViewVC Help
Powered by ViewVC 1.1.20