1 |
idella4 15/03/05 14:59:22 |
2 |
|
3 |
Added: rb_libtorrent-0.16.17-r2.ebuild |
4 |
Log: |
5 |
revbump; conversion to python-r1 modelled on conversions of rb_libtorrent-1*, consent by maintainer provided in Bug 541958, fixes said bug |
6 |
|
7 |
(Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 0xB8072B0D) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 net-libs/rb_libtorrent/rb_libtorrent-0.16.17-r2.ebuild |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/rb_libtorrent/rb_libtorrent-0.16.17-r2.ebuild?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/rb_libtorrent/rb_libtorrent-0.16.17-r2.ebuild?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: rb_libtorrent-0.16.17-r2.ebuild |
16 |
=================================================================== |
17 |
# Copyright 1999-2015 Gentoo Foundation |
18 |
# Distributed under the terms of the GNU General Public License v2 |
19 |
# $Header: /var/cvsroot/gentoo-x86/net-libs/rb_libtorrent/rb_libtorrent-0.16.17-r2.ebuild,v 1.1 2015/03/05 14:59:22 idella4 Exp $ |
20 |
|
21 |
EAPI=5 |
22 |
PYTHON_COMPAT=( python{2_7,3_3,3_4} ) |
23 |
PYTHON_REQ_USE="threads" |
24 |
|
25 |
inherit multilib python-r1 versionator |
26 |
|
27 |
MY_P=${P/rb_/} |
28 |
MY_P=${MY_P/torrent/torrent-rasterbar} |
29 |
S=${WORKDIR}/${MY_P} |
30 |
|
31 |
DESCRIPTION="C++ BitTorrent implementation focusing on efficiency and scalability" |
32 |
HOMEPAGE="http://www.rasterbar.com/products/libtorrent/" |
33 |
SRC_URI="mirror://sourceforge/libtorrent/${MY_P}.tar.gz" |
34 |
|
35 |
LICENSE="BSD" |
36 |
SLOT="0" |
37 |
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" |
38 |
IUSE="debug doc examples python ssl static-libs test" |
39 |
RESTRICT="test" |
40 |
|
41 |
DEPEND=">=dev-libs/boost-1.48:=[threads] |
42 |
>=sys-devel/libtool-2.2 |
43 |
sys-libs/zlib |
44 |
examples? ( !net-p2p/mldonkey ) |
45 |
ssl? ( dev-libs/openssl:= ) |
46 |
python? ( |
47 |
${PYTHON_DEPS} |
48 |
dev-libs/boost[python,${PYTHON_USEDEP}] |
49 |
)" |
50 |
RDEPEND="${DEPEND} |
51 |
>=sys-devel/libtool-2.2" |
52 |
|
53 |
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
54 |
|
55 |
src_prepare() { |
56 |
use python && python_copy_sources |
57 |
} |
58 |
|
59 |
src_configure() { |
60 |
local myconf=( |
61 |
--disable-silent-rules # bug 441842 |
62 |
$(use_enable debug) |
63 |
$(use_enable test tests) |
64 |
$(use_enable examples) |
65 |
$(use_enable ssl encryption) |
66 |
$(use_enable static-libs static) |
67 |
--with-boost-libdir=/usr/$(get_libdir) |
68 |
) |
69 |
|
70 |
use debug && myconf+=( --enable-logging=verbose ) |
71 |
|
72 |
econf "${myconf[@]}" --disable-python-binding |
73 |
|
74 |
if use python; then |
75 |
python_configure() { |
76 |
run_in_build_dir econf "${myconf[@]}" --enable-python-binding --with-boost-python=boost_python-${EPYTHON#python} |
77 |
} |
78 |
|
79 |
python_foreach_impl python_configure |
80 |
fi |
81 |
} |
82 |
|
83 |
src_install() { |
84 |
emake DESTDIR="${D}" install |
85 |
|
86 |
if use python; then |
87 |
python_install() { |
88 |
emake -C "${BUILD_DIR}"/bindings/python \ |
89 |
DESTDIR="${D}" install |
90 |
} |
91 |
|
92 |
python_foreach_impl python_install |
93 |
fi |
94 |
|
95 |
use static-libs || find "${D}" -name '*.la' -exec rm -f {} + |
96 |
dodoc ChangeLog AUTHORS NEWS README |
97 |
if use doc; then |
98 |
dohtml docs/* |
99 |
fi |
100 |
} |