annotate net-im/psi-plus/psi-plus-0.16.449.ebuild @ 378:2288352e429d

add a ebuild for psi plus
author Dirk Olmes <dirk@xanthippe.ping.de>
date Tue, 03 Mar 2015 11:03:08 +0100
parents
children 8d5629e582b5
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"
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
16 IUSE="crypt dbus debug doc jingle spell ssl xscreensaver whiteboarding"
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 #DOC_CONTENTS='Psi+ support(USE="extras") was removed from ebuild since 0.15'
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
40 #FORCE_PRINT_ELOG=1
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_prepare() {
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
43 epatch_user
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
44 }
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
45
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
46 src_configure() {
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
47 # 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
48 local confcmd="./configure
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
49 --prefix=/usr
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
50 --datadir=/usr/share
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
51 --libdir=/usr/lib64
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
52 --disable-growl
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
53 $(use dbus || echo '--disable-qdbus')
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
54 $(use debug && echo '--debug')
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
55 $(use spell || echo '--disable-aspell')
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
56 $(use spell || echo '--disable-enchant')
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
57 $(use xscreensaver || echo '--disable-xss')
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
58 $(use whiteboarding && echo '--enable-whiteboarding')"
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
59
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
60 echo ${confcmd}
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
61 ${confcmd} || die "configure failed"
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
62 ## Makefile is not always created...
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
63 #[[ ! -f Makefile ]] && die "configure failed"
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
64 }
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
65
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
66 pkg_preinst() {
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
67 gnome2_icon_savelist
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
68 }
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
69
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
70 pkg_postinst() {
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
71 gnome2_icon_cache_update
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
72 }
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
73
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
74 pkg_postrm() {
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
75 gnome2_icon_cache_update
2288352e429d add a ebuild for psi plus
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
76 }