blob: 513abcd97907a2213120a5ae09bc8dc319dbddce (
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
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-pda/barry/barry-0.16.ebuild,v 1.1 2009/10/18 18:45:50 vostorga Exp $
inherit base
DESCRIPTION="Allow synchronization, backup, restore,
program management, and charging for BlackBerry devices"
HOMEPAGE="http://www.netdirect.ca/software/packages/barry/"
SRC_URI="mirror://sourceforge/barry/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="boost doc gui opensync"
DEPEND="dev-libs/libusb
dev-libs/openssl
dev-util/pkgconfig
sys-libs/zlib
boost? ( >=dev-libs/boost-1.33 )
doc? ( >=app-doc/doxygen-1.5.6 )
gui? ( >=dev-cpp/gtkmm-2.4
>=dev-cpp/libglademm-2.4
>=dev-cpp/glibmm-2.4
=dev-libs/libtar-1.2.11-r2 )
opensync? ( =app-pda/libopensync-0.22* )"
RDEPEND="dev-libs/libusb
sys-libs/zlib
boost? ( >=dev-libs/boost-1.33 )
gui? ( >=dev-cpp/gtkmm-2.4
>=dev-cpp/libglademm-2.4
>=dev-cpp/glibmm-2.4 )
opensync? ( =app-pda/libopensync-0.22* )"
src_compile(){
econf \
$(use_with boost boost =/usr/include) \
$(use_enable gui) \
$(use_with gui libtar =/usr/lib) \
$(use_with gui libz =/usr/lib) \
$(use_enable opensync opensync-plugin)
emake || die "emake failed!"
if use doc ; then
cd "${S}"
doxygen
fi
}
src_install() {
emake DESTDIR="${D}" install || die "install failed"
if use doc; then
dodoc AUTHORS NEWS README || die "dodoc failed"
dohtml doc/www/doxygen/html/* || die "dohtml failed"
fi
# udev rules
insinto /etc/udev/rules.d
newins "${FILESDIR}"/10-blackberry.rules 10-blackberry.rules
# blacklist for BERRY_CHARGE kernel module
insinto /etc/modprobe.d
newins "${FILESDIR}"/blacklist-berry_charge blacklist-berry_charge
#if use gui ; then
# Add an entry into K Menu or gnome's menu if available.
#fi
}
pkg_postinst() {
elog
elog "Users must be in the 'plugdev' group to access the Barry toolset."
elog
elog "Type 'btool' to launch the command-line Barry interface."
use gui && elog "Type 'barrybackup' to launch the GUI backup/restore tool."
ewarn
ewarn "Barry and the in-kernel module 'BERRY_CHARGE' are incompatible."
ewarn
ewarn "Kernel-based USB suspending can discharge your blackberry."
ewarn "Use at least kernel 2.6.22 and/or disable USB_SUSPEND."
ewarn
}
|