aboutsummaryrefslogtreecommitdiff
blob: 8b65f663789bc2d981c9cde4ea05076600c44b77 (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
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-pda/barry/barry-0.11.ebuild,v 1.1 2007/12/20 17:15:20 gregkh Exp $

if [[ ${PV} = 9999 ]]; then
	CVS="cvs"
	AUTOTOOLS="autotools"
	ECVS_SERVER="barry.cvs.sourceforge.net:/cvsroot/barry"
	ECVS_MODULE="barry"
	S="${WORKDIR}/${PN}"
else
	CVS=""
	SRC_URI="mirror://sourceforge/barry/${P}.tar.bz2"
fi

inherit ${CVS} ${AUTOTOOLS}

DESCRIPTION="Barry is an Open Source Linux application that will allow
synchronization, backup, restore, program management, and charging for BlackBerry devices"
HOMEPAGE="http://www.netdirect.ca/software/packages/barry/"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

DEPEND="dev-libs/libusb
	dev-libs/openssl"
if [[ ${PV} = 9999 ]]; then
	DEPEND="${DEPEND} >=sys-devel/autoconf-archive-2008.04.17"
fi

src_unpack() {
	if [[ ${PV} = 9999 ]]; then
		cvs_src_unpack
		cd "${S}"
		eautoreconf
	else
		unpack ${A}
		cd "${S}"
	fi
}

src_install() {
	emake DESTDIR="${D}" install || die "install failed"
	dodoc README NEWS

	#  udev rules
	insinto /etc/udev/rules.d
	newins udev/10-blackberry.rules 10-blackberry.rules

	docinto ppp
	dodoc ppp/*
}