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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue May 19 19:40:43 2015 UTC (5 years, 6 months ago) by hwoarang
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +2 -2 lines
Use absolute path to install html docs. Bug #549870

(Portage version: 2.2.19/cvs/Linux x86_64, signed Manifest commit with key 09BF4F54C2BA7F3C!)

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-1.0.4.ebuild,v 1.1 2015/04/19 19:21:59 hwoarang 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.53:=[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}-1.0.2-python.patch )
44
45 AUTOTOOLS_IN_SOURCE_BUILD=1
46
47 src_configure() {
48 local myeconfargs=(
49 --disable-silent-rules # bug 441842
50 --with-boost-libdir=/usr/$(get_libdir)
51 $(use_enable debug)
52 $(use_enable test tests)
53 $(use_enable examples)
54 $(use_enable ssl encryption)
55 $(use_enable python python-binding)
56 $(usex debug "--enable-logging=verbose" "")
57 )
58
59 use python && python_setup
60
61 autotools-utils_src_configure
62 use python && cd "${BUILD_DIR}"/bindings/python && distutils-r1_src_configure
63 }
64
65 src_compile() {
66 autotools-utils_src_compile
67 use python && cd "${BUILD_DIR}"/bindings/python && distutils-r1_src_compile
68 }
69
70 src_install() {
71 use doc && HTML_DOCS=( "${S}"/docs/. )
72
73 autotools-utils_src_install
74 use python && cd "${BUILD_DIR}"/bindings/python && distutils-r1_src_install
75 }

  ViewVC Help
Powered by ViewVC 1.1.20