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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (hide annotations) (download)
Fri May 7 15:47:48 2004 UTC (15 years, 5 months ago) by jhuebel
Branch: MAIN
Changes since 1.3: +2 -2 lines
~amd64 and added ut_time patch for amd64

1 jhuebel 1.4 # Copyright 1999-2004 Gentoo Technologies, Inc.
2 taviso 1.1 # Distributed under the terms of the GNU General Public License v2
3 jhuebel 1.4 # $Header: /home/cvsroot/gentoo-x86/net-misc/putty/putty-20030902-r1.ebuild,v 1.3 2003/10/29 16:48:08 taviso Exp $
4 taviso 1.1
5 taviso 1.3 DESCRIPTION="UNIX port of the famous Telnet and SSH client"
6 taviso 1.1
7     HOMEPAGE="http://www.chiark.greenend.org.uk/~sgtatham/putty/"
8     SRC_URI="mirror://gentoo/putty-cvs-${PV}.tar.gz"
9     LICENSE="MIT"
10    
11     SLOT="0"
12 taviso 1.2 KEYWORDS="x86 alpha"
13 taviso 1.1 IUSE="doc"
14    
15 taviso 1.3 RDEPEND="=x11-libs/gtk+-1.2* virtual/x11"
16    
17 taviso 1.1 DEPEND="${RDEPEND}
18     >=dev-lang/perl-5.8.0
19 taviso 1.3 >=sys-apps/sed-4"
20 taviso 1.1
21     S=${WORKDIR}/${PN}
22    
23 taviso 1.3 src_unpack() {
24     # unpack the tarball...
25     unpack ${A}
26    
27 taviso 1.1 # generate the makefiles
28 taviso 1.3 ebegin "Generating Makefiles"
29     cd ${S}; ${S}/mkfiles.pl
30     eend $?
31 taviso 1.1
32     # change the CFLAGS to those requested by user.
33 taviso 1.3 ebegin "Setting CFLAGS"
34     sed -i "s!-O2!${CFLAGS}!g" ${S}/unix/Makefile.gtk
35     eend $?
36     }
37 taviso 1.1
38 taviso 1.3 src_compile() {
39 taviso 1.1 # build putty.
40     einfo "Building putty..."
41     cd ${S}/unix; emake -f Makefile.gtk
42     }
43    
44     src_install() {
45    
46     cd ${S}/unix
47    
48     # man pages...
49     doman plink.1 pterm.1 putty.1 puttytel.1
50    
51     # binaries...
52     dobin plink pterm putty puttytel psftp pscp
53    
54     cd ${S}
55    
56     # docs...
57     dodoc README README.txt LICENCE CHECKLST.txt LATEST.VER website.url MODULE
58     use doc && dodoc doc/*
59    
60     prepallman
61    
62     if test ! -c /dev/ptmx; then
63     ewarn
64 taviso 1.3 ewarn "The pterm application requires kernel UNIX98 PTY support to operate."
65 taviso 1.1 ewarn
66     fi
67     }

  ViewVC Help
Powered by ViewVC 1.1.20