annotate net-im/psi-plus/psi-plus-0.16.449.ebuild @ 379:8d5629e582b5

add a USE flag for enabling plugins
author Dirk Olmes <dirk@xanthippe.ping.de>
date Tue, 03 Mar 2015 16:09:31 +0100
parents 2288352e429d
children 9d68e84e722e
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="mirror://sourceforge/${PN}/${P}.tar.bz2"
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
9 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
10
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
11 S="${WORKDIR}/psi-plus-snapshots-${PV}"
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
12
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
13 LICENSE="GPL-2"
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
14 SLOT="0"
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
15 KEYWORDS="~amd64 ~x86"
379
8d5629e582b5 add a USE flag for enabling plugins
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 378
diff changeset
16 IUSE="crypt dbus debug doc jingle plugins spell ssl xscreensaver whiteboarding"
378
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
17 #RESTRICT="test"
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
18
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
19 RDEPEND="app-arch/unzip
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
20 >=dev-qt/qtgui-4.7:4[qt3support]
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
21 >=dev-qt/qt3support-4.7:4
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
22 >=app-crypt/qca-2.0.2:2[qt4(+)]
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
23 x11-libs/libX11
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
24 dbus? ( >=dev-qt/qtdbus-4.7:4 )
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
25 spell? ( >=app-text/enchant-1.3.0 )
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
26 xscreensaver? ( x11-libs/libXScrnSaver )
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
27 whiteboarding? ( dev-qt/qtsvg:4 )
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
28 || ( >=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
29
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
30 DEPEND="${RDEPEND}
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
31 sys-devel/qconf
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
32 doc? ( app-doc/doxygen )"
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
33
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
34 PDEPEND="crypt? ( app-crypt/qca:2[gpg] )
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
35 jingle? ( net-im/psimedia
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
36 app-crypt/qca:2[openssl] )
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
37 ssl? ( app-crypt/qca:2[openssl] )"
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
38
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
39 src_prepare() {
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
40 epatch_user
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
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
43 src_configure() {
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
44 # 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
45 local confcmd="./configure
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
46 --prefix=/usr
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
47 --datadir=/usr/share
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
48 --libdir=/usr/lib64
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
49 --disable-growl
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
50 $(use dbus || echo '--disable-qdbus')
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
51 $(use debug && echo '--debug')
379
8d5629e582b5 add a USE flag for enabling plugins
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 378
diff changeset
52 $(use plugins && echo '--enable-plugins')
378
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
53 $(use spell || echo '--disable-aspell')
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
54 $(use spell || echo '--disable-enchant')
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
55 $(use xscreensaver || echo '--disable-xss')
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
56 $(use whiteboarding && echo '--enable-whiteboarding')"
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
57
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
58 echo ${confcmd}
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
59 ${confcmd} || die "configure failed"
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
60 ## Makefile is not always created...
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
61 #[[ ! -f Makefile ]] && die "configure failed"
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
62 }
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
63
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
64 pkg_preinst() {
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
65 gnome2_icon_savelist
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
66 }
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
67
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
68 pkg_postinst() {
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
69 gnome2_icon_cache_update
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
70 }
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
71
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
72 pkg_postrm() {
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
73 gnome2_icon_cache_update
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
74 }