blob: 495f4ffa524198e87bf7bdb8fb669087750d45d3 (
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
|
# 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_beta2-r2.ebuild,v 1.5 2009/05/13 08:35:41 scarabeus Exp $
inherit kde
MY_PV=${PV}
MY_P=${PN}-${MY_PV}
S=${WORKDIR}/${MY_P}
DESCRIPTION="KDE Bluetooth Framework"
HOMEPAGE="http://bluetooth.kmobiletools.org/"
SRC_URI="mirror://sourceforge/kde-bluetooth/${MY_P}.tar.bz2"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~amd64 ~hppa ~ppc sparc ~x86"
IUSE="irmc"
DEPEND=">=dev-libs/openobex-1.1
>=net-wireless/bluez-libs-2.15
>=media-libs/libvorbis-1.0
>=dev-libs/dbus-qt3-old-0.70
irmc? ( || ( >=kde-base/kitchensync-3.4_beta1 >=kde-base/kdepim-3.4_beta1 ) )"
RDEPEND="${DEPEND}
|| ( ( =kde-base/kdialog-3.5* =kde-base/konqueror-3.5* )
=kde-base/kdebase-3.5* )
net-wireless/bluez-utils"
PATCHES=(
"${FILESDIR}/better-menu-names.diff"
"${FILESDIR}/kcm-btpaired-fix.diff"
"${FILESDIR}/kcm-no-dcop-error.diff"
"${FILESDIR}/kdebluetooth-dbuspasskeyagent.diff"
"${FILESDIR}/kdebluetooth-sdp-bitop.diff"
"${FILESDIR}/kdebluetooth.diff"
)
LANGS="bg br ca cs cy da de el en_GB es et fi fr ga gl hu is it ja ka lt
mt nb nl nn pa pl pt pt_BR ro ru rw sk sr sr@Latn sv ta tr uk zh_CN"
for X in ${LANGS} ; do
IUSE="${IUSE} linguas_${X}"
done
need-kde 3
src_unpack() {
kde_src_unpack
cd "${WORKDIR}/${P}/po"
for X in ${LANGS} ; do
use linguas_${X} || rm -rf "${X}"
done
rm -f "${S}/configure"
#eaclocal && eautoconf || die "autotools failed"
}
src_compile() {
# Change defaults to match our bluez-utils setup
sed -i -e 's,/etc/init\.d/bluez-utils,/etc/init\.d/bluetooth,' \
"${S}/kdebluetooth/kbluetoothd/kcm_btpaired/pairedtab.cpp" || die
local myconf="--without-xmms $(use_enable irmc irmcsynckonnector)"
kde_src_compile
}
pkg_postinst() {
einfo 'This version of kde-bluetooth provides a replacement for the'
einfo 'standard bluepin program "kbluepin". If you want to use this version,'
einfo 'you have to edit "/etc/bluetooth/hcid.conf" and change the line'
einfo '"pin_helper oldbluepin;" to "pin_helper /usr/lib/kdebluetooth/kbluepin;".'
einfo 'Then restart hcid to make the change take effect.'
}
|