Mercurial > hg > portage
annotate net-im/psi-plus/psi-plus-1.4.924.ebuild @ 560:85f9a2fbc16e
VisualVM update
author | Dirk Olmes <dirk.olmes@codedo.de> |
---|---|
date | Sat, 01 Oct 2022 16:37:03 +0200 |
parents | bfa37ca24eec |
children |
rev | line source |
---|---|
491 | 1 |
2 EAPI=7 | |
3 | |
4 #inherit eutils l10n multilib gnome2-utils | |
555
bfa37ca24eec
Fixes für nicht mehr existierende eclasses
Dirk Olmes <dirk.olmes@codedo.de>
parents:
491
diff
changeset
|
5 inherit qmake-utils xdg |
491 | 6 |
7 DESCRIPTION="Qt5 Jabber client, with Licq-like interface" | |
8 HOMEPAGE="https://github.com/psi-plus/psi-plus-snapshots/" | |
9 SRC_URI="https://github.com/psi-plus/psi-plus-snapshots/archive/${PV}.tar.gz -> ${P}.tar.gz" | |
10 | |
11 S="${WORKDIR}/psi-plus-snapshots-${PV}" | |
12 | |
13 LICENSE="GPL-2" | |
14 SLOT="0" | |
15 KEYWORDS="~amd64 ~x86" | |
16 IUSE="aspell autoreplyplugin crypt debug doc enchant hunspell jingle keychain omemo otrplugin spell ssl xscreensaver watcherplugin webkit +webengine whiteboarding" | |
17 | |
18 BDEPEND=" | |
19 dev-qt/linguist-tools:5 | |
20 virtual/pkgconfig | |
21 " | |
22 | |
23 DEPEND=" | |
24 app-crypt/qca:2[ssl] | |
25 dev-qt/qtconcurrent:5 | |
26 dev-qt/qtcore:5 | |
27 dev-qt/qtdbus:5 | |
28 dev-qt/qtgui:5 | |
29 dev-qt/qtmultimedia:5 | |
30 dev-qt/qtnetwork:5 | |
31 dev-qt/qtwidgets:5 | |
32 dev-qt/qtx11extras:5 | |
33 dev-qt/qtxml:5 | |
34 net-dns/libidn:0 | |
35 net-libs/http-parser | |
36 sys-libs/zlib[minizip] | |
37 x11-libs/libX11 | |
38 x11-libs/libxcb | |
39 aspell? ( app-text/aspell ) | |
40 enchant? ( >=app-text/enchant-1.3.0 ) | |
41 hunspell? ( app-text/hunspell:= ) | |
42 keychain? ( dev-libs/qtkeychain ) | |
43 omemo? ( net-libs/libsignal-protocol-c ) | |
44 otrplugin? ( net-libs/libotr app-text/htmltidy ) | |
45 webengine? ( | |
46 dev-qt/qtwebchannel:5 | |
47 dev-qt/qtwebengine:5[widgets] | |
48 ) | |
49 webkit? ( dev-qt/qtwebkit:5 ) | |
50 whiteboarding? ( dev-qt/qtsvg:5 ) | |
51 xscreensaver? ( x11-libs/libXScrnSaver ) | |
52 " | |
53 | |
54 RDEPEND="${DEPEND} | |
55 dev-qt/qtimageformats | |
56 " | |
57 | |
58 src_configure() { | |
59 CONF=( | |
60 --prefix="${EPREFIX}"/usr | |
61 --libdir="${EPREFIX}"/usr/$(get_libdir) | |
62 --no-separate-debug-info | |
63 --qtdir="$(qt5_get_bindir)/.." | |
64 $(use_enable aspell) | |
65 $(use_enable enchant) | |
66 $(use_enable hunspell) | |
67 $(use_enable keychain) | |
68 $(use_enable xscreensaver xss) | |
69 $(use_enable whiteboarding) | |
70 ) | |
71 | |
72 use debug && CONF+=("--debug") | |
73 use webengine && CONF+=("--enable-webkit" "--with-webkit=qtwebengine") | |
74 use webkit && CONF+=("--enable-webkit" "--with-webkit=qtwebkit") | |
75 | |
76 # This may generate warnings if passed option already matches with default. | |
77 # Just ignore them. It's how qconf-based configure works and will be fixed in | |
78 # future qconf versions. | |
79 ./configure "${CONF[@]}" || die "configure failed" | |
80 | |
81 eqmake5 psi.pro | |
82 } | |
83 | |
84 src_compile() { | |
85 emake | |
86 use doc && emake -C doc api_public | |
87 | |
88 if use autoreplyplugin; then | |
89 cd src/plugins/generic/autoreplyplugin | |
90 qmake | |
91 make | |
92 cd ../../../.. | |
93 fi | |
94 | |
95 if use otrplugin; then | |
96 cd src/plugins/generic/otrplugin | |
97 qmake | |
98 make | |
99 cd ../../../.. | |
100 fi | |
101 | |
102 if use omemo; then | |
103 cd src/plugins/generic/omemoplugin | |
104 qmake | |
105 make | |
106 cd ../../../.. | |
107 fi | |
108 | |
109 if use watcherplugin; then | |
110 cd src/plugins/generic/watcherplugin | |
111 qmake | |
112 make | |
113 cd ../../../.. | |
114 fi | |
115 } | |
116 | |
117 src_install() { | |
118 emake INSTALL_ROOT="${D}" install | |
119 | |
120 # this way the docs will be installed in the standard gentoo dir | |
121 rm "${ED}"/usr/share/${PN}/{COPYING,README.html} || die "doc files set seems to have changed" | |
122 newdoc iconsets/roster/README README.roster | |
123 newdoc iconsets/system/README README.system | |
124 newdoc certs/README README.certs | |
125 dodoc README.html | |
126 | |
127 use doc && HTML_DOCS=( doc/api/. ) | |
128 einstalldocs | |
129 | |
130 local plugindir="/usr/share/psi-plus/plugins" | |
131 if use autoreplyplugin; then | |
132 cd src/plugins/generic/autoreplyplugin | |
133 | |
134 strip --strip-unneeded libautoreplyplugin.so | |
135 | |
136 dodir "${plugindir}" | |
137 insinto "${plugindir}" | |
138 doins libautoreplyplugin.so | |
139 | |
140 cd ../../../.. | |
141 fi | |
142 | |
143 if use otrplugin; then | |
144 cd src/plugins/generic/otrplugin | |
145 | |
146 strip --strip-unneeded libotrplugin.so | |
147 | |
148 dodir "${plugindir}" | |
149 insinto "${plugindir}" | |
150 doins libotrplugin.so | |
151 | |
152 cd ../../../.. | |
153 fi | |
154 | |
155 if use omemo; then | |
156 cd src/plugins/generic/omemoplugin | |
157 | |
158 strip --strip-unneeded libomemoplugin.so | |
159 | |
160 dodir "${plugindir}" | |
161 insinto "${plugindir}" | |
162 doins libomemoplugin.so | |
163 | |
164 cd ../../../.. | |
165 fi | |
166 | |
167 if use watcherplugin; then | |
168 cd src/plugins/generic/watcherplugin | |
169 | |
170 strip --strip-unneeded libwatcherplugin.so | |
171 | |
172 dodir "${plugindir}" | |
173 insinto "${plugindir}" | |
174 doins libwatcherplugin.so | |
175 | |
176 cd ../../../.. | |
177 fi | |
178 } | |
179 | |
180 pkg_postinst() { | |
181 xdg_pkg_postinst | |
182 } |