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, 03 Sep 2018 12:11:25
Message-Id: 1535976662.43aa17ea2fbe92508d8cd47fef0187f22096812e.polynomial-c@gentoo
1 commit: 43aa17ea2fbe92508d8cd47fef0187f22096812e
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Mon Sep 3 10:06:15 2018 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Mon Sep 3 12:11:02 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=43aa17ea
7
8 net-irc/hexchat: Bump to version 2.14.2
9
10 Package-Manager: Portage-2.3.48, Repoman-2.3.10
11
12 net-irc/hexchat/Manifest | 1 +
13 net-irc/hexchat/hexchat-2.14.2.ebuild | 136 ++++++++++++++++++++++++++++++++++
14 2 files changed, 137 insertions(+)
15
16 diff --git a/net-irc/hexchat/Manifest b/net-irc/hexchat/Manifest
17 index d498e28b7f1..6a319e29c69 100644
18 --- a/net-irc/hexchat/Manifest
19 +++ b/net-irc/hexchat/Manifest
20 @@ -1,2 +1,3 @@
21 DIST hexchat-2.12.4.tar.xz 1451468 BLAKE2B 91db1486b421f9707f9dddfe8aba812aa283d5e3cc3c12815faa7e515d00b803bde0bbf30e1ca5c0b69fe954dd30a6f69e5094dabe1dc641ae4f0742ad1965b4 SHA512 48d30c23973a19efc7a8e6d00a3e9675e8556a6fa9da046175b3d87bdab0bebbc6caf58970d654e270421d0d49c2cd9f498b425b7e3a49dd81670dc4825fca40
22 DIST hexchat-2.14.1.tar.xz 1281872 BLAKE2B e450fe7391b8b51a7aebeaeacdb5f1fb6c00184f668813920d98ed6a00dd4c0308863657467b7608987feb0739ac85256d93ca9ef8a220e6c7a5545d8386f25d SHA512 2728d6f084530c1a65ddb7960db6574fef2bca77e726a2155c8b5724256f37b47421e990b1bf7c9fad7987027b2f6de4534a8df28a98cb3d28da726e16ac32dd
23 +DIST hexchat-2.14.2.tar.xz 1288732 BLAKE2B 93001bf48516e0326c4df16945ff8a157e7a410ca202d1231657c9fb439ddd4a7515aacea0b0fff92365d477aa24c90d37aa61466495354dcdf5578d7accfa65 SHA512 488799700e439a137ad469f618cb1abf75d1f1ebf223c750d658004ef7b2c728543a5a9ae4e6317d6447428dc59e12dded619346a5d8bba12c92dab653512fca
24
25 diff --git a/net-irc/hexchat/hexchat-2.14.2.ebuild b/net-irc/hexchat/hexchat-2.14.2.ebuild
26 new file mode 100644
27 index 00000000000..ee382d60463
28 --- /dev/null
29 +++ b/net-irc/hexchat/hexchat-2.14.2.ebuild
30 @@ -0,0 +1,136 @@
31 +# Copyright 1999-2018 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=6
35 +
36 +PYTHON_COMPAT=( python3_{4,5,6,7} )
37 +
38 +inherit gnome2-utils meson mono-env python-single-r1 xdg-utils
39 +
40 +DESCRIPTION="Graphical IRC client based on XChat"
41 +HOMEPAGE="https://hexchat.github.io/"
42 +
43 +if [[ "${PV}" == "9999" ]] ; then
44 + inherit git-r3
45 + SRC_URI=""
46 + EGIT_REPO_URI="https://github.com/${PN}/${PN}.git"
47 +else
48 + SRC_URI="https://dl.hexchat.net/${PN}/${P}.tar.xz"
49 + KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux"
50 +fi
51 +
52 +LICENSE="GPL-2 plugin-fishlim? ( MIT )"
53 +SLOT="0"
54 +IUSE="dbus debug +gtk libcanberra libnotify libproxy libressl lua perl plugin-checksum plugin-fishlim plugin-sysinfo python ssl theme-manager"
55 +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
56 +
57 +COMMON_DEPEND="
58 + dev-libs/glib:2
59 + dbus? ( dev-libs/dbus-glib )
60 + gtk? (
61 + x11-libs/gdk-pixbuf:2
62 + x11-libs/gtk+:2
63 + x11-libs/libX11
64 + x11-libs/pango
65 + )
66 + libcanberra? ( media-libs/libcanberra )
67 + libproxy? ( net-libs/libproxy )
68 + libnotify? ( x11-libs/libnotify )
69 + lua? ( dev-lang/lua:= )
70 + perl? ( dev-lang/perl )
71 + plugin-sysinfo? ( sys-apps/pciutils )
72 + python? ( ${PYTHON_DEPS} )
73 + ssl? (
74 + !libressl? ( dev-libs/openssl:0= )
75 + libressl? ( dev-libs/libressl:0= )
76 + )
77 + theme-manager? (
78 + || (
79 + ( dev-lang/mono[minimal] dev-dotnet/libgdiplus )
80 + dev-lang/mono[-minimal]
81 + )
82 + )"
83 +
84 +RDEPEND="${COMMON_DEPEND}"
85 +DEPEND="
86 + ${COMMON_DEPEND}
87 + app-arch/xz-utils
88 + app-text/iso-codes
89 + sys-devel/gettext
90 + virtual/pkgconfig
91 +"
92 +
93 +pkg_setup() {
94 + use python && python-single-r1_pkg_setup
95 + if use theme-manager ; then
96 + mono-env_pkg_setup
97 + export XDG_CACHE_HOME="${T}/.cache"
98 + fi
99 +}
100 +
101 +src_configure() {
102 + local emesonargs=(
103 + -Dwith-gtk="$(usex gtk true false)"
104 + -Dwith-text="$(usex gtk false true)"
105 + -Dwith-ssl="$(usex ssl true false)"
106 + -Dwith-plugin=true
107 + -Dwith-dbus="$(usex dbus true false)"
108 + -Dwith-libproxy="$(usex libproxy true false)"
109 + -Dwith-libnotify="$(usex libnotify true false)"
110 + -Dwith-libcanberra="$(usex libcanberra true false)"
111 + -Dwith-theme-manager="$(usex theme-manager true false)"
112 + -Ddbus-service-use-appid=false
113 + -Dwith-checksum="$(usex plugin-checksum true false)"
114 + -Dwith-fishlim="$(usex plugin-fishlim true false)"
115 + -Dwith-lua="$(usex lua lua false)"
116 + -Dwith-perl="$(usex perl "${EPREFIX}"/usr/bin/perl false)"
117 + -Dwith-python="$(usex python "${EPYTHON/.*}" false)"
118 + -Dwith-sysinfo="$(usex plugin-sysinfo true false)"
119 + -Dwith-appdata=false
120 + )
121 + meson_src_configure
122 +}
123 +
124 +src_install() {
125 + meson_src_install
126 + dodoc readme.md
127 + find "${D}" -name '*.la' -delete || die
128 +}
129 +
130 +pkg_preinst() {
131 + if use gtk ; then
132 + gnome2_icon_savelist
133 + fi
134 +}
135 +
136 +pkg_postinst() {
137 + if use gtk ; then
138 + gnome2_icon_cache_update
139 + xdg_desktop_database_update
140 + xdg_mimeinfo_database_update
141 + else
142 + elog "You have disabled the gtk USE flag. This means you don't have"
143 + elog "the GTK-GUI for HexChat but only a text interface called \"hexchat-text\"."
144 + fi
145 +
146 + if use theme-manager ; then
147 + elog "Themes are available at:"
148 + elog " https://hexchat.github.io/themes.html"
149 + fi
150 +
151 + elog
152 + elog "optional dependencies:"
153 + elog " media-sound/sox (sound playback if you don't have libcanberra"
154 + elog " enabled)"
155 + elog " x11-plugins/hexchat-javascript (javascript support)"
156 + elog " x11-themes/sound-theme-freedesktop (default BEEP sound,"
157 + elog " needs libcanberra enabled)"
158 +}
159 +
160 +pkg_postrm() {
161 + if use gtk ; then
162 + gnome2_icon_cache_update
163 + xdg_desktop_database_update
164 + xdg_mimeinfo_database_update
165 + fi
166 +}