annotate net-im/psi-plus/psi-plus-0.16.449.ebuild @ 392:19a5242dd10f

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