summaryrefslogtreecommitdiff
blob: 08431a109a9a4de815b8cdd26c15202b32e56a86 (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
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-p2p/ktorrent/ktorrent-2.2.8-r2.ebuild,v 1.4 2009/05/24 12:00:50 tcunha Exp $

EAPI="2"

LANGS="ar bg br ca cs cy da de el en_GB es et fa fr gl hu it ja ka lt
ms nb nds nl pa pl pt pt_BR ru rw sk sr sr@Latn sv tr uk zh_CN zh_TW"

USE_KEG_PACKAGING="1"

inherit kde

MY_P="${P/_/}"
MY_PV="${PV/_/}"
KEG_PO_DIR="translations"

DESCRIPTION="A BitTorrent program for KDE."
HOMEPAGE="http://ktorrent.org/"
SRC_URI="http://ktorrent.org/downloads/${MY_PV}/${MY_P}.tar.bz2"
LICENSE="GPL-2"

SLOT="3.5"
KEYWORDS="amd64 ~ppc ~ppc64 sparc ~x86 ~x86-fbsd"
IUSE="avahi kdeenablefinal"

DEPEND="!<net-p2p/ktorrent-2.2.8-r2
	dev-libs/gmp
	>=dev-libs/geoip-1.4.0-r1
	avahi? ( >=net-dns/avahi-0.6.16-r1[qt3] )"
RDEPEND="${DEPEND}
	kde-base/kdebase-kioslaves:3.5"

S="${WORKDIR}/${MY_P}"

need-kde 3.5

PATCHES=("${FILESDIR}/${PN}-2.2.5-avahi-check.patch
	${FILESDIR}/${P}-lograce.patch" )

src_configure() {
	local myconf="${myconf}
		$(use_with avahi)
		--enable-builtin-country-flags
		--enable-knetwork
		--enable-system-geoip
		--enable-torrent-mimetype
		--disable-geoip"

	kde_src_configure
}

src_install() {
	kde_src_install

	rm -rf "${D}/${KDEDIR}"/share/mimelnk/application/x-bittorrent.desktop
}