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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sun Apr 12 17:21:04 2015 UTC (4 years ago) by jlec
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +4 -1 lines
Export best python version before configure, #545354

(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key B9D4F231BD1558AB!)

1 # Copyright 1999-2015 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.16.19.ebuild,v 1.2 2015/03/23 12:07:50 jlec Exp $
4
5 EAPI=5
6
7 PYTHON_COMPAT=( python2_7 python3_{3,4} )
8 PYTHON_REQ_USE="threads"
9 DISTUTILS_OPTIONAL=true
10 AUTOTOOLS_AUTORECONF=true
11
12 inherit autotools-utils multilib distutils-r1
13
14 MY_P=${P/rb_/}
15 MY_P=${MY_P/torrent/torrent-rasterbar}
16 S=${WORKDIR}/${MY_P}
17
18 DESCRIPTION="C++ BitTorrent implementation focusing on efficiency and scalability"
19 HOMEPAGE="http://www.rasterbar.com/products/libtorrent/"
20 SRC_URI="mirror://sourceforge/libtorrent/${MY_P}.tar.gz"
21
22 LICENSE="BSD"
23 SLOT="0"
24 KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
25 IUSE="debug doc examples python ssl static-libs test"
26
27 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
28
29 RDEPEND="
30 >=dev-libs/boost-1.48:=[threads]
31 sys-libs/zlib
32 examples? ( !net-p2p/mldonkey )
33 ssl? ( dev-libs/openssl:0= )
34 python? (
35 ${PYTHON_DEPS}
36 dev-libs/boost[python,${PYTHON_USEDEP}]
37 )"
38 DEPEND="${RDEPEND}
39 >=sys-devel/libtool-2.2"
40
41 RESTRICT="test"
42
43 PATCHES=( "${FILESDIR}"/${PN}-0.16.17-python.patch )
44
45 src_configure() {
46 local myeconfargs=(
47 --disable-silent-rules # bug 441842
48 --with-boost-libdir=/usr/$(get_libdir)
49 $(use_enable debug)
50 $(use_enable test tests)
51 $(use_enable examples)
52 $(use_enable ssl encryption)
53 $(use_enable python python-binding)
54 $(usex debug "--enable-logging=verbose" "")
55 )
56
57 use python && python_setup
58
59 autotools-utils_src_configure
60 use python && cd "${BUILD_DIR}"/bindings/python && distutils-r1_src_configure
61 }
62
63 src_compile() {
64 autotools-utils_src_compile
65 use python && cd "${BUILD_DIR}"/bindings/python && distutils-r1_src_compile
66 }
67
68 src_install() {
69 use doc && HTML_DOCS=( docs/. )
70
71 autotools-utils_src_install
72 use python && cd "${BUILD_DIR}"/bindings/python && distutils-r1_src_install
73 }

  ViewVC Help
Powered by ViewVC 1.1.20