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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Tue Jun 1 21:33:54 2004 UTC (15 years, 6 months ago) by taviso
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
new versioning system, as upstream have made a first release for UNIX systems.

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

  ViewVC Help
Powered by ViewVC 1.1.20