blob: c95d026c5d3245eecad32f96d61b53a6f28f31df (
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
# Copyright 1999-2008 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.2.0.ebuild,v 1.7 2008/04/01 02:48:18 tester Exp $
inherit eutils
DESCRIPTION="A package with many different plugins for pidgin and libpurple"
HOMEPAGE="http://plugins.guifications.org"
SRC_URI="http://downloads.guifications.org/plugins/Plugin%20Pack/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 hppa ~ppc x86"
IUSE="talkfilters debug gtk ncurses"
DEPEND="net-im/pidgin
talkfilters? ( app-text/talkfilters )"
RDEPEND="${DEPEND}"
pkg_setup() {
if use gtk && ! built_with_use net-im/pidgin gtk; then
eerror "You need to compile net-im/pidgin with USE=gtk to be"
eerror "able to compile these plugins with gtk"
die "Missing gtk USE flag on net-im/pidgin"
fi
if use ncurses && ! built_with_use net-im/pidgin ncurses; then
eerror "You need to compile net-im/pidgin with USE=ncurses to be"
eerror "able to compile these plugins with ncurses"
die "Missing ncurses USE flag on net-im/pidgin"
fi
}
src_compile() {
local plugins=""
# WARNING
# This code to select plugins wont work with 2.2.0
# because it ignores --with-plugins completely
# and just always builds everything
# XMMS Remote is disabled due to XMMS being masked
DISABLED_PLUGINS="xmmsremote"
use talkfilters || DISABLED_PLUGINS="${DISABLED_PLUGINS} talkfilters"
for i in *; do
[ -d ${i} ] || continue
# We manually disable these plugins
if [ -z "${DISABLED_PLUGINS##*${i}*}" ]; then
continue
fi
# Only directories with .build files are meant to be built
if [ ! -e ${i}/.build ]; then
continue
fi
# Those should be generic#
if [ -e ${i}/.purple-plugin ]; then
plugins="${plugins},${i}"
# These require gtk (ie pidgin)
elif [ -e ${i}/.pidgin-plugin ]; then
use gtk && plugins="${plugins},${i}"
# These require ncurses (aka finch)
elif [ -e ${i}/.finch-plugin ]; then
use ncurses && plugins="${plugins},${i}"
fi
done
econf --with-plugins="${plugins:1}" $(use_enable debug) || die "econf failed"
emake -j1 || die "emake failed"
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
dodoc AUTHORS ChangeLog NEWS README TODO VERSION
}
|