/[gentoo-x86]/net-libs/rb_libtorrent/rb_libtorrent-0.16.17.ebuild
Gentoo

Contents of /net-libs/rb_libtorrent/rb_libtorrent-0.16.17.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Tue May 5 09:40:41 2015 UTC (5 years, 7 months ago) by jer
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +2 -2 lines
Stable for PPC64 (bug #522764).

(Portage version: 2.2.18/cvs/Linux x86_64, RepoMan options: --ignore-arches, signed Manifest commit with key A792A613)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-libs/rb_libtorrent/rb_libtorrent-0.16.17.ebuild,v 1.8 2015/03/02 09:20:26 ago Exp $
4
5 EAPI="4"
6 PYTHON_DEPEND="python? 2:2.7"
7 PYTHON_USE_WITH="threads"
8 PYTHON_USE_WITH_OPT="python"
9
10 inherit multilib python versionator
11
12 MY_P=${P/rb_/}
13 MY_P=${MY_P/torrent/torrent-rasterbar}
14 S=${WORKDIR}/${MY_P}
15
16 DESCRIPTION="C++ BitTorrent implementation focusing on efficiency and scalability"
17 HOMEPAGE="http://www.rasterbar.com/products/libtorrent/"
18 SRC_URI="mirror://sourceforge/libtorrent/${MY_P}.tar.gz"
19
20 LICENSE="BSD"
21 SLOT="0"
22 KEYWORDS="amd64 arm ppc ppc64 sparc x86 ~x86-fbsd"
23 IUSE="debug doc examples python ssl static-libs test"
24 RESTRICT="test"
25
26 DEPEND=">=dev-libs/boost-1.48[python?,threads(+)]
27 >=sys-devel/libtool-2.2
28 sys-libs/zlib
29 examples? ( !net-p2p/mldonkey )
30 ssl? ( dev-libs/openssl )"
31 RDEPEND="${DEPEND}"
32
33 pkg_setup() {
34 if use python; then
35 python_set_active_version 2
36 python_pkg_setup
37 fi
38 }
39
40 src_prepare() {
41 use python && python_convert_shebangs -r 2 .
42 }
43
44 src_configure() {
45 local myconf
46
47 # bug 441842
48 myconf="--disable-silent-rules"
49
50 # use multi-threading versions of boost libs
51 if has_version '>=dev-libs/boost-1.52.0-r1'; then
52 myconf+=" --with-boost-python=boost_python-${PYTHON_ABI}"
53 else
54 myconf+=" --with-boost-system=boost_system-mt \
55 --with-boost-python=boost_python-${PYTHON_ABI}-mt"
56 fi
57
58 local LOGGING
59 use debug && myconf+=" --enable-logging=verbose"
60
61 econf $(use_enable debug) \
62 $(use_enable test tests) \
63 $(use_enable examples) \
64 $(use_enable python python-binding) \
65 $(use_enable ssl encryption) \
66 $(use_enable static-libs static) \
67 --with-boost-libdir=/usr/$(get_libdir) \
68 ${myconf}
69 }
70
71 src_install() {
72 emake DESTDIR="${D}" install
73 use static-libs || find "${D}" -name '*.la' -exec rm -f {} +
74 dodoc ChangeLog AUTHORS NEWS README
75 if use doc; then
76 dohtml docs/*
77 fi
78 }

  ViewVC Help
Powered by ViewVC 1.1.20