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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Thu Nov 8 06:24:13 2012 UTC (22 months, 1 week ago) by flameeyes
Branch: MAIN
Changes since 1.7: +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.9.ebuild,v 1.7 2012/11/03 23:14:08 hwoarang Exp $
4
5 EAPI="2"
6 PYTHON_DEPEND="python? 2:2.6"
7 PYTHON_USE_WITH="threads"
8 PYTHON_USE_WITH_OPT="python"
9
10 inherit eutils 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="ppc64"
23 IUSE="debug doc examples python ssl static-libs"
24 RESTRICT="test"
25
26 DEPEND="<dev-libs/boost-1.48[python?]
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 use python && python_set_active_version 2
36 }
37
38 src_prepare() {
39 use python && python_convert_shebangs -r 2 .
40 }
41
42 src_configure() {
43 # use multi-threading versions of boost libs
44 local BOOST_LIBS="--with-boost-system=boost_system-mt \
45 --with-boost-filesystem=boost_filesystem-mt \
46 --with-boost-thread=boost_thread-mt \
47 --with-boost-python=boost_python-mt"
48
49 local LOGGING
50 use debug && LOGGING="--enable-logging=verbose"
51
52 econf $(use_enable debug) \
53 $(use_enable test tests) \
54 $(use_enable examples) \
55 $(use_enable python python-binding) \
56 $(use_enable ssl encryption) \
57 $(use_enable static-libs static) \
58 --with-zlib=system \
59 ${LOGGING} \
60 ${BOOST_LIBS}
61 }
62
63 src_install() {
64 emake DESTDIR="${D}" install || die 'emake install failed'
65 use static-libs || find "${D}" -name '*.la' -exec rm -f {} +
66 dodoc ChangeLog AUTHORS NEWS README || die 'dodoc failed'
67 if use doc ; then
68 dohtml docs/* || die "Could not install HTML documentation"
69 fi
70 }

  ViewVC Help
Powered by ViewVC 1.1.20