# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 DISTUTILS_EXT=1 PYTHON_COMPAT=( python3_{10..13} ) # keep in sync with dev-python/clang dependency LLVM_COMPAT=( {17..19} ) # OCP uses "python-single-r1" only because VTK uses "python-single-r1". inherit check-reqs cmake llvm-r1 python-single-r1 toolchain-funcs #multiprocessing MY_PN=OCP MY_PV="${PV//_/-}" MY_P="${MY_PN}-${MY_PV}" OCCT_PV=$(ver_cut 1-3) DESCRIPTION="Python wrapper for OCCT generated using pywrap" HOMEPAGE="https://github.com/CadQuery/OCP" # FIXME https://github.com/CadQuery/OCP/issues/132 PREBUILT_STUBS_NAME="OCP_src_stubs_ubuntu-20.04" SRC_URI="https://github.com/CadQuery/OCP/archive/refs/tags/${MY_PV}.tar.gz -> ${P}.tar.gz https://github.com/CadQuery/OCP/releases/download/${MY_PV}/${PREBUILT_STUBS_NAME}.zip -> ${P}-${PREBUILT_STUBS_NAME}.zip" S="${WORKDIR}/${MY_P}" LICENSE="Apache-2.0" SLOT="0" KEYWORDS="~amd64 ~x86" REQUIRED_USE="${PYTHON_REQUIRED_USE}" # CMake and VTK requirements derive from the "OCP/CMakeLists.txt" file # generated by the src_prepare() phase. OCP currently requires opencascade # (OCCT) to be built with "-DUSE_GLES2=OFF" and thus "-gles2". See also: # https://github.com/CadQuery/OCP/issues/46#issuecomment-808920994 # # keep dev-python/clang in sync with LLVM_COMPAT BDEPEND=" app-arch/unzip $(python_gen_cond_dep ' >=dev-util/lief-0.11.5[python,${PYTHON_USEDEP}]