summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc/putty/putty-0.55.ebuild')
-rw-r--r--net-misc/putty/putty-0.55.ebuild66
1 files changed, 66 insertions, 0 deletions
diff --git a/net-misc/putty/putty-0.55.ebuild b/net-misc/putty/putty-0.55.ebuild
new file mode 100644
index 000000000000..22f6c7a15a59
--- /dev/null
+++ b/net-misc/putty/putty-0.55.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/putty/putty-0.55.ebuild,v 1.1 2004/08/04 16:19:31 taviso Exp $
+
+inherit eutils
+
+DESCRIPTION="UNIX port of the famous Telnet and SSH client"
+
+HOMEPAGE="http://www.chiark.greenend.org.uk/~sgtatham/putty/"
+SRC_URI="http://the.earth.li/~sgtatham/putty/latest/${P}.tar.gz"
+LICENSE="MIT"
+
+SLOT="0"
+KEYWORDS="x86 alpha ~ppc ~sparc ~amd64"
+IUSE="doc"
+
+RDEPEND="=x11-libs/gtk+-1.2* virtual/x11"
+
+DEPEND="${RDEPEND} dev-lang/perl"
+
+src_unpack() {
+ unpack ${A}
+
+ ebegin "Generating Makefiles"
+ cd ${S}; perl ${S}/mkfiles.pl || die
+ eend $?
+
+ ebegin "Setting CFLAGS"
+ sed -i "s!-O2!${CFLAGS}!g" ${S}/unix/Makefile.gtk
+ eend $?
+
+ # apply ut_time patch for amd64
+ use amd64 && epatch ${FILESDIR}/putty-ut_time.patch
+}
+
+src_compile() {
+ cd ${S}/unix; emake -f Makefile.gtk || die "make failed"
+}
+
+src_install() {
+ cd ${S}/doc
+
+ doman plink.1 pterm.1 putty.1 puttytel.1 puttygen.1
+
+ cd ${S}/unix
+
+ dobin plink pterm putty puttytel psftp pscp puttygen
+
+ cd ${S}
+
+ dodoc README README.txt LICENCE CHECKLST.txt LATEST.VER website.url MODULE
+ use doc && dodoc doc/*
+
+ prepallman
+
+ # install desktop file provided by Gustav Schaffter in #49577
+ dodir /usr/share/applications
+ insinto /usr/share/applications
+ doins ${FILESDIR}/putty.desktop
+
+ if test ! -c /dev/ptmx; then
+ ewarn
+ ewarn "The pterm application requires kernel UNIX98 PTY support to operate."
+ ewarn
+ fi
+}