diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-08-14 11:06:13 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-08-14 11:06:13 +0100 |
commit | e000645bea7492c9f5277722c0ada7e1ee0b4833 (patch) | |
tree | a604499d25e682002ec55cc5e7d14e0c53809199 /dev-python/pybind11 | |
parent | be8708090362c01c6111c4b76f1e395c14d86e00 (diff) |
gentoo auto-resync : 14:08:2024 - 11:06:13
Diffstat (limited to 'dev-python/pybind11')
-rw-r--r-- | dev-python/pybind11/Manifest | 2 | ||||
-rw-r--r-- | dev-python/pybind11/pybind11-2.13.3.ebuild | 74 |
2 files changed, 76 insertions, 0 deletions
diff --git a/dev-python/pybind11/Manifest b/dev-python/pybind11/Manifest index 7b4d8128884b..e6cd669a2488 100644 --- a/dev-python/pybind11/Manifest +++ b/dev-python/pybind11/Manifest @@ -2,8 +2,10 @@ AUX pybind11-2.13.1-gcc14-fix.patch 712 BLAKE2B a01e3ec1858e708a1170512abe13636f 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 EBUILD pybind11-2.11.1.ebuild 1305 BLAKE2B 60bdb063e9efb295ac3d49497b199cd9b9dedd23e3891ec9c96c6e2867e89c1cee9c16f3a34a4772813a850c74484fefd9c2dd53a072a84025b894546a0b237c SHA512 524695d724d859ea333de8975c392792c4ed685212204ecf72020af767d1cff6fdc307ecbd8e433af3627a76b2c7a5a41e83b13e313041fdd474df73880fb19c EBUILD pybind11-2.12.0.ebuild 1458 BLAKE2B 59b0a968da4155d2450df3b609101e431a70f2f958d7bfdf7a2be64dbb1aa50416fabe41d7dc06b882cda0ddd23dceac47d7c0700a0466bb6b02a1dce9d2da98 SHA512 b5a7bb5ae2eefcc144b337241eb14316d292fc975ab20a0166b159ec43828dc613498a568517f663f835a18e26da9f25410d07fe1a197874e4e6f9e7c36e5ee9 EBUILD pybind11-2.13.1-r1.ebuild 1513 BLAKE2B a478e2ee389aac5d47d4c175bdba94ff0fc2ae529fc1b8e3278ddacd06901a86c85e3978eb7a9a5f76e6f6db7d68f630d0a355c48666d1644d4f999414ae4633 SHA512 705baf40071072de7fa7dc212bdc9c7e907f79108bd803cb23646728d5a260711fe620b18fd8bb7f0e9ac0849202b3c0b2e10a92a104b779e3da8c0f96390d5f EBUILD pybind11-2.13.1.ebuild 1465 BLAKE2B 855356abbdfb0b99d5b41e5b21872fb9454676c244e19169d78d5b74fb35ccbef0b440978e0a775558515da16832d0b09396dba04811e4478910ddbfacb14bc8 SHA512 5b52bc54e96b30787adc8b45bba2f05442a1a3e5cbe62dc9050ce99b64a32377f1c344ae71852e9c927de31fa962aeb77bc036314a52f230586179242e238966 +EBUILD pybind11-2.13.3.ebuild 1465 BLAKE2B 855356abbdfb0b99d5b41e5b21872fb9454676c244e19169d78d5b74fb35ccbef0b440978e0a775558515da16832d0b09396dba04811e4478910ddbfacb14bc8 SHA512 5b52bc54e96b30787adc8b45bba2f05442a1a3e5cbe62dc9050ce99b64a32377f1c344ae71852e9c927de31fa962aeb77bc036314a52f230586179242e238966 MISC metadata.xml 475 BLAKE2B faf317a1197850acb0d16546a303bd50ee1bfe6fc3aaf592e6c147c6612fd20b809f1c911d79ca9a356cfa0c4166d2b155fcbd593f8b55e0d7dd75ff6444073b SHA512 5779adcc9f25c15fd999aa6c91d3144fc14535270e57925bfb8ac67f45448c144a142af2ea9a321ec6ffbf568713f663cef85a0be3d4a056e58b1782a5fc9a41 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-3:0 + >=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 +} |