forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
lc-azoth-9999.ebuild
116 lines (106 loc) · 3.2 KB
/
lc-azoth-9999.ebuild
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit leechcraft
DESCRIPTION="Azoth, the modular IM client for LeechCraft"
SLOT="0"
KEYWORDS=""
IUSE="debug doc +acetamide +adiumstyles astrality +autoidler +autopaste +birthdaynotifier
+chathistory +crypt +depester +embedmedia +herbicide +hili +isterique +juick
+keeso +lastseen +latex media +metacontacts +murm +nativeemoticons +otroid sarin
shx +spell +standardstyles +vader velvetbird +woodpecker +xmpp +xtazy"
REQUIRED_USE="|| ( standardstyles adiumstyles )"
COMMON_DEPEND="
~app-leechcraft/lc-core-${PV}
dev-qt/qtdbus:5
dev-qt/qtnetwork:5
dev-qt/qtsql:5
dev-qt/qtwebkit:5
dev-qt/qtxml:5
astrality? ( net-libs/telepathy-qt[qt5(+)] )
autoidler? (
dev-qt/qtx11extras:5
x11-libs/libXScrnSaver
)
crypt? ( app-crypt/qca:2[qt5] )
lastseen? ( dev-qt/qtconcurrent:5 )
media? ( dev-qt/qtmultimedia:5 )
otroid? (
dev-qt/qtconcurrent:5
net-libs/libotr
)
sarin? (
dev-qt/qtconcurrent:5
net-libs/tox
)
woodpecker? ( dev-libs/kqoauth )
xmpp? (
>=net-libs/qxmpp-0.9.3-r1
media? ( net-libs/qxmpp[speex] )
)
xtazy? ( ~app-leechcraft/lc-xtazy-${PV} )
"
DEPEND="${COMMON_DEPEND}
doc? ( app-doc/doxygen[dot] )
"
RDEPEND="${COMMON_DEPEND}
astrality? (
net-im/telepathy-mission-control
net-voip/telepathy-haze
)
crypt? ( app-crypt/qca:2[gpg] )
latex? (
virtual/imagemagick-tools
virtual/latex-base
)
spell? ( ~app-leechcraft/lc-rosenthal-${PV} )
"
src_configure() {
local mycmakeargs=(
-DENABLE_CRYPT=$(usex crypt)
-DWITH_DOCS=$(usex doc)
-DENABLE_AZOTH_ACETAMIDE=$(usex acetamide)
-DENABLE_AZOTH_ADIUMSTYLES=$(usex adiumstyles)
-DENABLE_AZOTH_ASTRALITY=$(usex astrality)
-DENABLE_AZOTH_AUTOIDLER=$(usex autoidler)
-DENABLE_AZOTH_AUTOPASTE=$(usex autopaste)
-DENABLE_AZOTH_BIRTHDAYNOTIFIER=$(usex birthdaynotifier)
-DENABLE_AZOTH_CHATHISTORY=$(usex chathistory)
-DENABLE_AZOTH_DEPESTER=$(usex depester)
-DENABLE_AZOTH_EMBEDMEDIA=$(usex embedmedia)
-DENABLE_AZOTH_HERBICIDE=$(usex herbicide)
-DENABLE_AZOTH_HILI=$(usex hili)
-DENABLE_AZOTH_ISTERIQUE=$(usex isterique)
-DENABLE_AZOTH_JUICK=$(usex juick)
-DENABLE_AZOTH_KEESO=$(usex keeso)
-DENABLE_AZOTH_LASTSEEN=$(usex lastseen)
-DENABLE_AZOTH_MODNOK=$(usex latex)
-DENABLE_AZOTH_METACONTACTS=$(usex metacontacts)
-DENABLE_MEDIACALLS=$(usex media)
-DENABLE_AZOTH_MURM=$(usex murm)
-DENABLE_AZOTH_NATIVEEMOTICONS=$(usex nativeemoticons)
-DENABLE_AZOTH_OTROID=$(usex otroid)
-DENABLE_AZOTH_SARIN=$(usex sarin)
-DENABLE_AZOTH_SHX=$(usex shx)
-DENABLE_AZOTH_ROSENTHAL=$(usex spell)
-DENABLE_AZOTH_STANDARDSTYLES=$(usex standardstyles)
-DENABLE_AZOTH_VADER=$(usex vader)
-DENABLE_AZOTH_VELVETBIRD=$(usex velvetbird)
-DENABLE_AZOTH_WOODPECKER=$(usex woodpecker)
-DENABLE_AZOTH_XOOX=$(usex xmpp)
-DENABLE_AZOTH_XTAZY=$(usex xtazy)
)
cmake-utils_src_configure
}
src_install() {
cmake-utils_src_install
use doc && dohtml -r "${CMAKE_BUILD_DIR}"/out/html/*
}
pkg_postinst() {
if use spell; then
elog "You have enabled the Azoth Rosenthal plugin for"
elog "spellchecking. It uses Hunspell/Myspell dictionaries,"
elog "so install the ones for languages you use to enable"
elog "spellchecking."
fi
}