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-irc/hexchat/
Date: Mon, 04 Oct 2021 07:24:52
Message-Id: 1633332281.0b8f06cf676d076ba1995fc67112fe6d706ccf52.polynomial-c@gentoo
1 commit: 0b8f06cf676d076ba1995fc67112fe6d706ccf52
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Mon Oct 4 07:23:57 2021 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Mon Oct 4 07:24:41 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0b8f06cf
7
8 net-irc/hexchat: Bump to version 2.16.0
9
10 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
11
12 net-irc/hexchat/Manifest | 1 +
13 net-irc/hexchat/hexchat-2.16.0.ebuild | 132 ++++++++++++++++++++++++++++++++++
14 2 files changed, 133 insertions(+)
15
16 diff --git a/net-irc/hexchat/Manifest b/net-irc/hexchat/Manifest
17 index 5b4c0ac7c3d..4b08e04813e 100644
18 --- a/net-irc/hexchat/Manifest
19 +++ b/net-irc/hexchat/Manifest
20 @@ -1,3 +1,4 @@
21 DIST hexchat-2.14.3.tar.xz 1292072 BLAKE2B 22bc8a0857b3ec26452843dd85c046cde055e719ce7dc23e4ec5ae33eb16251379ed84856c1812dc855a1e8d5d422c01e9352e2259f075a538226e1fcd79edd7 SHA512 c265921f2cb02c5d273bcdbb20a44a5c9f38b0f8cbba4fd56b177b676fc5d1dfd05bf80fcfa3706c7981f712f2f6c9aaaf80bccf3be0f6d96068dd393f3a7cb5
22 +DIST hexchat-2.16.0.tar.xz 1348320 BLAKE2B d5c6da74152e7ca08b629ee86cc45acb8232fbdad3d508cf56aba0c09d558b77644b704b5489e5f08a70133813f37c12e45b1529162e41b62acc9f61bca0b108 SHA512 4802f6efe0883f48d3d56ee949be1fc224b76a3c76956dcba3f913679e91424ba53c5c0d68bb4e0e790b16a08689111098958ead4c83c35cddf39855fe07c207
23 DIST hexchat-add-libera-chat.patch 696 BLAKE2B cd5f0736abd7895d017e835335a6ff9a0f6301cba7e7b8c2a4e9da7047885aac2f8b7b25b0723966bd103118c99d833d3e99481865bf20d202b0f95c0a9131bb SHA512 e3cc7df3f114a2374c1653c4ab7262dad87191f74ca759c41beecd731472478e8bdc929b0a13475a1248ed045ee1faf93cd80a225b6ed670f449d4495d4ab2ae
24 DIST hexchat-default-network.patch 1423 BLAKE2B b11982d50abb4fb7d8aab4758195cbfea1691cd7c6487ca56f995e449ff0445e2427a68064c0d8ee4b4b4e7764e438bfd68bb5402a266624cb6cfb93fbfdb30b SHA512 2691786d360278b4334e9129912ca0abde7b98f0d72f5e530b34e109eaf624d8e7280e137490dab218bacfb5bed952b2d7827640777ad73da5585517de308f42
25
26 diff --git a/net-irc/hexchat/hexchat-2.16.0.ebuild b/net-irc/hexchat/hexchat-2.16.0.ebuild
27 new file mode 100644
28 index 00000000000..5964fd0c827
29 --- /dev/null
30 +++ b/net-irc/hexchat/hexchat-2.16.0.ebuild
31 @@ -0,0 +1,132 @@
32 +# Copyright 1999-2021 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +LUA_COMPAT=( lua5-{1..4} luajit )
38 +PYTHON_COMPAT=( python3_{7..9} )
39 +
40 +inherit lua-single meson mono-env python-single-r1 xdg
41 +
42 +DESCRIPTION="Graphical IRC client based on XChat"
43 +HOMEPAGE="https://hexchat.github.io/"
44 +
45 +if [[ "${PV}" == "9999" ]] ; then
46 + inherit git-r3
47 + SRC_URI=""
48 + EGIT_REPO_URI="https://github.com/${PN}/${PN}.git"
49 +else
50 + SRC_URI="https://dl.hexchat.net/${PN}/${P}.tar.xz"
51 + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux"
52 +fi
53 +
54 +LICENSE="GPL-2 plugin-fishlim? ( MIT )"
55 +SLOT="0"
56 +IUSE="dbus debug +gtk libcanberra lua perl plugin-checksum plugin-fishlim plugin-sysinfo python ssl theme-manager"
57 +REQUIRED_USE="lua? ( ${LUA_REQUIRED_USE} )
58 + python? ( ${PYTHON_REQUIRED_USE} )"
59 +
60 +RDEPEND="
61 + dev-libs/glib:2
62 + dbus? ( dev-libs/dbus-glib )
63 + gtk? (
64 + x11-libs/gdk-pixbuf:2
65 + x11-libs/gtk+:2
66 + x11-libs/libX11
67 + x11-libs/pango
68 + )
69 + libcanberra? ( media-libs/libcanberra )
70 + lua? ( ${LUA_DEPS} )
71 + perl? ( dev-lang/perl:= )
72 + plugin-sysinfo? ( sys-apps/pciutils )
73 + python? (
74 + ${PYTHON_DEPS}
75 + virtual/python-cffi
76 + )
77 + ssl? ( dev-libs/openssl:0= )
78 + theme-manager? (
79 + || (
80 + ( dev-lang/mono[minimal] dev-dotnet/libgdiplus )
81 + dev-lang/mono[-minimal]
82 + )
83 + )"
84 +
85 +DEPEND="${RDEPEND}"
86 +BDEPEND="
87 + dev-util/glib-utils
88 + app-arch/xz-utils
89 + app-text/iso-codes
90 + sys-devel/gettext
91 + virtual/pkgconfig
92 +"
93 +
94 +pkg_setup() {
95 + use lua && lua-single_pkg_setup
96 + use python && python-single-r1_pkg_setup
97 + if use theme-manager ; then
98 + mono-env_pkg_setup
99 + export XDG_CACHE_HOME="${T}/.cache"
100 + fi
101 +}
102 +
103 +src_configure() {
104 + local emesonargs=(
105 + -Ddbus-service-use-appid=false
106 + -Dinstall-appdata=false
107 + -Dplugin=true
108 + $(meson_feature dbus)
109 + $(meson_feature libcanberra)
110 + $(meson_feature ssl tls)
111 + $(meson_use gtk gtk-frontend)
112 + $(meson_use !gtk text-frontend)
113 + $(meson_use theme-manager)
114 +
115 + $(meson_use plugin-checksum with-checksum)
116 + $(meson_use plugin-fishlim with-fishlim)
117 + -Dwith-lua="$(usex lua "${ELUA}" false)"
118 + -Dwith-perl="$(usex perl "${EPREFIX}"/usr/bin/perl false)"
119 + -Dwith-python="$(usex python "${EPYTHON/.*}" false)"
120 + $(meson_use plugin-sysinfo with-sysinfo)
121 + )
122 + meson_src_configure
123 +}
124 +
125 +src_install() {
126 + meson_src_install
127 + dodoc readme.md
128 + find "${ED}" -type f -name '*.la' -delete || die
129 +}
130 +
131 +pkg_preinst() {
132 + if use gtk ; then
133 + xdg_pkg_preinst
134 + fi
135 +}
136 +
137 +pkg_postinst() {
138 + if use gtk ; then
139 + xdg_pkg_postinst
140 + else
141 + elog "You have disabled the gtk USE flag. This means you don't have"
142 + elog "the GTK-GUI for HexChat but only a text interface called \"hexchat-text\"."
143 + fi
144 +
145 + if use theme-manager ; then
146 + elog "Themes are available at:"
147 + elog " https://hexchat.github.io/themes.html"
148 + fi
149 +
150 + elog
151 + elog "optional dependencies:"
152 + elog " media-sound/sox (sound playback if you don't have libcanberra"
153 + elog " enabled)"
154 + elog " x11-plugins/hexchat-javascript (javascript support)"
155 + elog " x11-themes/sound-theme-freedesktop (default BEEP sound,"
156 + elog " needs libcanberra enabled)"
157 +}
158 +
159 +pkg_postrm() {
160 + if use gtk ; then
161 + xdg_pkg_postrm
162 + fi
163 +}