From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B921015800F for ; Sat, 18 Feb 2023 20:04:18 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E8226E08AD; Sat, 18 Feb 2023 20:04:17 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7C030E08CD for ; Sat, 18 Feb 2023 20:04:17 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 670FC340F1E for ; Sat, 18 Feb 2023 20:04:16 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A5B158B4 for ; Sat, 18 Feb 2023 20:04:14 +0000 (UTC) From: "Piotr Karbowski" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Piotr Karbowski" Message-ID: <1676750598.359d3d652ccd9d809b07f87222ff47bb322da97e.slashbeast@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/libtorrent-rasterbar/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-libs/libtorrent-rasterbar/libtorrent-rasterbar-1.2.18-r1.ebuild X-VCS-Directories: net-libs/libtorrent-rasterbar/ X-VCS-Committer: slashbeast X-VCS-Committer-Name: Piotr Karbowski X-VCS-Revision: 359d3d652ccd9d809b07f87222ff47bb322da97e X-VCS-Branch: master Date: Sat, 18 Feb 2023 20:04:14 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: ecba159c-d918-4d5e-9cfc-eb5546b8698a X-Archives-Hash: f05c169629d465020c642e6eadc82a63 commit: 359d3d652ccd9d809b07f87222ff47bb322da97e Author: Piotr Karbowski gentoo org> AuthorDate: Sat Feb 18 20:03:18 2023 +0000 Commit: Piotr Karbowski gentoo org> CommitDate: Sat Feb 18 20:03:18 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=359d3d65 net-libs/libtorrent-rasterbar: 1.2.18-r1 bump; EAPI bump; py3.11. Signed-off-by: Piotr Karbowski gentoo.org> .../libtorrent-rasterbar-1.2.18-r1.ebuild | 70 ++++++++++++++++++++++ 1 file changed, 70 insertions(+) diff --git a/net-libs/libtorrent-rasterbar/libtorrent-rasterbar-1.2.18-r1.ebuild b/net-libs/libtorrent-rasterbar/libtorrent-rasterbar-1.2.18-r1.ebuild new file mode 100644 index 000000000000..0da40a43037d --- /dev/null +++ b/net-libs/libtorrent-rasterbar/libtorrent-rasterbar-1.2.18-r1.ebuild @@ -0,0 +1,70 @@ +# Copyright 2021-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9..11} ) + +inherit cmake python-single-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/10" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86" +IUSE="+dht debug python ssl test" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" +RESTRICT="!test? ( test )" + +DEPEND=" + dev-libs/boost:= + python? ( + ${PYTHON_DEPS} + $(python_gen_cond_dep ' + dev-libs/boost[python,${PYTHON_USEDEP}] + ') + ) + ssl? ( dev-libs/openssl:= ) +" +RDEPEND="${DEPEND}" +BDEPEND="python? ( + $(python_gen_cond_dep ' + dev-python/setuptools[${PYTHON_USEDEP}] + ') + )" + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +src_configure() { + local mycmakeargs=( + -DBUILD_SHARED_LIBS=ON + -Dbuild_examples=OFF + -Ddht=$(usex dht ON OFF) + -Dencryption=$(usex ssl ON OFF) + -Dlogging=$(usex debug ON OFF) + -Dpython-bindings=$(usex python ON OFF) + -Dbuild_tests=$(usex test ON OFF) + ) + + # We need to drop the . from the Python version to satisfy Boost's + # FindBoost.cmake module, bug #793038. + use python && mycmakeargs+=( -Dboost-python-module-name="${EPYTHON/./}" ) + + cmake_src_configure +} + +src_test() { + local myctestargs=( + # test_upnp: needs running UPnP server + -E "test_upnp" + ) + + # Checked out Fedora's test workarounds for inspiration + # https://src.fedoraproject.org/rpms/rb_libtorrent/blob/rawhide/f/rb_libtorrent.spec#_120 + # -j1 for https://bugs.gentoo.org/854603#c1 + LD_LIBRARY_PATH="${BUILD_DIR}:${LD_LIBRARY_PATH}" cmake_src_test -j1 +}