1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python3_{6,7,8} )
8 inherit meson mono-env python-single-r1 xdg
10 DESCRIPTION="Graphical IRC client based on XChat"
11 HOMEPAGE="https://hexchat.github.io/"
13 if [[ "${PV}" == "9999" ]] ; then
16 EGIT_REPO_URI="https://github.com/${PN}/${PN}.git"
18 SRC_URI="https://dl.hexchat.net/${PN}/${P}.tar.xz"
19 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux"
22 LICENSE="GPL-2 plugin-fishlim? ( MIT )"
24 IUSE="dbus debug +gtk libcanberra libnotify libproxy libressl lua perl plugin-checksum plugin-fishlim plugin-sysinfo python ssl theme-manager"
25 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
29 dbus? ( dev-libs/dbus-glib )
36 libcanberra? ( media-libs/libcanberra )
37 libproxy? ( net-libs/libproxy )
38 libnotify? ( x11-libs/libnotify )
39 lua? ( dev-lang/lua:= )
40 perl? ( dev-lang/perl:= )
41 plugin-sysinfo? ( sys-apps/pciutils )
42 python? ( ${PYTHON_DEPS} )
44 !libressl? ( dev-libs/openssl:0= )
45 libressl? ( dev-libs/libressl:0= )
49 ( dev-lang/mono[minimal] dev-dotnet/libgdiplus )
50 dev-lang/mono[-minimal]
64 use python && python-single-r1_pkg_setup
65 if use theme-manager ; then
67 export XDG_CACHE_HOME="${T}/.cache"
73 -Dwith-gtk="$(usex gtk true false)"
74 -Dwith-text="$(usex gtk false true)"
75 -Dwith-ssl="$(usex ssl true false)"
77 -Dwith-dbus="$(usex dbus true false)"
78 -Dwith-libproxy="$(usex libproxy true false)"
79 -Dwith-libnotify="$(usex libnotify true false)"
80 -Dwith-libcanberra="$(usex libcanberra true false)"
81 -Dwith-theme-manager="$(usex theme-manager true false)"
82 -Ddbus-service-use-appid=false
83 -Dwith-checksum="$(usex plugin-checksum true false)"
84 -Dwith-fishlim="$(usex plugin-fishlim true false)"
85 -Dwith-lua="$(usex lua lua false)"
86 -Dwith-perl="$(usex perl "${EPREFIX}"/usr/bin/perl false)"
87 -Dwith-python="$(usex python "${EPYTHON/.*}" false)"
88 -Dwith-sysinfo="$(usex plugin-sysinfo true false)"
97 find "${D}" -name '*.la' -delete || die
110 elog "You have disabled the gtk USE flag. This means you don't have"
111 elog "the GTK-GUI for HexChat but only a text interface called \"hexchat-text\"."
114 if use theme-manager ; then
115 elog "Themes are available at:"
116 elog " https://hexchat.github.io/themes.html"
120 elog "optional dependencies:"
121 elog " media-sound/sox (sound playback if you don't have libcanberra"
123 elog " x11-plugins/hexchat-javascript (javascript support)"
124 elog " x11-themes/sound-theme-freedesktop (default BEEP sound,"
125 elog " needs libcanberra enabled)"