Gentoo Archives: gentoo-commits

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