diff options
author | Markos Chandras <hwoarang@gentoo.org> | 2015-12-03 15:53:24 +0000 |
---|---|---|
committer | Markos Chandras <hwoarang@gentoo.org> | 2015-12-03 16:23:38 +0000 |
commit | 8d3b87e999002b7df8dea6eb02c00e29b56aaeee (patch) | |
tree | d6c0a9683f965ce5bac721ee2d870d73189f74f4 /net-libs/rb_libtorrent/rb_libtorrent-1.0.7.ebuild | |
parent | net-libs/rb_libtorrent: Change HOMEPAGE. Bug #567206 (diff) | |
download | gentoo-8d3b87e999002b7df8dea6eb02c00e29b56aaeee.tar.gz gentoo-8d3b87e999002b7df8dea6eb02c00e29b56aaeee.tar.bz2 gentoo-8d3b87e999002b7df8dea6eb02c00e29b56aaeee.zip |
net-libs/rb_libtorrent: Version bump
Package-Manager: portage-2.2.26
Diffstat (limited to 'net-libs/rb_libtorrent/rb_libtorrent-1.0.7.ebuild')
-rw-r--r-- | net-libs/rb_libtorrent/rb_libtorrent-1.0.7.ebuild | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/net-libs/rb_libtorrent/rb_libtorrent-1.0.7.ebuild b/net-libs/rb_libtorrent/rb_libtorrent-1.0.7.ebuild new file mode 100644 index 000000000000..938d680b9d5d --- /dev/null +++ b/net-libs/rb_libtorrent/rb_libtorrent-1.0.7.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 python3_{3,4} ) +PYTHON_REQ_USE="threads" +DISTUTILS_OPTIONAL=true +AUTOTOOLS_AUTORECONF=true + +inherit autotools-utils multilib distutils-r1 versionator + +MY_P=${P/rb_/} +MY_P=${MY_P/torrent/torrent-rasterbar} +MY_PV=$(replace_all_version_separators '_' ) +S=${WORKDIR}/${MY_P} + +DESCRIPTION="C++ BitTorrent implementation focusing on efficiency and scalability" +HOMEPAGE="http://libtorrent.org" +SRC_URI="https://github.com/arvidn/libtorrent/releases/download/libtorrent-${MY_PV}/${MY_P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" +IUSE="debug doc examples python ssl static-libs test" + +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +RDEPEND=" + >=dev-libs/boost-1.53:=[threads] + sys-libs/zlib + examples? ( !net-p2p/mldonkey ) + ssl? ( dev-libs/openssl:0= ) + python? ( + ${PYTHON_DEPS} + dev-libs/boost:=[python,${PYTHON_USEDEP}] + )" +DEPEND="${RDEPEND} + >=sys-devel/libtool-2.2" + +RESTRICT="test" + +PATCHES=( + "${FILESDIR}"/${PN}-1.0.2-python.patch +) + +AUTOTOOLS_IN_SOURCE_BUILD=1 + +src_configure() { + local myeconfargs=( + --disable-silent-rules # bug 441842 + --with-boost-libdir=/usr/$(get_libdir) + $(use_enable debug) + $(use_enable test tests) + $(use_enable examples) + $(use_enable ssl encryption) + $(use_enable python python-binding) + $(usex debug "--enable-logging=verbose" "") + ) + + use python && python_setup + + autotools-utils_src_configure + use python && cd "${BUILD_DIR}"/bindings/python && distutils-r1_src_configure +} + +src_compile() { + autotools-utils_src_compile + use python && cd "${BUILD_DIR}"/bindings/python && distutils-r1_src_compile +} + +src_install() { + use doc && HTML_DOCS=( "${S}"/docs/. ) + + autotools-utils_src_install + use python && cd "${BUILD_DIR}"/bindings/python && distutils-r1_src_install +} |