Gentoo Archives: gentoo-commits

From: "Markos Chandras (hwoarang)" <hwoarang@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-libs/rb_libtorrent: ChangeLog rb_libtorrent-0.15.1.ebuild
Date: Thu, 01 Jul 2010 08:32:28
Message-Id: 20100701083225.C89882C621@corvid.gentoo.org
1 hwoarang 10/07/01 08:32:25
2
3 Modified: ChangeLog
4 Added: rb_libtorrent-0.15.1.ebuild
5 Log:
6 Version bump.Fixes bug #325313. Remove old configure options. FIx pthread linking
7 (Portage version: 2.2_rc67/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.87 net-libs/rb_libtorrent/ChangeLog
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/rb_libtorrent/ChangeLog?rev=1.87&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/rb_libtorrent/ChangeLog?rev=1.87&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/rb_libtorrent/ChangeLog?r1=1.86&r2=1.87
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-libs/rb_libtorrent/ChangeLog,v
19 retrieving revision 1.86
20 retrieving revision 1.87
21 diff -u -r1.86 -r1.87
22 --- ChangeLog 16 Jun 2010 17:40:38 -0000 1.86
23 +++ ChangeLog 1 Jul 2010 08:32:25 -0000 1.87
24 @@ -1,6 +1,14 @@
25 # ChangeLog for net-libs/rb_libtorrent
26 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/net-libs/rb_libtorrent/ChangeLog,v 1.86 2010/06/16 17:40:38 hwoarang Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/net-libs/rb_libtorrent/ChangeLog,v 1.87 2010/07/01 08:32:25 hwoarang Exp $
29 +
30 +*rb_libtorrent-0.15.1 (01 Jul 2010)
31 +
32 + 01 Jul 2010; Markos Chandras <hwoarang@g.o>
33 + +rb_libtorrent-0.15.1.ebuild,
34 + +files/rb_libtorrent-0.15.1-ax_pthread_asneeded.patch:
35 + Version bump. Fixes tracker announcement bug wrt bug #325313. Remove
36 + obsolete configure options. Proper fix for lpthread linking
37
38 *rb_libtorrent-0.15.0 (16 Jun 2010)
39
40
41
42
43 1.1 net-libs/rb_libtorrent/rb_libtorrent-0.15.1.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/rb_libtorrent/rb_libtorrent-0.15.1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/rb_libtorrent/rb_libtorrent-0.15.1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: rb_libtorrent-0.15.1.ebuild
49 ===================================================================
50 # Copyright 1999-2010 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/net-libs/rb_libtorrent/rb_libtorrent-0.15.1.ebuild,v 1.1 2010/07/01 08:32:25 hwoarang Exp $
53
54 EAPI="2"
55 WANT_AUTOMAKE="1.11.1"
56 inherit autotools eutils versionator
57
58 MY_P=${P/rb_/}
59 MY_P=${MY_P/torrent/torrent-rasterbar}
60 S=${WORKDIR}/${MY_P}
61
62 DESCRIPTION="C++ BitTorrent implementation focusing on efficiency and scalability"
63 HOMEPAGE="http://www.rasterbar.com/products/libtorrent/"
64 SRC_URI="http://libtorrent.googlecode.com/files/${MY_P}.tar.gz"
65
66 LICENSE="BSD"
67 SLOT="0"
68 KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~x86-fbsd"
69 IUSE="debug doc examples python"
70 RESTRICT="test"
71
72 DEPEND="|| ( >=dev-libs/boost-1.35
73 ( ~dev-libs/boost-1.34.1 dev-cpp/asio ) )
74 python? ( >=dev-libs/boost-1.35.0-r5[python] dev-lang/python:2.6[threads] )
75 =sys-devel/libtool-2.2*
76 sys-libs/zlib
77 examples? ( !net-p2p/mldonkey )" #292998
78 RDEPEND="${DEPEND}"
79
80 src_prepare() {
81 epatch "${FILESDIR}"/${P}-ax_pthread_asneeded.patch
82 eautoreconf
83 }
84
85 src_configure() {
86 # use multi-threading versions of boost libs
87 local BOOST_LIBS="--with-boost-system=boost_system-mt \
88 --with-boost-filesystem=boost_filesystem-mt \
89 --with-boost-thread=boost_thread-mt \
90 --with-boost-python=boost_python-mt"
91
92 # detect boost version and location, bug 295474
93 BOOST_PKG="$(best_version ">=dev-libs/boost-1.34.1")"
94 BOOST_VER="$(get_version_component_range 1-2 "${BOOST_PKG/*boost-/}")"
95 BOOST_VER="$(replace_all_version_separators _ "${BOOST_VER}")"
96 BOOST_INC="/usr/include/boost-${BOOST_VER}"
97 BOOST_LIB="/usr/$(get_libdir)/boost-${BOOST_VER}"
98
99 local LOGGING
100 use debug && LOGGING="--with-logging=verbose"
101
102 econf $(use_enable debug) \
103 $(use_enable test tests) \
104 $(use_enable examples) \
105 $(use_enable python python-binding) \
106 --with-zlib=system \
107 ${LOGGING} \
108 --with-boost=${BOOST_INC} \
109 --with-boost-libdir=${BOOST_LIB} \
110 ${BOOST_LIBS}
111 }
112
113 src_install() {
114 emake DESTDIR="${D}" install || die 'emake install failed'
115 dodoc ChangeLog AUTHORS NEWS README || die 'dodoc failed'
116 if use doc ; then
117 dohtml docs/* || die "Could not install HTML documentation"
118 fi
119 }