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

Contents of /net-misc/putty/putty-0.63_p20140416.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Tue Nov 4 10:00:17 2014 UTC (5 years, 1 month ago) by jer
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Old.

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

  ViewVC Help
Powered by ViewVC 1.1.20