summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTavis Ormandy <taviso@gentoo.org>2005-08-21 18:21:24 +0000
committerTavis Ormandy <taviso@gentoo.org>2005-08-21 18:21:24 +0000
commitd8bcfadf47572d645d82a111c124805d2632d9b8 (patch)
tree6f6bb47fe0fd84e0130e2115ff61cb0d1942ee87 /net-misc
parentStable on ppc64 (bug #102582) (diff)
downloadgentoo-2-d8bcfadf47572d645d82a111c124805d2632d9b8.tar.gz
gentoo-2-d8bcfadf47572d645d82a111c124805d2632d9b8.tar.bz2
gentoo-2-d8bcfadf47572d645d82a111c124805d2632d9b8.zip
fix #103268
(Portage version: 2.0.51.19)
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/putty/ChangeLog5
-rw-r--r--net-misc/putty/putty-0.57.ebuild41
2 files changed, 22 insertions, 24 deletions
diff --git a/net-misc/putty/ChangeLog b/net-misc/putty/ChangeLog
index 81b8ae007fdc..5f0c1e2b16d7 100644
--- a/net-misc/putty/ChangeLog
+++ b/net-misc/putty/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for net-misc/putty
# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/putty/ChangeLog,v 1.24 2005/08/21 13:29:39 taviso Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/putty/ChangeLog,v 1.25 2005/08/21 18:21:24 taviso Exp $
+
+ 21 Aug 2005; Tavis Ormandy <taviso@gentoo.org> putty-0.57.ebuild:
+ fix #103268
21 Aug 2005; Tavis Ormandy <taviso@gentoo.org> putty-0.57.ebuild:
fix #44836
diff --git a/net-misc/putty/putty-0.57.ebuild b/net-misc/putty/putty-0.57.ebuild
index ae834a45ab7f..816a7a03054f 100644
--- a/net-misc/putty/putty-0.57.ebuild
+++ b/net-misc/putty/putty-0.57.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/putty/putty-0.57.ebuild,v 1.6 2005/08/21 13:29:39 taviso Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/putty/putty-0.57.ebuild,v 1.7 2005/08/21 18:21:24 taviso Exp $
inherit eutils
@@ -20,23 +20,27 @@ DEPEND="${RDEPEND} dev-lang/perl"
src_unpack() {
unpack ${A}
-
ebegin "Generating Makefiles"
- cd ${S}; perl ${S}/mkfiles.pl || die
+ cd ${S}; perl ${S}/mkfiles.pl || die
eend $?
ebegin "Setting CFLAGS"
- sed -i "s!-O2!${CFLAGS}!g" ${S}/unix/Makefile.gtk
-
- # prevent gtk-config from being used without gtk
- if ! use gtk; then
- sed -i "s/gtk-config/true/g" ${S}/unix/Makefile.gtk
- fi
+ # bug #103268
+ sed -i "s/-Werror//" ${S}/unix/Makefile.gtk
+ sed -i "s!-O2!${CFLAGS}!g" ${S}/unix/Makefile.gtk
+ # bug #44836
+ # prevent gtk-config from being used without gtk
+ if ! use gtk; then
+ sed -i "s/gtk-config/true/g" ${S}/unix/Makefile.gtk
+ fi
eend $?
}
src_compile() {
- cd ${S}/unix;
+ cd ${S}/unix
+
+ # compile all targets if gtk is required, otherwise
+ # just non-X utilities.
if use gtk; then
emake -f Makefile.gtk
else
@@ -46,34 +50,25 @@ src_compile() {
src_install() {
cd ${S}/doc
-
- if use gtk; then
- doman pterm.1 putty.1 puttytel.1
- fi
-
+ use gtk && doman pterm.1 putty.1 puttytel.1
doman puttygen.1 plink.1
cd ${S}/unix
-
- if use gtk; then
- dobin pterm putty puttytel
- fi
-
+ use gtk && dobin pterm putty puttytel
dobin puttygen plink pscp psftp
cd ${S}
-
dodoc README README.txt LICENCE CHECKLST.txt LATEST.VER website.url
use doc && dodoc doc/*
prepallman
# install desktop file provided by Gustav Schaffter in #49577
- if use gtk; then
+ use gtk && {
dodir /usr/share/applications
insinto /usr/share/applications
doins ${FILESDIR}/putty.desktop
- fi
+ }
if test ! -c /dev/ptmx; then
ewarn