blob: ede7a387defb7b6967427d87e5839a75991ef124 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-plugins/purple-plugin_pack/purple-plugin_pack-2.5.1-r1.ebuild,v 1.4 2009/09/06 14:41:12 maekke Exp $
EAPI="2"
inherit eutils
DESCRIPTION="A package with many different plugins for pidgin and libpurple"
HOMEPAGE="http://plugins.guifications.org"
SRC_URI="mirror://gentoo/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 hppa ppc x86"
IUSE="talkfilters debug gtk ncurses spell"
RDEPEND="net-im/pidgin[gtk?,ncurses?]
talkfilters? ( app-text/talkfilters )
spell? ( app-text/gtkspell )"
DEPEND="${RDEPEND}
dev-lang/python"
src_configure() {
local plugins=""
# XMMS Remote is disabled due to XMMS being masked
DISABLED_PLUGINS="xmmsremote"
use talkfilters || DISABLED_PLUGINS="${DISABLED_PLUGINS} talkfilters"
use spell || DISABLED_PLUGINS="${DISABLED_PLUGINS} switchspell"
plugins="$(python plugin_pack.py -p dist_dirs)"
use gtk && plugins="${plugins} $(python plugin_pack.py -P dist_dirs)"
use ncurses && plugins="${plugins} $(python plugin_pack.py -f dist_dirs)"
# Disable incomplete plugins too
DISABLED_PLUGINS="${DISABLED_PLUGINS} $(python plugin_pack.py -i dist_dirs)"
for i in $DISABLED_PLUGINS; do
plugins="${plugins//$i/}"
plugins="${plugins// / }"
plugins="${plugins/# /}"
plugins="${plugins/% /}"
echo disabled $i
echo $plugins
done
plugins="${plugins// /,}"
econf --with-plugins="${plugins}" $(use_enable debug) || die "econf failed"
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
dodoc AUTHORS ChangeLog NEWS README VERSION || die
}
|