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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Tue Mar 25 16:11:58 2008 UTC (11 years, 8 months ago) by armin76
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +1 -1 lines
FILE REMOVED
old
(Portage version: 2.1.4.4)

1 # Copyright 1999-2007 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.58.ebuild,v 1.9 2007/12/23 06:03:18 halcy0n Exp $
4
5 inherit eutils toolchain-funcs flag-o-matic
6
7 DESCRIPTION="UNIX port of the famous Telnet and SSH client"
8 HOMEPAGE="http://www.chiark.greenend.org.uk/~sgtatham/putty/"
9 SRC_URI="http://the.earth.li/~sgtatham/putty/${PV}/${P}.tar.gz"
10 LICENSE="MIT"
11
12 SLOT="0"
13 KEYWORDS="alpha amd64 ppc sparc x86"
14 IUSE="doc gtk ipv6"
15
16 RDEPEND="gtk? ( =x11-libs/gtk+-1.2* )"
17 DEPEND="${RDEPEND} dev-lang/perl"
18
19 src_compile() {
20 use gtk && unset ptargets || local ptargets="puttygen plink pscp psftp"
21
22 cd "${S}"/unix
23
24 append-flags '-I.././' '-I../charset/' '-I../unix/'
25
26 use ipv6 || append-flags '-DNO_IPV6'
27 use gtk && append-flags '`gtk-config --cflags`'
28
29 emake -f Makefile.gtk ${ptargets:-all} CC="$(tc-getCC)" \
30 CFLAGS="${CFLAGS}"
31 }
32
33 src_install() {
34 cd "${S}"/doc
35 use gtk && doman pterm.1 putty.1 puttytel.1
36 use doc && dohtml *.html
37 dodoc puttydoc.txt
38 doman puttygen.1 plink.1
39
40 cd "${S}"/unix
41 use gtk && dobin pterm putty puttytel
42 dobin puttygen plink pscp psftp
43
44 cd "${S}"
45 dodoc README README.txt CHECKLST.txt LATEST.VER
46
47 # install desktop file provided by Gustav Schaffter in #49577
48 use gtk && {
49 dodir /usr/share/applications
50 insinto /usr/share/applications
51 doins "${FILESDIR}"/putty.desktop
52 }
53
54 if test ! -c /dev/ptmx; then
55 ewarn
56 ewarn "The pterm application requires kernel UNIX98 PTY support to operate."
57 ewarn
58 fi
59 }

  ViewVC Help
Powered by ViewVC 1.1.20