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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Thu Nov 8 06:24:13 2012 UTC (20 months, 3 weeks ago) by flameeyes
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +2 -2 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.15.10.ebuild,v 1.6 2012/11/03 23:14:08 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
32 RDEPEND="${DEPEND}"
33
34 pkg_setup() {
35 if use python; then
36 python_set_active_version 2
37 python_pkg_setup
38 fi
39 }
40
41 src_prepare() {
42 use python && python_convert_shebangs -r 2 .
43 }
44
45 src_configure() {
46 # use multi-threading versions of boost libs
47 local BOOST_LIBS="--with-boost-system=boost_system-mt \
48 --with-boost-filesystem=boost_filesystem-mt \
49 --with-boost-thread=boost_thread-mt \
50 --with-boost-python=boost_python-${PYTHON_ABI}-mt"
51
52 local LOGGING
53 use debug && LOGGING="--enable-logging=verbose"
54
55 econf $(use_enable debug) \
56 $(use_enable test tests) \
57 $(use_enable examples) \
58 $(use_enable python python-binding) \
59 $(use_enable ssl encryption) \
60 $(use_enable static-libs static) \
61 --with-zlib=system \
62 ${LOGGING} \
63 ${BOOST_LIBS}
64 }
65
66 src_install() {
67 emake DESTDIR="${D}" install
68 use static-libs || find "${D}" -name '*.la' -exec rm -f {} +
69 dodoc ChangeLog AUTHORS NEWS README
70 if use doc; then
71 dohtml docs/*
72 fi
73 }

  ViewVC Help
Powered by ViewVC 1.1.20