net-misc/putty: Version bump.
authorJeroen Roovers <jer@gentoo.org>
Wed, 22 Feb 2017 16:30:59 +0000 (17:30 +0100)
committerJeroen Roovers <jer@gentoo.org>
Wed, 22 Feb 2017 16:31:20 +0000 (17:31 +0100)
Package-Manager: Portage-2.3.3, Repoman-2.3.1

net-misc/putty/Manifest
net-misc/putty/putty-0.68.ebuild [new file with mode: 0644]
net-misc/putty/putty-9999.ebuild

index 2c1e1f83f32d08c6f3c81b40f90368514da6163c..af4fb319ec8484cb9bfc2e1a197553e8a34fb44d 100644 (file)
@@ -1,2 +1,3 @@
 DIST putty-0.67.tar.gz 1955547 SHA256 80192458e8a46229de512afeca5c757dd8fce09606b3c992fbaeeee29b994a47 SHA512 c2b17da46b8db3fe3837a10cb9cf5dd4b3ef6bfa15cadab83f3b87cf1479ed31fced90b774297ae53bdcbbdf230fc80d5c73d5ff3be6916fb591fd7ce3d35eca WHIRLPOOL c1410a655cecfdbf49153f2fa12f39e4e1e0b1c1078293be2ce21f147baba404bcfed285d8da3cba460ae52b1bdbd526e4110d2a3c68dc4bb8dbb859751656fe
+DIST putty-0.68.tar.gz 2114499 SHA256 7ba256f46e5a353cafe811ce7914d0e22a52bdfc0e6e2d183ad28b5af44cd09c SHA512 e3a6e4f45e1fce70d4cbb6d4769ab72b23c10920e48a88bba95b3f4c225b0193ddc1444e69d572bdec5e505d2c56fed365f07d990c156b35f272b56f978ef5d3 WHIRLPOOL d24ceb3ed62eca52bb3a8f4fae08256269002265650e6fc42af10fc10a7b85b677b70c68e6b0a98915371921eabfbcbfa8a9b64b6be1a51cff418aef2feb6650
 DIST putty-icons.tar.bz2 4878 SHA256 960b189069dbfb20a1f49e378ab88bed716c6457593815e414d51ad7a3fa93a7 SHA512 4e419a71e26770e159221f6b516e7210d29272917b4b9a9e0b67c72e73508b97278e56c82111b02e106c5d513c2561fec6da372b4b18246f29372ae618ff5f71 WHIRLPOOL ec96fe682582bfa58ce73c3e5cb7bb61d2363b7a5e9d3259dfd11cd6396512b5b9ed954f6a431baab36b1f17963714b30c239cdf4c08191d27b5abb858f54a57
diff --git a/net-misc/putty/putty-0.68.ebuild b/net-misc/putty/putty-0.68.ebuild
new file mode 100644 (file)
index 0000000..d1db63a
--- /dev/null
@@ -0,0 +1,91 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+inherit autotools eutils gnome2-utils toolchain-funcs
+
+DESCRIPTION="A Free Telnet/SSH Client"
+HOMEPAGE="http://www.chiark.greenend.org.uk/~sgtatham/putty/"
+LICENSE="MIT"
+
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
+IUSE="doc +gtk ipv6 kerberos"
+SRC_URI="
+       https://dev.gentoo.org/~jer/${PN}-icons.tar.bz2
+       http://the.earth.li/~sgtatham/${PN}/latest/${P}.tar.gz
+"
+
+RDEPEND="
+       !net-misc/pssh
+       gtk? (
+               dev-libs/glib:2
+               x11-libs/gdk-pixbuf
+               x11-libs/gtk+:3
+               x11-libs/libX11
+               x11-libs/pango
+       )
+       kerberos? ( virtual/krb5 )
+"
+DEPEND="
+       ${RDEPEND}
+       dev-lang/perl
+       virtual/pkgconfig
+"
+
+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 kerberos gssapi) \
+               $(use_with gtk)
+}
+
+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
+}
index 5d552be32d4c58a8648ce4a0933aa2ea04a698ac..fbced904a692a1697bb32930e5cb2f37983acb9c 100644 (file)
@@ -1,8 +1,8 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
-EAPI=5
+EAPI=6
 inherit autotools eutils gnome2-utils git-r3 toolchain-funcs
 
 DESCRIPTION="A Free Telnet/SSH Client"
@@ -20,7 +20,7 @@ RDEPEND="
        gtk? (
                dev-libs/glib:2
                x11-libs/gdk-pixbuf
-               x11-libs/gtk+:2
+               x11-libs/gtk+:3
                x11-libs/libX11
                x11-libs/pango
        )
@@ -39,6 +39,8 @@ src_unpack() {
 }
 
 src_prepare() {
+       default
+
        sed -i \
                -e '/AM_PATH_GTK(/d' \
                -e 's|-Werror||g' \
@@ -65,7 +67,8 @@ src_install() {
        dodoc doc/puttydoc.txt
 
        if use doc; then
-               dohtml doc/*.html
+               docinto html
+               dodoc doc/*.html
        fi
 
        cd "${S}"/unix || die