annotate net-im/mcabber/mcabber-0.10.3.ebuild @ 537:93a5a4b11943

vscodium update to 1.50.0
author Dirk Olmes <dirk.olmes@codedo.de>
date Sat, 10 Oct 2020 10:32:43 +0200
parents d130eab1967f
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
375
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
1 # Copyright 1999-2014 Gentoo Foundation
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
2 # Distributed under the terms of the GNU General Public License v2
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
3 # $Header: /var/cvsroot/gentoo-x86/net-im/mcabber/mcabber-0.10.2_p20131025-r1.ebuild,v 1.1 2014/03/30 12:49:40 wschlich Exp $
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
4
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
5 EAPI=5
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
6
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
7 inherit flag-o-matic autotools-utils
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
8
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
9 DESCRIPTION="A small Jabber console client with various features, like MUC, SSL, PGP"
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
10 HOMEPAGE="http://mcabber.com/"
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
11 SRC_URI="http://mcabber.com/files/mcabber-${PV}.tar.bz2"
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
12
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
13 LICENSE="GPL-2"
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
14 SLOT="0"
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
15 KEYWORDS="~alpha ~amd64 ~arm ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
16
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
17 IUSE="aspell crypt idn modules otr spell ssl vim-syntax"
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
18
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
19 LANGS="cs de fr it nl pl ru uk"
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
20 # localized help versions are installed only, when LINGUAS var is set
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
21 for i in ${LANGS}; do
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
22 IUSE="${IUSE} linguas_${i}"
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
23 done;
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
24
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
25 RDEPEND="crypt? ( >=app-crypt/gpgme-1.0.0 )
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
26 otr? ( >=net-libs/libotr-3.1.0 )
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
27 aspell? ( app-text/aspell )
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
28 vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
29 idn? ( net-dns/libidn )
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
30 spell? ( app-text/enchant )
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
31 dev-libs/glib:2
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
32 sys-libs/ncurses
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
33 >=net-libs/loudmouth-1.4.3-r1[ssl?]"
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
34 DEPEND="${RDEPEND}
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
35 virtual/pkgconfig"
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
36
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
37 ## autotools-utils.eclass settings
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
38 AUTOTOOLS_AUTORECONF="1"
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
39 AUTOTOOLS_IN_SOURCE_BUILD="1"
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
40 DOCS=( AUTHORS ChangeLog NEWS README TODO mcabberrc.example doc/README_PGP.txt )
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
41 #PATCHES=(
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
42 # "${FILESDIR}/${P}-vim-ftdetect.patch"
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
43 #)
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
44
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
45 pkg_setup() {
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
46 if use aspell && use spell; then
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
47 ewarn "NOTE: You have both USE flags 'aspell' and 'spell' enabled, enchant (USE flag 'spell') will be preferred."
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
48 fi
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
49 }
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
50
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
51 src_configure() {
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
52 local myeconfargs=(
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
53 $(use_enable crypt gpgme) \
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
54 $(use_enable otr) \
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
55 $(use_enable aspell) \
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
56 $(use_enable spell enchant) \
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
57 $(use_enable modules) \
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
58 $(use_with idn libidn)
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
59 )
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
60 autotools-utils_src_configure
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
61 }
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
62
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
63 src_install() {
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
64 autotools-utils_src_install
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
65
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
66 # clean unneeded language documentation
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
67 for i in ${LANGS}; do
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
68 use linguas_${i} || rm -rf "${ED}"/usr/share/${PN}/help/${i}
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
69 done
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
70
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
71 # contrib themes
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
72 insinto /usr/share/${PN}/themes
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
73 doins "${S}"/contrib/themes/*
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
74
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
75 # contrib generic scripts
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
76 exeinto /usr/share/${PN}/scripts
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
77 doexe "${S}"/contrib/*.{pl,py}
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
78
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
79 # contrib event scripts
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
80 exeinto /usr/share/${PN}/scripts/events
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
81 doexe "${S}"/contrib/events/*
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
82
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
83 if use vim-syntax; then
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
84 cd contrib/vim/ || die
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
85
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
86 insinto /usr/share/vim/vimfiles/syntax
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
87 doins mcabber_log-syntax.vim
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
88
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
89 insinto /usr/share/vim/vimfiles/ftdetect
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
90 doins mcabber_log-ftdetect.vim
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
91 fi
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
92 }
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
93
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
94 pkg_postinst() {
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
95 elog
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
96 elog "MCabber requires you to create a subdirectory .mcabber in your home"
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
97 elog "directory and to place a configuration file there."
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
98 elog "An example mcabberrc was installed as part of the documentation."
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
99 elog "To create a new mcabberrc based on the example mcabberrc, execute the"
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
100 elog "following commands:"
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
101 elog
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
102 elog " mkdir -p ~/.mcabber"
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
103 elog " bzcat ${EROOT}usr/share/doc/${PF}/mcabberrc.example.bz2 >~/.mcabber/mcabberrc"
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
104 elog
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
105 elog "Then edit ~/.mcabber/mcabberrc with your favorite editor."
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
106 elog
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
107 elog "See the CONFIGURATION FILE and FILES sections of the mcabber"
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
108 elog "manual page (section 1) for more information."
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
109 elog
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
110 elog "From version 0.9.0 on, MCabber supports PGP encryption of messages."
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
111 elog "See README_PGP.txt for details."
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
112 echo
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
113 einfo "Check out ${EROOT}usr/share/${PN} for contributed themes and event scripts."
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
114 echo
d130eab1967f add mcabber build
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
115 }