From fd7bf06d88ac431e7d531701551815fd63c73963 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 3 May 2023 23:26:49 +0100 Subject: gentoo auto-resync : 03:05:2023 - 23:26:49 --- dev-libs/libpy/libpy-0.2.5-r2.ebuild | 61 ++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 dev-libs/libpy/libpy-0.2.5-r2.ebuild (limited to 'dev-libs/libpy/libpy-0.2.5-r2.ebuild') diff --git a/dev-libs/libpy/libpy-0.2.5-r2.ebuild b/dev-libs/libpy/libpy-0.2.5-r2.ebuild new file mode 100644 index 000000000000..e11055754550 --- /dev/null +++ b/dev-libs/libpy/libpy-0.2.5-r2.ebuild @@ -0,0 +1,61 @@ +# Copyright 2021-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9..11} ) +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +inherit flag-o-matic distutils-r1 + +GTEST_VER="23b2a3b1cf803999fb38175f6e9e038a4495c8a5" + +DESCRIPTION="Utilities for writing C++ extension modules" +HOMEPAGE="https://quantopian.github.io/libpy/ + https://github.com/quantopian/libpy" +SRC_URI=" + https://github.com/quantopian/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz + test? ( https://github.com/google/googletest/archive/${GTEST_VER}.tar.gz -> gtest-${GTEST_VER}.tar.gz ) +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="sparsehash test" + +COMMON_DEPEND=" + >=dev-python/numpy-1.11.3[${PYTHON_USEDEP}] +" +RDEPEND=" + ${COMMON_DEPEND} +" +BDEPEND=" + ${COMMON_DEPEND} + sparsehash? ( dev-cpp/sparsehash ) + test? ( + dev-cpp/gtest + >=dev-python/pytest-4.4.1[${PYTHON_USEDEP}] + ) +" + +RESTRICT="!test? ( test )" +REQUIRED_USE="test? ( sparsehash )" + +# my C++ isn't good enough to fix the tests +RESTRICT+=" test" + +PATCHES=( + "${FILESDIR}/libpy-0.2.5-no-werror.patch" + "${FILESDIR}/libpy-0.2.5-permissions.patch" + "${FILESDIR}/libpy-0.2.5-cflags.patch" + "${FILESDIR}/libpy-0.2.5-stdint.patch" + "${FILESDIR}/libpy-0.2.5-setuptools.patch" +) + +python_test() { + emake GTEST_ROOT="${WORKDIR}/googletest-${GTEST_VER}" test +} + +python_configure() { + replace-flags '-O*' '-O3' +} -- cgit v1.2.3