annotate net-im/psi-plus/psi-plus-0.16.568.608.ebuild @ 440:d27b7787b1f8

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