summaryrefslogtreecommitdiff
blob: cb010db0edd9cce7803f55a7bf10640c9c1a353c (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
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit distutils

DESCRIPTION="Python bindings for rb_libtorrent"
HOMEPAGE="http://deluge-torrent.org"
SRC_URI="http://deluge-torrent.org/downloads/${PN}_${PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"

KEYWORDS="~amd64 ~x86"
IUSE=""
S="${WORKDIR}/${PN}"

DEPEND=">=dev-lang/python-2.3
		dev-libs/boost"
RDEPEND="${DEPEND}"

pkg_setup() {
	if ! built_with_use dev-libs/boost threads; then
		eerror "dev-libs/boost has to be built with threads USE-flag."
		die "Missing threads USE-flag for dev-libs/boost"
	fi
}

src_unpack() {
	unpack ${A}
	cd "${S}"
	# Adding boost libraries suffix, see
	# http://deluge-torrent.org/trac/ticket/62
	# for details
	sed -i -e "s:\('boost_[^']*\):\1-mt:g" setup.py
}