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