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

Contents of /net-misc/putty/putty-0.62.20120823-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Mon Aug 5 22:01:57 2013 UTC (6 years, 4 months ago) by jer
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Version bump (bug #479872).

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

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

  ViewVC Help
Powered by ViewVC 1.1.20