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 D71BD159C9B for ; Wed, 14 Aug 2024 06:05:38 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B5218E2A4B; Wed, 14 Aug 2024 06:05:36 +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 61FC8E2A4B for ; Wed, 14 Aug 2024 06:05:35 +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 57EAB340C57 for ; Wed, 14 Aug 2024 06:05:34 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id AEFC71EEC for ; Wed, 14 Aug 2024 06:05:32 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1723615512.947d3ef2b406873bddddc53d88e0d2dc71e9679d.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pybind11/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/pybind11/Manifest dev-python/pybind11/pybind11-2.13.3.ebuild X-VCS-Directories: dev-python/pybind11/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 947d3ef2b406873bddddc53d88e0d2dc71e9679d X-VCS-Branch: master Date: Wed, 14 Aug 2024 06:05:32 +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: 7214ac24-1a2e-48e2-b486-81b12b5418a1 X-Archives-Hash: 9351370c079b2e59f64e8de3c026ef39 commit: 947d3ef2b406873bddddc53d88e0d2dc71e9679d Author: Michał Górny gentoo org> AuthorDate: Wed Aug 14 04:40:44 2024 +0000 Commit: Michał Górny gentoo org> CommitDate: Wed Aug 14 06:05:12 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=947d3ef2 dev-python/pybind11: Bump to 2.13.3 Signed-off-by: Michał Górny gentoo.org> dev-python/pybind11/Manifest | 1 + dev-python/pybind11/pybind11-2.13.3.ebuild | 74 ++++++++++++++++++++++++++++++ 2 files changed, 75 insertions(+) diff --git a/dev-python/pybind11/Manifest b/dev-python/pybind11/Manifest index c6fbbb96ad7b..12be760a64fb 100644 --- a/dev-python/pybind11/Manifest +++ b/dev-python/pybind11/Manifest @@ -1,3 +1,4 @@ DIST pybind11-2.11.1.gh.tar.gz 756445 BLAKE2B 66ad933ffcd7fd475121f0b7488e13b914cb090d0ed511b96070e2849dcc537fb55e865b72fe06da6c5d1e3ed8e438799c5b0b60cbdc71e5713530174bff3be9 SHA512 ed1512ff0bca3bc0a45edc2eb8c77f8286ab9389f6ff1d5cb309be24bc608abbe0df6a7f5cb18c8f80a3bfa509058547c13551c3cd6a759af708fd0cdcdd9e95 DIST pybind11-2.12.0.gh.tar.gz 771004 BLAKE2B df95d12cd005c85434ba8a4d80740f437f3f9433b0fbc9e6e1e5bf840281d5cb8295500b6510474a91b45201323b19079743ca927f7d1be2c1dc0dca89833e9c SHA512 c20247a4dccec310307174a26a79f9a98dd7ae7c84a48ad61c61589b02ef74caac26c2945de602cbe38b0bea65fc9985f1cc37f9e2322cae2f824dee98d602f1 DIST pybind11-2.13.1.gh.tar.gz 789821 BLAKE2B b1634878a9a772d1200c79a5e7554a16a9ec76a57cbe4fc6fa86c70f9e383ebeb2b2ced7006392dbb1196144fb02f2415ff511e2b041a6fa3fe63b7c511c98f9 SHA512 97d7a2892af67adad16b6ff0fb3e6324c88d1dd931dfa0d34cf6d181baec05ed791f0980abf2174db22aabaa382fd5b5f00cb287cf6477a4786c999f29719717 +DIST pybind11-2.13.3.gh.tar.gz 793263 BLAKE2B ba295fb0dbbeacd5d2b9fa335cf91c4e4b9daee29c7b994f8878b8078d18a18ee48874a3264f5bff280257cf677339324f7875d2f1bb8b855c6097982a71cdcd SHA512 76629d4ad5b91975bbf3fb05580403915f096a4d91b37d947fdbcb3b44783b3f0c9e5a4e289da222902e6b458e29893521523f41d9eb99da7e4890261be00947 diff --git a/dev-python/pybind11/pybind11-2.13.3.ebuild b/dev-python/pybind11/pybind11-2.13.3.ebuild new file mode 100644 index 000000000000..c18727f31be1 --- /dev/null +++ b/dev-python/pybind11/pybind11-2.13.3.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..13} pypy3 ) + +inherit cmake distutils-r1 + +DESCRIPTION="AST-based Python refactoring library" +HOMEPAGE=" + https://pybind11.readthedocs.io/en/stable/ + https://github.com/pybind/pybind11/ + https://pypi.org/project/pybind11/ +" +SRC_URI=" + https://github.com/pybind/pybind11/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~arm64-macos ~x64-macos" + +RDEPEND=" + dev-cpp/eigen:3 +" +BDEPEND=" + test? ( + =dev-cpp/catch-2.13.9:0 + dev-libs/boost + ) +" + +EPYTEST_XDIST=1 +distutils_enable_tests pytest + +python_prepare_all() { + cmake_src_prepare + distutils-r1_python_prepare_all +} + +python_configure() { + local mycmakeargs=( + # disable forced lto + -DHAS_FLTO=OFF + # https://github.com/pybind/pybind11/issues/5087 + -DPYBIND11_FINDPYTHON=OFF + -DPYBIND11_INSTALL=ON + -DPYBIND11_TEST=$(usex test) + ) + cmake_src_configure +} + +python_compile() { + distutils-r1_python_compile + # Compilation only does anything for tests + use test && cmake_src_compile +} + +python_test() { + cmake_build cpptest test_cmake_build + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + cd "${BUILD_DIR}/tests" || die + epytest "${S}/tests" +} + +python_install() { + distutils-r1_python_install + cmake_src_install +}