blob: c15894adde35fb29efbe0044f2de4390eb3b823e (
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
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-wireless/kdebluetooth/kdebluetooth-1.0_beta8-r2.ebuild,v 1.6 2009/05/14 16:01:59 scarabeus Exp $
inherit kde
DESCRIPTION="KDE Bluetooth Framework"
HOMEPAGE="http://bluetooth.kmobiletools.org/"
#SRC_URI="mirror://sourceforge/kde-bluetooth/${MY_P}.tar.bz2"
# cf. bug 190296
SRC_URI="http://tomstar.ath.cx/load/${PN}/${P}.tar.bz2"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~amd64 ~hppa ~ppc ~sparc ~x86"
IUSE=""
# Localisation will be added once we have a release.
DEPEND=">=dev-libs/openobex-1.1
app-mobilephone/obexftp
>=dev-libs/dbus-qt3-old-0.70"
RDEPEND="${DEPEND}
|| ( ( =kde-base/kdialog-3.5* =kde-base/konqueror-3.5* )
=kde-base/kdebase-3.5* )
|| (
net-wireless/bluez
( >=net-wireless/bluez-libs-3.11 >=net-wireless/bluez-utils-3.11 )
)
"
need-kde 3.5
PATCHES=(
"${FILESDIR}/${P}-gcc43.patch"
"${FILESDIR}/${P}-bashism.patch"
"${FILESDIR}/${P}-kbluelock.diff"
)
src_unpack() {
kde_src_unpack
cd "${S}"
sed -i -e "s:\(MimeType=.*\):\1;:" kdebluetooth/kbtobexclient/kbtobexclient.desktop \
|| die "sed'ing the desktop file failed"
rm -f "${S}/configure"
}
src_install() {
kde_src_install
# Fix the desktop file
sed -i -e 's:^\(Categories=.*\):\1;:' \
"${D}/usr/kde/3.5/share/applications/kde/kbtobexsrv.desktop" || die "sed #1 failed"
sed -i -e 's:^\(MimeTypes\):X-\1:' \
"${D}/usr/kde/3.5/share/applications/kde/kbtobexsrv.desktop" || die "sed #2 failed"
}
|