annotate net-im/psi-plus/psi-plus-0.16.451.ebuild @ 395:041db1ee4881

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