1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python{2_7,3_4,3_5} )
7 inherit autotools fdo-mime gnome2-utils mono-env python-single-r1
9 DESCRIPTION="Graphical IRC client based on XChat"
10 HOMEPAGE="https://hexchat.github.io/"
12 if [[ "${PV}" == "9999" ]] ; then
15 EGIT_REPO_URI="https://github.com/${PN}/${PN}.git"
17 SRC_URI="https://dl.hexchat.net/${PN}/${P}.tar.xz"
18 KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sparc x86 ~amd64-linux"
21 LICENSE="GPL-2 plugin-fishlim? ( MIT )"
23 IUSE="dbus debug +gtk libcanberra libnotify libproxy libressl lua nls perl plugin-checksum plugin-fishlim plugin-sysinfo python spell ssl theme-manager"
24 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
26 COMMON_DEPEND="dev-libs/glib:2
27 dbus? ( sys-apps/dbus )
28 gtk? ( x11-libs/gtk+:2 )
29 libcanberra? ( media-libs/libcanberra )
30 libproxy? ( net-libs/libproxy )
31 libnotify? ( x11-libs/libnotify )
32 lua? ( dev-lang/lua:= )
33 nls? ( virtual/libintl )
34 perl? ( dev-lang/perl )
35 plugin-sysinfo? ( sys-apps/pciutils )
36 python? ( ${PYTHON_DEPS} )
37 spell? ( app-text/iso-codes )
39 !libressl? ( dev-libs/openssl:0= )
40 libressl? ( dev-libs/libressl:0= )
44 ( dev-lang/mono[minimal] dev-dotnet/libgdiplus )
45 dev-lang/mono[-minimal]
49 RDEPEND="${COMMON_DEPEND}
50 spell? ( app-text/enchant )"
51 DEPEND="${COMMON_DEPEND}
55 sys-devel/autoconf-archive
56 theme-manager? ( dev-util/monodevelop )"
59 "${FILESDIR}/hexchat-2.12.2-configure.ac-remove-werror.patch"
60 "${FILESDIR}/hexchat-2.12.4-libressl.patch"
69 use python && python-single-r1_pkg_setup
70 if use theme-manager ; then
72 export XDG_CACHE_HOME="${T}/.cache"
80 $(use_enable ssl openssl) \
81 $(use_enable gtk gtkfe) \
82 $(use_enable !gtk textfe) \
83 $(use_enable python python "${EPYTHON}") \
85 $(use_enable plugin-checksum checksum) \
86 $(use_enable plugin-fishlim fishlim) \
87 $(use_enable plugin-sysinfo sysinfo) \
90 $(use_enable libnotify) \
91 $(use_enable libcanberra) \
92 $(use_enable libproxy) \
93 $(use_enable spell isocodes) \
95 $(use_with theme-manager)
99 emake DESTDIR="${D}" \
100 UPDATE_ICON_CACHE=true \
101 UPDATE_MIME_DATABASE=true \
102 UPDATE_DESKTOP_DATABASE=true \
105 find "${D}" -name '*.la' -delete || die
116 gnome2_icon_cache_update
118 elog "You have disabled the gtk USE flag. This means you don't have"
119 elog "the GTK-GUI for HexChat but only a text interface called \"hexchat-text\"."
122 if use theme-manager ; then
123 fdo-mime_desktop_database_update
124 fdo-mime_mime_database_update
125 elog "Themes are available at:"
126 elog " https://hexchat.github.io/themes.html"
130 elog "optional dependencies:"
131 elog " media-sound/sox (sound playback if you don't have libcanberra"
133 elog " x11-plugins/hexchat-javascript (javascript support)"
134 elog " x11-themes/sound-theme-freedesktop (default BEEP sound,"
135 elog " needs libcanberra enabled)"
140 gnome2_icon_cache_update
143 if use theme-manager ; then
144 fdo-mime_desktop_database_update
145 fdo-mime_mime_database_update