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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Thu Nov 8 06:24:13 2012 UTC (2 years, 1 month ago) by flameeyes
Branch: MAIN
Changes since 1.2: +10 -4 lines
Handle USE=threads for boost 1.52.0-r1 and later. Remove keywords from ebuilds that depends on older boost versions.

(Portage version: 2.2.0_alpha142/cvs/Linux x86_64, RepoMan options: --force, signed Manifest commit with key 1CD13C8AD4301342)

1 # Copyright 1999-2012 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.3.ebuild,v 1.2 2012/11/02 20:06:46 hwoarang Exp $
4
5 EAPI="4"
6 PYTHON_DEPEND="python? 2:2.6"
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="http://libtorrent.googlecode.com/files/${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"
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 # use multi-threading versions of boost libs
48 if has_version '>=dev-libs/boost-1.52.0-r1'; then
49 myconf+=" --with-boost-python=boost_python-${PYTHON_ABI}"
50 else
51 myconf+=" --with-boost-system=boost_system-mt \
52 --with-boost-python=boost_python-${PYTHON_ABI}-mt"
53 fi
54
55 local LOGGING
56 use debug && myconf+=" --enable-logging=verbose"
57
58 econf $(use_enable debug) \
59 $(use_enable test tests) \
60 $(use_enable examples) \
61 $(use_enable python python-binding) \
62 $(use_enable ssl encryption) \
63 $(use_enable static-libs static) \
64 ${myconf}
65 }
66
67 src_install() {
68 emake DESTDIR="${D}" install
69 use static-libs || find "${D}" -name '*.la' -exec rm -f {} +
70 dodoc ChangeLog AUTHORS NEWS README
71 if use doc; then
72 dohtml docs/*
73 fi
74 }

  ViewVC Help
Powered by ViewVC 1.1.20