annotate net-im/psi-plus/psi-plus-1.2.109.ebuild @ 475:b01471568f38

new ebuild for vscodium
author Dirk Olmes <dirk@xanthippe.ping.de>
date Fri, 14 Jun 2019 11:42:39 +0200
parents 175c21f9bfe2
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
452
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
1
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
2 EAPI=5
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
3
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
4 inherit eutils l10n multilib gnome2-utils
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
5
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
6 DESCRIPTION="Qt5 Jabber client, with Licq-like interface"
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
7 HOMEPAGE="https://github.com/psi-plus/psi-plus-snapshots/"
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
8 SRC_URI="https://github.com/psi-plus/psi-plus-snapshots/archive/${PV}.tar.gz -> ${P}.tar.gz"
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
9
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
10 S="${WORKDIR}/psi-plus-snapshots-${PV}"
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
11
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
12 LICENSE="GPL-2"
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
13 SLOT="0"
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
14 KEYWORDS="~amd64 ~x86"
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
15 IUSE="autoreplyplugin crypt dbus debug doc jingle otrplugin spell ssl xscreensaver watcherplugin whiteboarding"
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
16 #RESTRICT="test"
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
17
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
18 RDEPEND="app-arch/unzip
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
19 dev-qt/qtgui:5
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
20 >=app-crypt/qca-2.1.3:2[qt5(+)]
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
21 x11-libs/libX11
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
22 dbus? ( dev-qt/qtdbus:5 )
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
23 spell? ( >=app-text/enchant-1.3.0 )
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
24 xscreensaver? ( x11-libs/libXScrnSaver )
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
25 whiteboarding? ( dev-qt/qtsvg:5 )
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
26 || ( >=sys-libs/zlib-1.2.5.1-r2[minizip] <sys-libs/zlib-1.2.5.1-r1 )"
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
27
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
28 DEPEND="${RDEPEND}
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
29 sys-devel/qconf
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
30 doc? ( app-doc/doxygen )"
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
31
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
32 PDEPEND="crypt? ( app-crypt/qca:2[gpg] )
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
33 jingle? ( net-im/psimedia
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
34 app-crypt/qca:2[ssl] )
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
35 ssl? ( app-crypt/qca:2[ssl] )
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
36 otrplugin? ( net-libs/libotr app-text/htmltidy )"
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
37
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
38 src_prepare() {
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
39 epatch_user
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
40 }
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
41
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
42 src_configure() {
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
43 # unable to use econf because of non-standard configure script
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
44 local confcmd="./configure
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
45 --qtselect=5
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
46 --prefix=/usr
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
47 --datadir=/usr/share
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
48 --libdir=/usr/lib64
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
49 --disable-growl
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
50 --with-qca-inc=/usr/include/QtCrypto
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
51 --with-qca-lib=/usr/lib64
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
52 $(use dbus || echo '--disable-qdbus')
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
53 $(use debug && echo '--debug')
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
54 $(use spell || echo '--disable-aspell')
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
55 $(use spell || echo '--disable-enchant')
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
56 $(use xscreensaver || echo '--disable-xss')
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
57 $(use whiteboarding && echo '--enable-whiteboarding')"
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
58
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
59 echo ${confcmd}
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
60 ${confcmd} || die "configure failed"
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
61 ## Makefile is not always created...
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
62 #[[ ! -f Makefile ]] && die "configure failed"
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
63 }
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
64
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
65 src_compile() {
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
66 emake || die "emake failed"
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
67
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
68 if use autoreplyplugin; then
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
69 cd src/plugins/generic/autoreplyplugin
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
70 qmake
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
71 make
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
72 cd ../../../..
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
73 fi
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
74
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
75 if use otrplugin; then
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
76 cd src/plugins/generic/otrplugin
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
77 qmake
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
78 make
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
79 cd ../../../..
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
80 fi
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
81
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
82 if use watcherplugin; then
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
83 cd src/plugins/generic/watcherplugin
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
84 qmake
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
85 make
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
86 cd ../../../..
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
87 fi
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
88 }
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
89
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
90 src_install() {
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
91 emake DESTDIR="${D}" INSTALL_ROOT="${D}" install
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
92 dodoc README TODO ChangeLog
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
93
454
175c21f9bfe2 plugins go to a different location now
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 452
diff changeset
94 local plugindir="/usr/share/psi-plus/plugins"
452
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
95 if use autoreplyplugin; then
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
96 cd src/plugins/generic/autoreplyplugin
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
97
454
175c21f9bfe2 plugins go to a different location now
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 452
diff changeset
98 strip --strip-unneeded libautoreplyplugin.so
175c21f9bfe2 plugins go to a different location now
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 452
diff changeset
99
452
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
100 dodir "${plugindir}"
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
101 insinto "${plugindir}"
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
102 doins libautoreplyplugin.so
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
103
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
104 cd ../../../..
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
105 fi
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
106
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
107 if use otrplugin; then
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
108 cd src/plugins/generic/otrplugin
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
109
454
175c21f9bfe2 plugins go to a different location now
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 452
diff changeset
110 strip --strip-unneeded libotrplugin.so
175c21f9bfe2 plugins go to a different location now
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 452
diff changeset
111
452
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
112 dodir "${plugindir}"
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
113 insinto "${plugindir}"
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
114 doins libotrplugin.so
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
115
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
116 cd ../../../..
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
117 fi
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
118
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
119 if use watcherplugin; then
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
120 cd src/plugins/generic/watcherplugin
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
121
454
175c21f9bfe2 plugins go to a different location now
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 452
diff changeset
122 strip --strip-unneeded libwatcherplugin.so
175c21f9bfe2 plugins go to a different location now
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 452
diff changeset
123
452
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
124 dodir "${plugindir}"
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
125 insinto "${plugindir}"
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
126 doins libwatcherplugin.so
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
127
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
128 cd ../../../..
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
129 fi
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
130 }
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
131
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
132 pkg_preinst() {
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
133 gnome2_icon_savelist
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
134 }
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
135
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
136 pkg_postinst() {
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
137 gnome2_icon_cache_update
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
138 }
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
139
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
140 pkg_postrm() {
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
141 gnome2_icon_cache_update
90f4c3220d2e add a new ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
142 }