diff options
author | Lars Wendler <polynomial-c@gentoo.org> | 2022-05-27 12:11:29 +0200 |
---|---|---|
committer | Lars Wendler <polynomial-c@gentoo.org> | 2022-05-27 12:11:37 +0200 |
commit | 82413119b1b63d48c6df186ad28190d998e2a6b4 (patch) | |
tree | b33636f408fdc17e29341cd5d5487161057041dc /net-misc | |
parent | net-misc/putty: Switched live ebuild to cmake (diff) | |
download | gentoo-82413119b1b63d48c6df186ad28190d998e2a6b4.tar.gz gentoo-82413119b1b63d48c6df186ad28190d998e2a6b4.tar.bz2 gentoo-82413119b1b63d48c6df186ad28190d998e2a6b4.zip |
net-misc/putty: Bump to version 0.77
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Diffstat (limited to 'net-misc')
-rw-r--r-- | net-misc/putty/Manifest | 1 | ||||
-rw-r--r-- | net-misc/putty/putty-0.77.ebuild | 92 |
2 files changed, 93 insertions, 0 deletions
diff --git a/net-misc/putty/Manifest b/net-misc/putty/Manifest index 071ce9c471f5..28730e9df28b 100644 --- a/net-misc/putty/Manifest +++ b/net-misc/putty/Manifest @@ -1,2 +1,3 @@ DIST putty-0.76.tar.gz 2735687 BLAKE2B 7994a8ea4eb735091e92438fd9558b1047b2ddffe53e3cd2ae7c182e333d21482de7c1a549b738d00af1e592e078648b153fa095a9e5310ee4a884c0cc9fb896 SHA512 4576b359593928c6eba923f2d7b66ac0f2cf00e0c217cdbbb124471c3b35feb090e623847bfc507a4ef106cb3067aac47419e241b11dd8bf4ae554061fa93c25 +DIST putty-0.77.tar.gz 2619481 BLAKE2B 83b0838a3923c93f95020297d6402872605609da81d33f864d72074d1e5cae2fcf2710a038aef1de56077de2e296f4c5e573af077f4b55e433563f680cd9cc4b SHA512 35eb1e3f98a07611365bedc492c69a5475ce9b3d920ecebc78c76813505684c16cfcbfbb2306c1106fb5a9b72ca3dd52cbd39b9e9805c6689c9a9464910c0e7d DIST putty-icons.tar.bz2 4878 BLAKE2B 589f1bace82e3fd202b70bd35661d2ec4ef383363f8ae6716d4a6828bd822ef624b0acde39354d3d837e2d2bb49a34dbb89e031c64c520cbc675cad79813acff SHA512 4e419a71e26770e159221f6b516e7210d29272917b4b9a9e0b67c72e73508b97278e56c82111b02e106c5d513c2561fec6da372b4b18246f29372ae618ff5f71 diff --git a/net-misc/putty/putty-0.77.ebuild b/net-misc/putty/putty-0.77.ebuild new file mode 100644 index 000000000000..a09ae7ae4600 --- /dev/null +++ b/net-misc/putty/putty-0.77.ebuild @@ -0,0 +1,92 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit cmake desktop xdg-utils + +DESCRIPTION="A Free Telnet/SSH Client" +HOMEPAGE="https://www.chiark.greenend.org.uk/~sgtatham/putty/" +SRC_URI="https://dev.gentoo.org/~polynomial-c/${PN}-icons.tar.bz2" +if [[ ${PV} == *9999 ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://git.tartarus.org/simon/putty.git" +else + SRC_URI+=" https://the.earth.li/~sgtatham/${PN}/${PV}/${P}.tar.gz" + KEYWORDS="~alpha ~amd64 ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86" +fi +LICENSE="MIT" + +SLOT="0" +IUSE="debug +gtk gtk2 ipv6 gssapi" + +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} +" +BDEPEND=" + dev-lang/perl + virtual/pkgconfig +" +#[[ ${PV} == *9999 ]] && BDEPEND+=" doc? ( app-doc/halibut )" + +REQUIRED_USE=" + gtk2? ( gtk ) +" + +src_unpack() { + [[ ${PV} == *9999 ]] && git-r3_src_unpack + default +} + +src_configure() { + cd "${S}"/unix || die + local mycmakeargs=( + -DPUTTY_DEBUG="$(usex debug)" + -DPUTTY_GSSAPI="$(usex gssapi DYNAMIC OFF)" + -DPUTTY_GTK_VERSION=$(usex gtk $(usex gtk2 2 3 ) '') + -DPUTTY_IPV6="$(usex ipv6)" + ) + cmake_src_configure +} + +src_install() { + cmake_src_install + + doman "${BUILD_DIR}"/doc/*.1 + + #if use doc ; then + # docinto html + # dodoc "${BUILD_DIR}"/doc/html/*.html + #fi + + if use gtk ; then + local i + 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_postinst() { + use gtk && xdg_icon_cache_update +} + +pkg_postrm() { + use gtk && xdg_icon_cache_update +} |