Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/putty/
Date: Fri, 27 May 2022 10:11:45
Message-Id: 1653646297.82413119b1b63d48c6df186ad28190d998e2a6b4.polynomial-c@gentoo
1 commit: 82413119b1b63d48c6df186ad28190d998e2a6b4
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Fri May 27 10:11:29 2022 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Fri May 27 10:11:37 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=82413119
7
8 net-misc/putty: Bump to version 0.77
9
10 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
11
12 net-misc/putty/Manifest | 1 +
13 net-misc/putty/putty-0.77.ebuild | 92 ++++++++++++++++++++++++++++++++++++++++
14 2 files changed, 93 insertions(+)
15
16 diff --git a/net-misc/putty/Manifest b/net-misc/putty/Manifest
17 index 071ce9c471f5..28730e9df28b 100644
18 --- a/net-misc/putty/Manifest
19 +++ b/net-misc/putty/Manifest
20 @@ -1,2 +1,3 @@
21 DIST putty-0.76.tar.gz 2735687 BLAKE2B 7994a8ea4eb735091e92438fd9558b1047b2ddffe53e3cd2ae7c182e333d21482de7c1a549b738d00af1e592e078648b153fa095a9e5310ee4a884c0cc9fb896 SHA512 4576b359593928c6eba923f2d7b66ac0f2cf00e0c217cdbbb124471c3b35feb090e623847bfc507a4ef106cb3067aac47419e241b11dd8bf4ae554061fa93c25
22 +DIST putty-0.77.tar.gz 2619481 BLAKE2B 83b0838a3923c93f95020297d6402872605609da81d33f864d72074d1e5cae2fcf2710a038aef1de56077de2e296f4c5e573af077f4b55e433563f680cd9cc4b SHA512 35eb1e3f98a07611365bedc492c69a5475ce9b3d920ecebc78c76813505684c16cfcbfbb2306c1106fb5a9b72ca3dd52cbd39b9e9805c6689c9a9464910c0e7d
23 DIST putty-icons.tar.bz2 4878 BLAKE2B 589f1bace82e3fd202b70bd35661d2ec4ef383363f8ae6716d4a6828bd822ef624b0acde39354d3d837e2d2bb49a34dbb89e031c64c520cbc675cad79813acff SHA512 4e419a71e26770e159221f6b516e7210d29272917b4b9a9e0b67c72e73508b97278e56c82111b02e106c5d513c2561fec6da372b4b18246f29372ae618ff5f71
24
25 diff --git a/net-misc/putty/putty-0.77.ebuild b/net-misc/putty/putty-0.77.ebuild
26 new file mode 100644
27 index 000000000000..a09ae7ae4600
28 --- /dev/null
29 +++ b/net-misc/putty/putty-0.77.ebuild
30 @@ -0,0 +1,92 @@
31 +# Copyright 1999-2022 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +inherit cmake desktop xdg-utils
36 +
37 +DESCRIPTION="A Free Telnet/SSH Client"
38 +HOMEPAGE="https://www.chiark.greenend.org.uk/~sgtatham/putty/"
39 +SRC_URI="https://dev.gentoo.org/~polynomial-c/${PN}-icons.tar.bz2"
40 +if [[ ${PV} == *9999 ]] ; then
41 + inherit git-r3
42 + EGIT_REPO_URI="https://git.tartarus.org/simon/putty.git"
43 +else
44 + SRC_URI+=" https://the.earth.li/~sgtatham/${PN}/${PV}/${P}.tar.gz"
45 + KEYWORDS="~alpha ~amd64 ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
46 +fi
47 +LICENSE="MIT"
48 +
49 +SLOT="0"
50 +IUSE="debug +gtk gtk2 ipv6 gssapi"
51 +
52 +RDEPEND="
53 + !net-misc/pssh
54 + gtk? (
55 + dev-libs/glib:2
56 + x11-libs/gdk-pixbuf
57 + x11-libs/libX11
58 + x11-libs/pango
59 + gtk2? ( x11-libs/gtk+:2 )
60 + !gtk2? ( x11-libs/gtk+:3[X] )
61 + )
62 + gssapi? ( virtual/krb5 )
63 +"
64 +DEPEND="
65 + ${RDEPEND}
66 +"
67 +BDEPEND="
68 + dev-lang/perl
69 + virtual/pkgconfig
70 +"
71 +#[[ ${PV} == *9999 ]] && BDEPEND+=" doc? ( app-doc/halibut )"
72 +
73 +REQUIRED_USE="
74 + gtk2? ( gtk )
75 +"
76 +
77 +src_unpack() {
78 + [[ ${PV} == *9999 ]] && git-r3_src_unpack
79 + default
80 +}
81 +
82 +src_configure() {
83 + cd "${S}"/unix || die
84 + local mycmakeargs=(
85 + -DPUTTY_DEBUG="$(usex debug)"
86 + -DPUTTY_GSSAPI="$(usex gssapi DYNAMIC OFF)"
87 + -DPUTTY_GTK_VERSION=$(usex gtk $(usex gtk2 2 3 ) '')
88 + -DPUTTY_IPV6="$(usex ipv6)"
89 + )
90 + cmake_src_configure
91 +}
92 +
93 +src_install() {
94 + cmake_src_install
95 +
96 + doman "${BUILD_DIR}"/doc/*.1
97 +
98 + #if use doc ; then
99 + # docinto html
100 + # dodoc "${BUILD_DIR}"/doc/html/*.html
101 + #fi
102 +
103 + if use gtk ; then
104 + local i
105 + for i in 16 22 24 32 48 64 128 256; do
106 + newicon -s ${i} \
107 + "${WORKDIR}"/${PN}-icons/${PN}-${i}.png \
108 + ${PN}.png
109 + done
110 +
111 + # install desktop file provided by Gustav Schaffter in #49577
112 + make_desktop_entry ${PN} PuTTY ${PN} Network
113 + fi
114 +}
115 +
116 +pkg_postinst() {
117 + use gtk && xdg_icon_cache_update
118 +}
119 +
120 +pkg_postrm() {
121 + use gtk && xdg_icon_cache_update
122 +}