i.e. if use occ; then if has_version ">=sci-libs/opencascade-7.5"; then mycmakeargs+=( -DOCC_INCLUDE_DIR="${CASROOT}"/include/opencascade-7.5.1 -DOCC_LIBRARY_DIR="${CASROOT}"/$(get_libdir)/opencascade-7.5.1 ) with occ? ( sci-libs/opencascade:=[vtk(+)] ) This is a heads up because opencascade-7.5.2 will be added soon'ish, and it uses /usr/include/opencascade-7.5.2 I am aware >=opencascade-7.5 is hard to handle currently, dealii ebuild notably opted to pin versions until a better solution.
Thank you for the heads up. PR incoming.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ef75326644c79abe64864916524b5bfe8e25aa44 commit ef75326644c79abe64864916524b5bfe8e25aa44 Author: Zoltan Puskas <zoltan@sinustrom.info> AuthorDate: 2021-08-08 18:32:57 +0000 Commit: Ionen Wolkens <ionen@gentoo.org> CommitDate: 2021-08-09 05:45:28 +0000 sci-electronics/kicad: Fixup ebuild to support opencascade-7.5.2 OpenCascade currently is hard to handle and some version pinning is neccessary. This diff updates ebuild to support all current OpenCasade versions in Portage. Closes: https://bugs.gentoo.org/800944 Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Zoltan Puskas <zoltan@sinustrom.info> Closes: https://github.com/gentoo/gentoo/pull/21918 Signed-off-by: Ionen Wolkens <ionen@gentoo.org> sci-electronics/kicad/kicad-5.1.10-r1.ebuild | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)