diff options
author | Mikle Kolyada <zlogene@gentoo.org> | 2021-05-28 22:26:57 +0300 |
---|---|---|
committer | Mikle Kolyada <zlogene@gentoo.org> | 2021-05-28 22:28:09 +0300 |
commit | 97cbfd37b0b16357ecdbf0a31a86966f1cf8216d (patch) | |
tree | dd4e3085c0583053264773110a1405c294e31019 /net-libs/libtorrent-rasterbar/libtorrent-rasterbar-2.0.3.ebuild | |
parent | sci-mathematics/flint: update GMP detection patch. (diff) | |
download | gentoo-97cbfd37b0b16357ecdbf0a31a86966f1cf8216d.tar.gz gentoo-97cbfd37b0b16357ecdbf0a31a86966f1cf8216d.tar.bz2 gentoo-97cbfd37b0b16357ecdbf0a31a86966f1cf8216d.zip |
net-libs/libtorrent-rasterbar: Version bump (v2.0.3)
Package-Manager: Portage-3.0.17, Repoman-3.0.2
Signed-off-by: Mikle Kolyada <zlogene@gentoo.org>
Diffstat (limited to 'net-libs/libtorrent-rasterbar/libtorrent-rasterbar-2.0.3.ebuild')
-rw-r--r-- | net-libs/libtorrent-rasterbar/libtorrent-rasterbar-2.0.3.ebuild | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/net-libs/libtorrent-rasterbar/libtorrent-rasterbar-2.0.3.ebuild b/net-libs/libtorrent-rasterbar/libtorrent-rasterbar-2.0.3.ebuild new file mode 100644 index 000000000000..2ae417c02824 --- /dev/null +++ b/net-libs/libtorrent-rasterbar/libtorrent-rasterbar-2.0.3.ebuild @@ -0,0 +1,55 @@ +# Copyright 2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python{3_8,3_9} ) +PYTHON_REQ_USE="threads(+)" + +inherit cmake python-any-r1 + +DESCRIPTION="C++ BitTorrent implementation focusing on efficiency and scalability" +HOMEPAGE="https://libtorrent.org/ https://github.com/arvidn/libtorrent" +SRC_URI="https://github.com/arvidn/libtorrent/releases/download/v${PV}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0/2.0" +KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86" +IUSE="+dht debug gnutls python ssl test" + +RESTRICT="!test? ( test ) test" +DEPEND="dev-libs/boost:=[threads]" +RDEPEND=" + python? ( + ${PYTHON_DEPS} + $(python_gen_any_dep ' + dev-libs/boost[python,${PYTHON_USEDEP}]') + ) + ssl? ( + gnutls? ( net-libs/gnutls:= ) + !gnutls? ( dev-libs/openssl:= ) + ) + ${DEPEND} +" + +pkg_setup() { + use python && python-any-r1_pkg_setup +} + +src_configure() { + local mycmakeargs=( + -DCMAKE_CXX_STANDARD=14 + -DBUILD_SHARED_LIBS=ON + -Dbuild_examples=OFF + -Ddht=$(usex dht ON OFF) + -Dencryption=$(usex ssl ON OFF) + -Dgnutls=$(usex gnutls ON OFF) + -Dlogging=$(usex debug ON OFF) + -Dpython-bindings=$(usex python ON OFF) + -Dbuild_tests=$(usex test ON OFF) + ) + + use python && mycmakeargs+=( -Dboost-python-module-name="${EPYTHON}" ) + + cmake_src_configure +} |