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