From 4be9d4591ac64e30820b18821654ef9b1018eb48 Mon Sep 17 00:00:00 2001 From: Jeroen Roovers Date: Mon, 18 Mar 2019 17:39:38 +0100 Subject: net-misc/putty: Revision bump to catch runtime failures Package-Manager: Portage-2.3.62, Repoman-2.3.12 Bug: https://bugs.gentoo.org/show_bug.cgi?id=680862 Signed-off-by: Jeroen Roovers --- net-misc/putty/putty-0.71-r1.ebuild | 94 +++++++++++++++++++++++++++++++++++++ net-misc/putty/putty-0.71.ebuild | 94 ------------------------------------- 2 files changed, 94 insertions(+), 94 deletions(-) create mode 100644 net-misc/putty/putty-0.71-r1.ebuild delete mode 100644 net-misc/putty/putty-0.71.ebuild diff --git a/net-misc/putty/putty-0.71-r1.ebuild b/net-misc/putty/putty-0.71-r1.ebuild new file mode 100644 index 000000000000..3cb7948531d8 --- /dev/null +++ b/net-misc/putty/putty-0.71-r1.ebuild @@ -0,0 +1,94 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit autotools eutils gnome2-utils toolchain-funcs + +DESCRIPTION="A Free Telnet/SSH Client" +HOMEPAGE="https://www.chiark.greenend.org.uk/~sgtatham/putty/" +LICENSE="MIT" + +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86" +IUSE="doc +gtk gtk2 ipv6 gssapi" +SRC_URI=" + https://dev.gentoo.org/~jer/${PN}-icons.tar.bz2 + https://the.earth.li/~sgtatham/${PN}/latest/${P}.tar.gz +" + +RDEPEND=" + !net-misc/pssh + gtk? ( + dev-libs/glib:2 + x11-libs/gdk-pixbuf + x11-libs/libX11 + x11-libs/pango + gtk2? ( x11-libs/gtk+:2 ) + !gtk2? ( x11-libs/gtk+:3[X] ) + ) + gssapi? ( virtual/krb5 ) +" +DEPEND=" + ${RDEPEND} + dev-lang/perl + virtual/pkgconfig +" +PATCHES=( + "${FILESDIR}"/${PN}-0.71-no-gssapi.patch +) + +src_prepare() { + default + + sed -i \ + -e '/AM_PATH_GTK(/d' \ + -e 's|-Werror||g' \ + configure.ac || die + + eautoreconf +} + +src_configure() { + cd "${S}"/unix || die + econf \ + $(use_with gssapi) \ + $(usex gtk --with-gtk= --without-gtk $(usex gtk2 2 3 ) ) +} + +src_compile() { + cd "${S}"/unix || die + emake AR=$(tc-getAR) $(usex ipv6 '' COMPAT=-DNO_IPV6) +} + +src_install() { + dodoc doc/puttydoc.txt + + if use doc; then + docinto html + dodoc doc/*.html + fi + + cd "${S}"/unix || die + default + + if use gtk ; then + for i in 16 22 24 32 48 64 128 256; do + newicon -s ${i} "${WORKDIR}"/${PN}-icons/${PN}-${i}.png ${PN}.png + done + + # install desktop file provided by Gustav Schaffter in #49577 + make_desktop_entry ${PN} PuTTY ${PN} Network + fi +} + +pkg_preinst() { + use gtk && gnome2_icon_savelist +} + +pkg_postinst() { + use gtk && gnome2_icon_cache_update +} + +pkg_postrm() { + use gtk && gnome2_icon_cache_update +} diff --git a/net-misc/putty/putty-0.71.ebuild b/net-misc/putty/putty-0.71.ebuild deleted file mode 100644 index 3cb7948531d8..000000000000 --- a/net-misc/putty/putty-0.71.ebuild +++ /dev/null @@ -1,94 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 -inherit autotools eutils gnome2-utils toolchain-funcs - -DESCRIPTION="A Free Telnet/SSH Client" -HOMEPAGE="https://www.chiark.greenend.org.uk/~sgtatham/putty/" -LICENSE="MIT" - -SLOT="0" -KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86" -IUSE="doc +gtk gtk2 ipv6 gssapi" -SRC_URI=" - https://dev.gentoo.org/~jer/${PN}-icons.tar.bz2 - https://the.earth.li/~sgtatham/${PN}/latest/${P}.tar.gz -" - -RDEPEND=" - !net-misc/pssh - gtk? ( - dev-libs/glib:2 - x11-libs/gdk-pixbuf - x11-libs/libX11 - x11-libs/pango - gtk2? ( x11-libs/gtk+:2 ) - !gtk2? ( x11-libs/gtk+:3[X] ) - ) - gssapi? ( virtual/krb5 ) -" -DEPEND=" - ${RDEPEND} - dev-lang/perl - virtual/pkgconfig -" -PATCHES=( - "${FILESDIR}"/${PN}-0.71-no-gssapi.patch -) - -src_prepare() { - default - - sed -i \ - -e '/AM_PATH_GTK(/d' \ - -e 's|-Werror||g' \ - configure.ac || die - - eautoreconf -} - -src_configure() { - cd "${S}"/unix || die - econf \ - $(use_with gssapi) \ - $(usex gtk --with-gtk= --without-gtk $(usex gtk2 2 3 ) ) -} - -src_compile() { - cd "${S}"/unix || die - emake AR=$(tc-getAR) $(usex ipv6 '' COMPAT=-DNO_IPV6) -} - -src_install() { - dodoc doc/puttydoc.txt - - if use doc; then - docinto html - dodoc doc/*.html - fi - - cd "${S}"/unix || die - default - - if use gtk ; then - for i in 16 22 24 32 48 64 128 256; do - newicon -s ${i} "${WORKDIR}"/${PN}-icons/${PN}-${i}.png ${PN}.png - done - - # install desktop file provided by Gustav Schaffter in #49577 - make_desktop_entry ${PN} PuTTY ${PN} Network - fi -} - -pkg_preinst() { - use gtk && gnome2_icon_savelist -} - -pkg_postinst() { - use gtk && gnome2_icon_cache_update -} - -pkg_postrm() { - use gtk && gnome2_icon_cache_update -} -- cgit v1.2.3-18-g5258