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: rb_libtorrent-0.15.9.ebuild ChangeLog rb_libtorrent-0.15.7.ebuild rb_libtorrent-0.15.7-r1.ebuild
Date: Tue, 22 Nov 2011 21:29:04
Message-Id: 20111122212845.15CC62004B@flycatcher.gentoo.org
1 hwoarang 11/11/22 21:28:45
2
3 Modified: ChangeLog
4 Added: rb_libtorrent-0.15.9.ebuild
5 Removed: rb_libtorrent-0.15.7.ebuild
6 rb_libtorrent-0.15.7-r1.ebuild
7 Log:
8 version bump. remove old
9
10 (Portage version: 2.2.0_alpha71/cvs/Linux x86_64)
11
12 Revision Changes Path
13 1.116 net-libs/rb_libtorrent/ChangeLog
14
15 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/rb_libtorrent/ChangeLog?rev=1.116&view=markup
16 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/rb_libtorrent/ChangeLog?rev=1.116&content-type=text/plain
17 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/rb_libtorrent/ChangeLog?r1=1.115&r2=1.116
18
19 Index: ChangeLog
20 ===================================================================
21 RCS file: /var/cvsroot/gentoo-x86/net-libs/rb_libtorrent/ChangeLog,v
22 retrieving revision 1.115
23 retrieving revision 1.116
24 diff -u -r1.115 -r1.116
25 --- ChangeLog 30 Sep 2011 12:27:07 -0000 1.115
26 +++ ChangeLog 22 Nov 2011 21:28:44 -0000 1.116
27 @@ -1,6 +1,13 @@
28 # ChangeLog for net-libs/rb_libtorrent
29 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
30 -# $Header: /var/cvsroot/gentoo-x86/net-libs/rb_libtorrent/ChangeLog,v 1.115 2011/09/30 12:27:07 hwoarang Exp $
31 +# $Header: /var/cvsroot/gentoo-x86/net-libs/rb_libtorrent/ChangeLog,v 1.116 2011/11/22 21:28:44 hwoarang Exp $
32 +
33 +*rb_libtorrent-0.15.9 (22 Nov 2011)
34 +
35 + 22 Nov 2011; Markos Chandras <hwoarang@g.o>
36 + +rb_libtorrent-0.15.9.ebuild, -rb_libtorrent-0.15.7.ebuild,
37 + -rb_libtorrent-0.15.7-r1.ebuild:
38 + version bump. remove old
39
40 *rb_libtorrent-0.15.8 (30 Sep 2011)
41
42
43
44
45 1.1 net-libs/rb_libtorrent/rb_libtorrent-0.15.9.ebuild
46
47 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/rb_libtorrent/rb_libtorrent-0.15.9.ebuild?rev=1.1&view=markup
48 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/rb_libtorrent/rb_libtorrent-0.15.9.ebuild?rev=1.1&content-type=text/plain
49
50 Index: rb_libtorrent-0.15.9.ebuild
51 ===================================================================
52 # Copyright 1999-2011 Gentoo Foundation
53 # Distributed under the terms of the GNU General Public License v2
54 # $Header: /var/cvsroot/gentoo-x86/net-libs/rb_libtorrent/rb_libtorrent-0.15.9.ebuild,v 1.1 2011/11/22 21:28:44 hwoarang Exp $
55
56 EAPI="2"
57 PYTHON_DEPEND="python? 2:2.6"
58 PYTHON_USE_WITH="threads"
59
60 inherit eutils versionator python
61
62 MY_P=${P/rb_/}
63 MY_P=${MY_P/torrent/torrent-rasterbar}
64 S=${WORKDIR}/${MY_P}
65
66 DESCRIPTION="C++ BitTorrent implementation focusing on efficiency and scalability"
67 HOMEPAGE="http://www.rasterbar.com/products/libtorrent/"
68 SRC_URI="http://libtorrent.googlecode.com/files/${MY_P}.tar.gz"
69
70 LICENSE="BSD"
71 SLOT="0"
72 KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
73 IUSE="debug doc examples python ssl static-libs"
74 RESTRICT="test"
75
76 DEPEND=">=dev-libs/boost-1.36[python?]
77 >=sys-devel/libtool-2.2
78 sys-libs/zlib
79 examples? ( !net-p2p/mldonkey )
80 ssl? ( dev-libs/openssl )"
81
82 RDEPEND="${DEPEND}"
83
84 pkg_setup() {
85 use python && python_set_active_version 2
86 }
87
88 src_prepare() {
89 use python && python_convert_shebangs -r 2 .
90 }
91
92 src_configure() {
93 # use multi-threading versions of boost libs
94 local BOOST_LIBS="--with-boost-system=boost_system-mt \
95 --with-boost-filesystem=boost_filesystem-mt \
96 --with-boost-thread=boost_thread-mt \
97 --with-boost-python=boost_python-mt"
98 # detect boost version and location, bug 295474
99 BOOST_PKG="$(best_version ">=dev-libs/boost-1.34.1")"
100 BOOST_VER="$(get_version_component_range 1-2 "${BOOST_PKG/*boost-/}")"
101 BOOST_VER="$(replace_all_version_separators _ "${BOOST_VER}")"
102 BOOST_INC="/usr/include/boost-${BOOST_VER}"
103 BOOST_LIB="/usr/$(get_libdir)/boost-${BOOST_VER}"
104
105 local LOGGING
106 use debug && LOGGING="--enable-logging=verbose"
107
108 econf $(use_enable debug) \
109 $(use_enable test tests) \
110 $(use_enable examples) \
111 $(use_enable python python-binding) \
112 $(use_enable ssl encryption) \
113 $(use_enable static-libs static) \
114 --with-zlib=system \
115 ${LOGGING} \
116 --with-boost=${BOOST_INC} \
117 --with-boost-libdir=${BOOST_LIB} \
118 ${BOOST_LIBS}
119 }
120
121 src_install() {
122 emake DESTDIR="${D}" install || die 'emake install failed'
123 use static-libs || find "${D}" -name '*.la' -exec rm -f {} +
124 dodoc ChangeLog AUTHORS NEWS README || die 'dodoc failed'
125 if use doc ; then
126 dohtml docs/* || die "Could not install HTML documentation"
127 fi
128 }