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.16.3.ebuild ChangeLog
Date: Fri, 24 Aug 2012 23:59:42
Message-Id: 20120824235931.037822061A@flycatcher.gentoo.org
1 hwoarang 12/08/24 23:59:30
2
3 Modified: ChangeLog
4 Added: rb_libtorrent-0.16.3.ebuild
5 Log:
6 Version bump
7
8 (Portage version: 2.1.11.11/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.132 net-libs/rb_libtorrent/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/rb_libtorrent/ChangeLog?rev=1.132&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/rb_libtorrent/ChangeLog?rev=1.132&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/rb_libtorrent/ChangeLog?r1=1.131&r2=1.132
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-libs/rb_libtorrent/ChangeLog,v
20 retrieving revision 1.131
21 retrieving revision 1.132
22 diff -u -r1.131 -r1.132
23 --- ChangeLog 14 Jul 2012 14:22:47 -0000 1.131
24 +++ ChangeLog 24 Aug 2012 23:59:30 -0000 1.132
25 @@ -1,6 +1,12 @@
26 # ChangeLog for net-libs/rb_libtorrent
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-libs/rb_libtorrent/ChangeLog,v 1.131 2012/07/14 14:22:47 yngwin Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-libs/rb_libtorrent/ChangeLog,v 1.132 2012/08/24 23:59:30 hwoarang Exp $
30 +
31 +*rb_libtorrent-0.16.3 (24 Aug 2012)
32 +
33 + 24 Aug 2012; Markos Chandras <hwoarang@g.o>
34 + +rb_libtorrent-0.16.3.ebuild:
35 + Version bump
36
37 *rb_libtorrent-0.16.2 (14 Jul 2012)
38
39
40
41
42 1.1 net-libs/rb_libtorrent/rb_libtorrent-0.16.3.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/rb_libtorrent/rb_libtorrent-0.16.3.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/rb_libtorrent/rb_libtorrent-0.16.3.ebuild?rev=1.1&content-type=text/plain
46
47 Index: rb_libtorrent-0.16.3.ebuild
48 ===================================================================
49 # Copyright 1999-2012 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.16.3.ebuild,v 1.1 2012/08/24 23:59:30 hwoarang Exp $
52
53 EAPI="4"
54 PYTHON_DEPEND="python? 2:2.6"
55 PYTHON_USE_WITH="threads"
56 PYTHON_USE_WITH_OPT="python"
57
58 inherit multilib python versionator
59
60 MY_P=${P/rb_/}
61 MY_P=${MY_P/torrent/torrent-rasterbar}
62 S=${WORKDIR}/${MY_P}
63
64 DESCRIPTION="C++ BitTorrent implementation focusing on efficiency and scalability"
65 HOMEPAGE="http://www.rasterbar.com/products/libtorrent/"
66 SRC_URI="http://libtorrent.googlecode.com/files/${MY_P}.tar.gz"
67
68 LICENSE="BSD"
69 SLOT="0"
70 KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
71 IUSE="debug doc examples python ssl static-libs"
72 RESTRICT="test"
73
74 DEPEND=">=dev-libs/boost-1.48[python?]
75 >=sys-devel/libtool-2.2
76 sys-libs/zlib
77 examples? ( !net-p2p/mldonkey )
78 ssl? ( dev-libs/openssl )"
79 RDEPEND="${DEPEND}"
80
81 pkg_setup() {
82 if use python; then
83 python_set_active_version 2
84 python_pkg_setup
85 fi
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-python=boost_python-${PYTHON_ABI}-mt"
96 # detect boost version and location, bug 295474
97 BOOST_PKG="$(best_version ">=dev-libs/boost-1.34.1")"
98 BOOST_VER="$(get_version_component_range 1-2 "${BOOST_PKG/*boost-/}")"
99 BOOST_VER="$(replace_all_version_separators _ "${BOOST_VER}")"
100 BOOST_INC="${EPREFIX}/usr/include/boost-${BOOST_VER}"
101 BOOST_LIB="${EPREFIX}/usr/$(get_libdir)/boost-${BOOST_VER}"
102
103 local LOGGING
104 use debug && LOGGING="--enable-logging=verbose"
105
106 econf $(use_enable debug) \
107 $(use_enable test tests) \
108 $(use_enable examples) \
109 $(use_enable python python-binding) \
110 $(use_enable ssl encryption) \
111 $(use_enable static-libs static) \
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
120 use static-libs || find "${D}" -name '*.la' -exec rm -f {} +
121 dodoc ChangeLog AUTHORS NEWS README
122 if use doc; then
123 dohtml docs/*
124 fi
125 }