blob: 7b990a58d36194aa9d683e1a57316924b023b7da (
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
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="4"
PYTHON_DEPEND="2"
#SUPPORT_PYTHON_ABIS="1"
RESTRICT_PYTHON_ABIS="3.*"
inherit multilib python
DESCRIPTION="Third-party plugins for cairo-dock"
HOMEPAGE="http://www.glx-dock.org/mc_album.php?a=7"
SRC_URI_BASE="http://download.tuxfamily.org/glxdock/mediacolor/album7"
SRC_URI="pidgin? (
${SRC_URI_BASE}/1316892682_9d758c4297/Pidgin.tar.gz -> Pidgin-${PV}.tar.gz
http://home.arcor.de/dpolke/distfiles/Pidgin-Purple-theme.tar.bz2 )
xchat? ( ${SRC_URI_BASE}/1316892747_0477b9914d/Xchat.tar.gz -> Xchat-${PV}.tar.gz )"
LICENSE="|| ( GPL-2 GPL-3 )"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="pidgin xchat"
REQUIRED_USE="|| ( ${IUSE} )"
RDEPEND="=x11-plugins/cd-plugins-core-${PV}*[python]"
DEPEND=""
S="${WORKDIR}"
pkg_setup() {
python_set_active_version 2
python_pkg_setup
}
src_prepare() {
python_convert_shebangs -r 2 .
# fix preview link
if use pidgin; then
mv Pidgin/themes/Eve-Wall-E/preview{@,} || die
fi
}
my_installplugin() {
if use $1; then
local CD_THIRDPARTY_DIR="/usr/$(get_libdir)/cairo-dock/third-party"
dodir "${CD_THIRDPARTY_DIR}"
sed -e "/^from /s/\(CDApplet\)/cairodock.\1/" \
-e "/CDApplet$/s/$/ as CDApplet/" \
-i $2/$2 || die
cp -R $2 "${ED}/${CD_THIRDPARTY_DIR}/" || die
fi
}
src_install() {
my_installplugin pidgin Pidgin
my_installplugin xchat Xchat
}
pkg_postinst() {
elog "These plugins can be made available by creating a symlink from"
elog "'${ROOT}usr/$(get_libdir)/cairo-dock/third-party' to"
elog "'\${HOME}/.config/cairo-dock/third-party'"
}
|