Gentoo Archives: gentoo-commits

From: Wolfram Schlich <wschlich@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-im/mcabber/
Date: Thu, 16 Feb 2017 16:19:40
Message-Id: 1487261955.cb5ddb9eeebd7bb2a60f778e6670842ae0de17b7.wschlich@gentoo
1 commit: cb5ddb9eeebd7bb2a60f778e6670842ae0de17b7
2 Author: Wolfram Schlich <wschlich <AT> gentoo <DOT> org>
3 AuthorDate: Thu Feb 16 16:19:15 2017 +0000
4 Commit: Wolfram Schlich <wschlich <AT> gentoo <DOT> org>
5 CommitDate: Thu Feb 16 16:19:15 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cb5ddb9e
7
8 net-im/mcabber: version bump, fixes bug #608800 / CVE-2017-5604
9
10 Package-Manager: portage-2.3.3
11
12 net-im/mcabber/Manifest | 1 +
13 net-im/mcabber/mcabber-1.0.5.ebuild | 116 ++++++++++++++++++++++++++++++++++++
14 2 files changed, 117 insertions(+)
15
16 diff --git a/net-im/mcabber/Manifest b/net-im/mcabber/Manifest
17 index 49a5b8c06b..6c5207c514 100644
18 --- a/net-im/mcabber/Manifest
19 +++ b/net-im/mcabber/Manifest
20 @@ -1 +1,2 @@
21 DIST mcabber-1.0.4.tar.bz2 605462 SHA256 63b6bc003fcceba4dc4b273ed1c71643c4f8d95e8696543d53f64a7672b1ce0a SHA512 f4f85abcdfa341489e47ba5290e9cce79cdd749753155003e3a9b5edd145e158c91d0a32fe07983196be5729134279f21fbe94511a41b98b793b415157b6b15b WHIRLPOOL 09f7d6e53e352a0e7087da0ddb1a9f5a717c447c2e7a3d9d3e1b14409e8dd4e95472a60af743a0fbb64d4ee296b8eb6654cfb3ce6030ea8abd95ba863eacb7f1
22 +DIST mcabber-1.0.5.tar.bz2 605483 SHA256 a0f200817d2b6196fe4d37918ce16f6fed83a3cef861d7165161e8b1cafcad47 SHA512 81b67899245902f495af7b44a5a0d710db69da731a00fb9ed84bdc0f88d5dc662f340817b1eaa843802c95105846234743eba52117f18bf12dd37a0da61d414d WHIRLPOOL ee09cc76d6e6f8507f6e78ed9f9d9f512f841d36d35d707593c15b9f0b3c9e1bc8910d1e0ff1cdf5ff6c34781a75eb7b1fd447789ba9a36f5137d8bf12dbacbe
23
24 diff --git a/net-im/mcabber/mcabber-1.0.5.ebuild b/net-im/mcabber/mcabber-1.0.5.ebuild
25 new file mode 100644
26 index 0000000000..7bf75fbf03
27 --- /dev/null
28 +++ b/net-im/mcabber/mcabber-1.0.5.ebuild
29 @@ -0,0 +1,116 @@
30 +# Copyright 1999-2017 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +# $Id$
33 +
34 +EAPI=5
35 +
36 +inherit flag-o-matic autotools-utils
37 +
38 +DESCRIPTION="A small Jabber console client with various features, like MUC, SSL, PGP"
39 +HOMEPAGE="http://mcabber.com/"
40 +#REV="a18e1b488f1c"
41 +#SRC_URI="http://mcabber.com/hg/index.cgi/archive/${REV}.tar.gz -> ${P}.tar.gz"
42 +SRC_URI="http://mcabber.com/files/${P}.tar.bz2"
43 +
44 +#S=${WORKDIR}/${PN}-${REV}/${PN}
45 +
46 +LICENSE="GPL-2"
47 +SLOT="0"
48 +KEYWORDS="~alpha ~amd64 ~arm ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
49 +
50 +IUSE="aspell crypt idn modules otr spell ssl vim-syntax"
51 +
52 +LANGS="cs de fr it nl pl ru uk"
53 +# localized help versions are installed only, when LINGUAS var is set
54 +for i in ${LANGS}; do
55 + IUSE="${IUSE} linguas_${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 + sys-libs/ncurses:0=
66 + >=net-libs/loudmouth-1.4.3-r1[ssl?]"
67 +DEPEND="${RDEPEND}
68 + virtual/pkgconfig"
69 +
70 +## autotools-utils.eclass settings
71 +AUTOTOOLS_AUTORECONF="1"
72 +AUTOTOOLS_IN_SOURCE_BUILD="1"
73 +DOCS=( AUTHORS ChangeLog NEWS README TODO mcabberrc.example doc/README_PGP.txt )
74 +
75 +pkg_setup() {
76 + if use aspell && use spell; then
77 + ewarn "NOTE: You have both USE flags 'aspell' and 'spell' enabled, enchant (USE flag 'spell') will be preferred."
78 + fi
79 +}
80 +
81 +src_configure() {
82 + local myeconfargs=(
83 + $(use_enable crypt gpgme) \
84 + $(use_enable otr) \
85 + $(use_enable aspell) \
86 + $(use_enable spell enchant) \
87 + $(use_enable modules) \
88 + $(use_with idn libidn)
89 + )
90 + autotools-utils_src_configure
91 +}
92 +
93 +src_install() {
94 + autotools-utils_src_install
95 +
96 + # clean unneeded language documentation
97 + for i in ${LANGS}; do
98 + use linguas_${i} || rm -rf "${ED}"/usr/share/${PN}/help/${i}
99 + done
100 +
101 + # contrib themes
102 + insinto /usr/share/${PN}/themes
103 + doins "${S}"/contrib/themes/*
104 +
105 + # contrib generic scripts
106 + exeinto /usr/share/${PN}/scripts
107 + doexe "${S}"/contrib/*.{pl,py}
108 +
109 + # contrib event scripts
110 + exeinto /usr/share/${PN}/scripts/events
111 + doexe "${S}"/contrib/events/*
112 +
113 + if use vim-syntax; then
114 + cd contrib/vim/ || die
115 +
116 + insinto /usr/share/vim/vimfiles/syntax
117 + doins mcabber_log-syntax.vim
118 +
119 + insinto /usr/share/vim/vimfiles/ftdetect
120 + doins mcabber_log-ftdetect.vim
121 + fi
122 +}
123 +
124 +pkg_postinst() {
125 + elog
126 + elog "MCabber requires you to create a subdirectory .mcabber in your home"
127 + elog "directory and to place a configuration file there."
128 + elog "An example mcabberrc was installed as part of the documentation."
129 + elog "To create a new mcabberrc based on the example mcabberrc, execute the"
130 + elog "following commands:"
131 + elog
132 + elog " mkdir -p ~/.mcabber"
133 + elog " bzcat ${EROOT}usr/share/doc/${PF}/mcabberrc.example.bz2 >~/.mcabber/mcabberrc"
134 + elog
135 + elog "Then edit ~/.mcabber/mcabberrc with your favorite editor."
136 + elog
137 + elog "See the CONFIGURATION FILE and FILES sections of the mcabber"
138 + elog "manual page (section 1) for more information."
139 + elog
140 + elog "From version 0.9.0 on, MCabber supports PGP encryption of messages."
141 + elog "See README_PGP.txt for details."
142 + echo
143 + einfo "Check out ${EROOT}usr/share/${PN} for contributed themes and event scripts."
144 + echo
145 +}