1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit flag-o-matic readme.gentoo-r1
8 DESCRIPTION="A small Jabber console client with various features, like MUC, SSL, PGP"
9 HOMEPAGE="http://mcabber.com/"
11 if [[ "${PV}" == 9999 ]]; then
13 EHG_REPO_URI="https://bitbucket.org/McKael/mcabber"
14 EHG_CHECKOUT_DIR="${WORKDIR}"
15 EHG_BOOTSTRAP="autogen.sh"
18 SRC_URI="http://mcabber.com/files/${P}.tar.bz2"
19 KEYWORDS="~alpha amd64 ~arm ~mips ~ppc ~ppc64 ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
25 IUSE="aspell crypt idn otr spell ssl vim-syntax"
27 LANGS="cs de fr it nl pl ru uk"
28 # localized help versions are installed only, when L10N var is set
30 IUSE="${IUSE} l10n_${i}"
33 RDEPEND="crypt? ( >=app-crypt/gpgme-1.0.0 )
34 otr? ( >=net-libs/libotr-3.1.0 )
35 aspell? ( app-text/aspell )
36 vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )
37 idn? ( net-dns/libidn:= )
38 spell? ( app-text/enchant:0 )
42 >=net-libs/loudmouth-1.4.3-r1[ssl?]"
46 DOCS=( AUTHORS ChangeLog NEWS README TODO mcabberrc.example doc/README_PGP.txt )
49 if use aspell && use spell; then
50 ewarn "NOTE: You have both USE flags 'aspell' and 'spell' enabled, enchant (USE flag 'spell') will be preferred."
57 $(use_enable crypt gpgme) \
59 $(use_enable aspell) \
60 $(use_enable spell enchant) \
61 $(use_with idn libidn)
67 # clean unneeded language documentation
69 use l10n_${i} || rm -rf "${ED}"/usr/share/${PN}/help/${i}
73 insinto /usr/share/${PN}/themes
74 doins "${S}"/contrib/themes/*
76 # contrib generic scripts
77 exeinto /usr/share/${PN}/scripts
78 doexe "${S}"/contrib/*.{pl,py}
80 # contrib event scripts
81 exeinto /usr/share/${PN}/scripts/events
82 doexe "${S}"/contrib/events/*
84 if use vim-syntax; then
85 cd contrib/vim/ || die
87 insinto /usr/share/vim/vimfiles/syntax
88 doins mcabber_log-syntax.vim
90 insinto /usr/share/vim/vimfiles/ftdetect
91 doins mcabber_log-ftdetect.vim
94 readme.gentoo_create_doc
98 readme.gentoo_print_elog