blob: d3f9f4a84a635fac0db8c82b8e0e8b142eafd8f6 (
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
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/xfce-base/xfdesktop/xfdesktop-4.4.2-r2.ebuild,v 1.1 2008/03/21 09:29:43 drac Exp $
EAPI=1
inherit eutils xfce44
XFCE_VERSION=4.4.2
xfce44
xfce44_core_package
DESCRIPTION="Desktop manager"
HOMEPAGE="http://www.xfce.org/projects/xfdesktop"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
IUSE="debug doc +file-icons +menu-plugin"
LANG="be ca cs da de el es et eu fi fr he hu it ja ko nb_NO nl pa pl pt_BR ro ru sk sv tr uk vi zh_CN zh_TW"
RDEPEND="x11-libs/libX11
x11-libs/libSM
>=dev-libs/glib-2.6
>=x11-libs/gtk+-2.6
gnome-base/librsvg
>=xfce-base/libxfce4mcs-${XFCE_MASTER_VERSION}
>=xfce-base/libxfce4util-${XFCE_MASTER_VERSION}
>=xfce-base/libxfcegui4-${XFCE_MASTER_VERSION}
>=xfce-base/xfce-mcs-manager-${XFCE_MASTER_VERSION}
file-icons? ( >=xfce-base/thunar-${THUNAR_MASTER_VERSION}
>=xfce-extra/exo-0.3.2 dev-libs/dbus-glib )
menu-plugin? ( >=xfce-base/xfce4-panel-${XFCE_MASTER_VERSION} )"
DEPEND="${RDEPEND}
dev-util/pkgconfig
dev-util/intltool"
for X in ${LANG}; do
IUSE="${IUSE} linguas_${X}"
done
DOCS="AUTHORS ChangeLog NEWS TODO README"
XFCE_LOCALIZED_CONFIGS="/etc/xdg/xfce4/desktop/xfce-registered-categories.xml
/etc/xdg/xfce4/desktop/menu.xml"
pkg_setup() {
XFCE_CONFIG+=" $(use_enable doc xsltproc) $(use_enable menu-plugin panel-plugin)"
if use file-icons; then
XFCE_CONFIG+=" --enable-thunarx --enable-file-icons --enable-exo"
else
XFCE_CONFIG+=" --disable-thunarx --disable-file-icons --disable-exo"
fi
}
src_unpack() {
unpack ${A}
cd "${S}"
echo src/xfdesktop-clipboard-manager.c >> po/POTFILES.skip
epatch "${FILESDIR}"/${P}-relocation-and-memleak.patch
}
src_install() {
xfce44_src_install
local config lang
for config in ${XFCE_LOCALIZED_CONFIGS}; do
for lang in ${LANG}; do
local localized_config="${D}/${config}.${lang}"
if [[ -f ${localized_config} ]]; then
use "linguas_${lang}" || rm ${localized_config}
fi
done
done
}
|