Gentoo Archives: gentoo-commits

From: Andrey Utkin <andrey_utkin@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-im/mcabber/
Date: Tue, 31 Dec 2019 00:48:55
Message-Id: 1577753273.1332a8d46f2b52296e9bcb79242bdd6c3d8b7dc1.andrey_utkin@gentoo
1 commit: 1332a8d46f2b52296e9bcb79242bdd6c3d8b7dc1
2 Author: Andrey Utkin <andrey_utkin <AT> gentoo <DOT> org>
3 AuthorDate: Mon Dec 30 22:44:40 2019 +0000
4 Commit: Andrey Utkin <andrey_utkin <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 31 00:47:53 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1332a8d4
7
8 net-im/mcabber: add new revision 1.1.0-r2
9
10 Cloned from 9999.
11 To address a bug in a subsequent commit.
12
13 Bug: https://bugs.gentoo.org/699972
14 Package-Manager: Portage-2.3.66, Repoman-2.3.16
15 Signed-off-by: Andrey Utkin <andrey_utkin <AT> gentoo.org>
16
17 net-im/mcabber/mcabber-1.1.0-r2.ebuild | 99 ++++++++++++++++++++++++++++++++++
18 1 file changed, 99 insertions(+)
19
20 diff --git a/net-im/mcabber/mcabber-1.1.0-r2.ebuild b/net-im/mcabber/mcabber-1.1.0-r2.ebuild
21 new file mode 100644
22 index 00000000000..75d371a188d
23 --- /dev/null
24 +++ b/net-im/mcabber/mcabber-1.1.0-r2.ebuild
25 @@ -0,0 +1,99 @@
26 +# Copyright 1999-2019 Gentoo Authors
27 +# Distributed under the terms of the GNU General Public License v2
28 +
29 +EAPI=7
30 +
31 +inherit readme.gentoo-r1
32 +
33 +DESCRIPTION="A small Jabber console client with various features, like MUC, SSL, PGP"
34 +HOMEPAGE="http://mcabber.com/"
35 +
36 +if [[ "${PV}" == 9999 ]]; then
37 + inherit mercurial
38 + EHG_REPO_URI="https://bitbucket.org/McKael/mcabber"
39 + EHG_CHECKOUT_DIR="${WORKDIR}"
40 + EHG_BOOTSTRAP="autogen.sh"
41 + S="${WORKDIR}/${PN}"
42 +else
43 + SRC_URI="http://mcabber.com/files/${P}.tar.bz2"
44 + KEYWORDS="~alpha ~amd64 ~arm ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
45 +fi
46 +
47 +LICENSE="GPL-2"
48 +SLOT="0"
49 +
50 +IUSE="aspell crypt idn otr spell ssl vim-syntax"
51 +
52 +LANGS="cs de fr it nl pl ru uk"
53 +# localized help versions are installed only, when L10N var is set
54 +for i in ${LANGS}; do
55 + IUSE="${IUSE} l10n_${i}"
56 +done;
57 +
58 +RDEPEND="crypt? ( >=app-crypt/gpgme-1.0.0 )
59 + otr? ( >=net-libs/libotr-3.1.0 )
60 + aspell? ( app-text/aspell )
61 + vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )
62 + idn? ( net-dns/libidn:= )
63 + spell? ( app-text/enchant )
64 + dev-libs/glib:2
65 + net-libs/libnsl:0=
66 + sys-libs/ncurses:0=
67 + >=net-libs/loudmouth-1.4.3-r1[ssl?]"
68 +DEPEND="${RDEPEND}
69 + virtual/pkgconfig"
70 +
71 +DOCS=( AUTHORS ChangeLog NEWS README TODO mcabberrc.example doc/README_PGP.txt )
72 +
73 +pkg_setup() {
74 + if use aspell && use spell; then
75 + ewarn "NOTE: You have both USE flags 'aspell' and 'spell' enabled, enchant (USE flag 'spell') will be preferred."
76 + fi
77 +}
78 +
79 +src_configure() {
80 + econf \
81 + --enable-modules \
82 + $(use_enable crypt gpgme) \
83 + $(use_enable otr) \
84 + $(use_enable aspell) \
85 + $(use_enable spell enchant) \
86 + $(use_with idn libidn)
87 +}
88 +
89 +src_install() {
90 + default
91 +
92 + # clean unneeded language documentation
93 + for i in ${LANGS}; do
94 + use l10n_${i} || rm -rf "${ED}"/usr/share/${PN}/help/${i}
95 + done
96 +
97 + # contrib themes
98 + insinto /usr/share/${PN}/themes
99 + doins "${S}"/contrib/themes/*
100 +
101 + # contrib generic scripts
102 + exeinto /usr/share/${PN}/scripts
103 + doexe "${S}"/contrib/*.{pl,py}
104 +
105 + # contrib event scripts
106 + exeinto /usr/share/${PN}/scripts/events
107 + doexe "${S}"/contrib/events/*
108 +
109 + if use vim-syntax; then
110 + cd contrib/vim/ || die
111 +
112 + insinto /usr/share/vim/vimfiles/syntax
113 + doins mcabber_log-syntax.vim
114 +
115 + insinto /usr/share/vim/vimfiles/ftdetect
116 + doins mcabber_log-ftdetect.vim
117 + fi
118 +
119 + readme.gentoo_create_doc
120 +}
121 +
122 +pkg_postinst() {
123 + readme.gentoo_print_elog
124 +}