Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/libtorrent-rasterbar/
Date: Wed, 08 Dec 2021 06:14:15
Message-Id: 1638944015.8f41639d8233c787d370e55f518d6de0812a15ce.sam@gentoo
1 commit: 8f41639d8233c787d370e55f518d6de0812a15ce
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Wed Dec 8 06:06:03 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Wed Dec 8 06:13:35 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8f41639d
7
8 net-libs/libtorrent-rasterbar: add 2.0.5
9
10 Just includes a bunch of the patches we upstreamed.
11
12 Bug: https://bugs.gentoo.org/815145
13 Signed-off-by: Sam James <sam <AT> gentoo.org>
14
15 net-libs/libtorrent-rasterbar/Manifest | 1 +
16 .../libtorrent-rasterbar-2.0.5.ebuild | 74 ++++++++++++++++++++++
17 2 files changed, 75 insertions(+)
18
19 diff --git a/net-libs/libtorrent-rasterbar/Manifest b/net-libs/libtorrent-rasterbar/Manifest
20 index 5a73b3576281..053753ea014f 100644
21 --- a/net-libs/libtorrent-rasterbar/Manifest
22 +++ b/net-libs/libtorrent-rasterbar/Manifest
23 @@ -6,3 +6,4 @@ DIST libtorrent-1.2.9.tar.gz 3584800 BLAKE2B 5160056e227a54992ca4e490ffe0088d080
24 DIST libtorrent-rasterbar-1.2.6.tar.gz 3611015 BLAKE2B 39323c223927272a4eb9bb93ad70acd62165b9b3eb3f4f45cb76f99a23b1e131b526c8d8370fbd7cc30c7e776a5f9b7990c989ceaa3566272adc25df639fc5ba SHA512 9f03e28449b08e18a98a1f1bf0571f470c56fabd2becde5bde56ad566611c8519b0b387939f285a552d1f0382446633b67d00b6b5ff7083e4d1420a3ce9232fc
25 DIST libtorrent-rasterbar-2.0.4-ssl-tests-certs.patch.bz2 26530 BLAKE2B 0958f11be84860cfb0e9224901a6052d9acb80edbd9f9e6eeb2e621e30e75fac4c4db64c71573b7c7f91761e74b9c5781ef8d1a202aef06cd92e3edb15d9f810 SHA512 f3afc4e0857838a44fa3671d657b5f669194c504d07d8f72ca5ddc060786127e3d6ad4ae9efa39e9f02fbe396f4785a1755dd1fd9607c1cef31aa60574b3511e
26 DIST libtorrent-rasterbar-2.0.4.tar.gz 4311319 BLAKE2B fee8255d46d5ca019cd487b57fc6003744c208ea5e78873b925f53881667c55c506d302fc7ae6cd5b5d5e776cfe059b714db94d16dd28cfc7939ec6f4fa4e5fa SHA512 66ce3c3369b1d2a83654727c23022d38b070b8bc3ad83b1001e2cfad945acbaa4d61990094bc758886967cd305ca2213b60b1b0523b5106c42d4701d8cff8db1
27 +DIST libtorrent-rasterbar-2.0.5.tar.gz 4407260 BLAKE2B 71c64879be103326fe438ba6b11b672fb0d631ed0de4eb23c2595f3596b522693594ded9f8733c7827dd668e285cb5099cad78bcd437ec184837eafbd39b356f SHA512 be5b812135dada957e565085b5bdda06827c8427f78a4468ef263e1a1e33d3a0bbba7ac27235f0d17ae6087d54311281e3b1975eef81cda514acc8329862dc04
28
29 diff --git a/net-libs/libtorrent-rasterbar/libtorrent-rasterbar-2.0.5.ebuild b/net-libs/libtorrent-rasterbar/libtorrent-rasterbar-2.0.5.ebuild
30 new file mode 100644
31 index 000000000000..eee2529eecae
32 --- /dev/null
33 +++ b/net-libs/libtorrent-rasterbar/libtorrent-rasterbar-2.0.5.ebuild
34 @@ -0,0 +1,74 @@
35 +# Copyright 2021 Gentoo Authors
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=7
39 +
40 +PYTHON_COMPAT=( python3_{8,9,10} )
41 +
42 +inherit cmake python-single-r1
43 +
44 +DESCRIPTION="C++ BitTorrent implementation focusing on efficiency and scalability"
45 +HOMEPAGE="https://libtorrent.org/ https://github.com/arvidn/libtorrent"
46 +SRC_URI="https://github.com/arvidn/libtorrent/releases/download/v${PV}/${P}.tar.gz"
47 +
48 +LICENSE="BSD"
49 +SLOT="0/2.0"
50 +KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86"
51 +IUSE="+dht debug gnutls python ssl test"
52 +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
53 +RESTRICT="!test? ( test )"
54 +
55 +DEPEND="
56 + dev-libs/boost:=[threads(+)]
57 + python? (
58 + ${PYTHON_DEPS}
59 + $(python_gen_cond_dep '
60 + dev-libs/boost[python,${PYTHON_USEDEP}]
61 + ')
62 + )
63 + ssl? (
64 + gnutls? ( net-libs/gnutls:= )
65 + !gnutls? ( dev-libs/openssl:= )
66 + )
67 +"
68 +RDEPEND="${DEPEND}"
69 +BDEPEND="python? (
70 + $(python_gen_cond_dep '
71 + dev-python/setuptools[${PYTHON_USEDEP}]
72 + ')
73 + )"
74 +
75 +pkg_setup() {
76 + use python && python-single-r1_pkg_setup
77 +}
78 +
79 +src_configure() {
80 + local mycmakeargs=(
81 + -DCMAKE_CXX_STANDARD=17
82 + -DBUILD_SHARED_LIBS=ON
83 + -Dbuild_examples=OFF
84 + -Ddht=$(usex dht ON OFF)
85 + -Dencryption=$(usex ssl ON OFF)
86 + -Dgnutls=$(usex gnutls ON OFF)
87 + -Dlogging=$(usex debug ON OFF)
88 + -Dpython-bindings=$(usex python ON OFF)
89 + -Dbuild_tests=$(usex test ON OFF)
90 + )
91 +
92 + # We need to drop the . from the Python version to satisfy Boost's
93 + # FindBoost.cmake module, bug #793038.
94 + use python && mycmakeargs+=( -Dboost-python-module-name="${EPYTHON/./}" )
95 +
96 + cmake_src_configure
97 +}
98 +
99 +src_test() {
100 + local myctestargs=(
101 + # Needs running UPnP server
102 + -E "test_upnp"
103 + )
104 +
105 + # Checked out Fedora's test workarounds for inspiration
106 + # https://src.fedoraproject.org/rpms/rb_libtorrent/blob/rawhide/f/rb_libtorrent.spec#_120
107 + LD_LIBRARY_PATH="${BUILD_DIR}:${LD_LIBRARY_PATH}" cmake_src_test
108 +}