summaryrefslogtreecommitdiff
blob: 31980dea145599d82b301049f390dda5446393de (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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/kde-base/kcontrol/kcontrol-3.5.8.ebuild,v 1.1 2007/10/19 22:04:09 philantrop Exp $

KMNAME=kdebase
MAXKDEVER=$PV
KM_DEPRANGE="$PV $MAXKDEVER"
inherit kde-meta eutils

SRC_URI="${SRC_URI}
	mirror://gentoo/kdebase-3.5-patchset-06.tar.bz2"

DESCRIPTION="The KDE Control Center"
KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
IUSE="arts ieee1394 logitech-mouse opengl kdehiddenvisibility pertty"

DEPEND=">=media-libs/freetype-2
	media-libs/fontconfig
	dev-libs/openssl
	arts? ( $(deprange 3.5.5 $MAXKDEVER kde-base/arts) )
	opengl? ( virtual/opengl )
	ieee1394? ( sys-libs/libraw1394 )
	logitech-mouse? ( >=dev-libs/libusb-0.1.10a )"

RDEPEND="${DEPEND}
	sys-apps/usbutils
	$(deprange 3.5.6 $MAXKDEVER kde-base/kcminit)
	$(deprange $PV $MAXKDEVER kde-base/kdebase-data)
	$(deprange 3.5.7-r1 $MAXKDEVER kde-base/kdesu)
	$(deprange $PV $MAXKDEVER kde-base/khelpcenter)
	$(deprange $PV $MAXKDEVER kde-base/khotkeys)
	$(deprange $PV $MAXKDEVER kde-base/libkonq)
	$(deprange $PV $MAXKDEVER kde-base/kicker)"

KMEXTRACTONLY="kwin/kwinbindings.cpp
		kicker/kicker/core/kickerbindings.cpp
		kicker/taskbar/taskbarbindings.cpp
		kdesktop/kdesktopbindings.cpp
		klipper/klipperbindings.cpp
		kxkb/kxkbbindings.cpp
		kicker/taskmanager"

KMEXTRA="doc/kinfocenter"
KMCOMPILEONLY="kicker/libkicker
	kicker/taskbar"
KMCOPYLIB="libkonq libkonq
	libkicker kicker/libkicker
	libtaskbar kicker/taskbar
	libtaskmanager kicker/taskmanager"

PATCHES=""

if use pertty; then
	PATCHES="${PATCHES}
		${FILESDIR}/$KMNAME-3.5.5-$PN-homepage-newtab.patch
		${FILESDIR}/$KMNAME-3.5.5-$PN-rubberband.patch"
fi

src_unpack() {
	kde-meta_src_unpack

	#
	# If we are using kickoff, then epatch here and extract icons
	#
	if has_version kde-base/kicker && built_with_use --missing false =kde-base/kicker-3.5* kickoff; then
		epatch "${FILESDIR}/$KMNAME-3.5.6-$PN-kickoff-suse.patch"
		# Add Xeffects/Gentoo changes
		epatch "${FILESDIR}/kickoff-kcontrol-gentoo-xeffects-integration-v3.patch"
	fi
}

pkg_setup() {
	kde_pkg_setup
	if use pertty && has_version kde-base/konqueror && ! built_with_use --missing true =kde-base/konqueror-3.5* pertty; then
		eerror "The pertty USE flag in this package enables special extensions"
		eerror "and requires that konqueror be patched to support these extensions."
		eerror "Since it appears your version of konqueror was not compiled with these"
		eerror "extensions, you must either emerge kcontrol without pertty or"
		eerror "re-emerge konqueror with pertty enabled and then emerge kcontrol again."
		die "Enable the pertty USE flag on kde-base/konqueror"
	fi
}

src_compile() {
	myconf="$myconf --with-ssl $(use_with arts) $(use_with opengl gl)
			$(use_with ieee1394 libraw1394) $(use_with logitech-mouse libusb)
			--with-usbids=/usr/share/misc/usb.ids"
	kde-meta_src_compile
}

src_install() {
	kde-meta_src_install

	# Fix an obscure desktop file that only gets generated during the install phase.
	sed -i -e '$d' "${D}/usr/kde/3.5/share/applications/kde/panel_appearance.desktop"
	sed -i -e 's:Name=panel_appearance::' "${D}/usr/kde/3.5/share/applications/kde/panel_appearance.desktop"

}

pkg_postinst() {
	kde_pkg_postinst
	echo
	ewarn "Do NOT report bugs to Gentoo's bugzilla"
	einfo "Please report all bugs to roderick.greening@gmail.com"
	einfo "Or, you may post them to http://forums.gentoo-xeffects.org"
	einfo "Thank you on behalf of the Gentoo Xeffects team"
}