# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 #PYTHON_COMPAT=( python3_{9..12} ) PYTHON_COMPAT=( python3_10 ) PYPI_NO_NORMALIZE=1 DISTUTILS_USE_PEP517=setuptools inherit distutils-r1 git-r3 cmake multilib DESCRIPTION="Tools to support the processing of materials-science data" HOMEPAGE="https://www.mantidproject.org/" #SRC_URI="https://github.com/mantidproject/mantid/archive/v${PV}.tar.gz -> ${P}.tar.gz" EGIT_REPO_URI="https://github.com/mantidproject/mantid.git" EGIT_REPO_URI_SPAN="https://github.com/tcbrindle/span.git" EGIT_REPO_URI_MSLICE="https://github.com/mantidproject/mslice.git" EGIT_REPO_URI_PYSTOG="https://github.com/neutrons/pystog.git" EGIT_REPO_URI_GTEST="https://github.com/google/googletest.git/" if [[ ${PV} = *9999* ]] ; then EGIT_COMMIT="HEAD" else EGIT_COMMIT=v${PV} fi EGIT_CLONE_TYPE="single" LICENSE="GPL-v3" SLOT="0" KEYWORDS="" #~amd64 #work in progress IUSE="doc python test" #hdf5>=1.12,<1.13 #libopenblas!=0.3.23,!=0.3.24,!=0.3.25 #> ${S}/_deps/span-subbuild/span-populate-prefix/src/span-populate-stamp/span-populate-gitclone-lastrun.txt || die #Let mslice be sed -i -r "s!https://github.com/mantidproject/mslice.git!$WORKDIR/$P/scripts/ExternalInterfaces/src/mslice!" scripts/ExternalInterfaces/CMakeLists.txt || die #Let PyStog be sed -i -r "s!https://github.com/neutrons/pystog.git!$WORKDIR/$P/new_git/pystog!" buildconfig/CMake/PyStoG.cmake || die #Bugfix sed -iez 's:configure_package_config_file(:include(CMakePackageConfigHelpers)\nconfigure_package_config_file(:' Framework/CMakeLists.txt || die #Bugfix; works for gcc:13 sed -iez 's:#include :#include \n#include :' Framework/Parallel/src/IO/Chunker.cpp || die #That might be a better option... or not #sed -iez 's:#include :#include \n#include :' Framework/Parallel/src/IO/Chunker.cpp || die #sed -ie 's!return UINT64_MAX;!std::numeric_limits::max();!' Framework/Parallel/src/IO/Chunker.cpp || die #Bugfix; works for gcc:13 sed -iez 's:#include :#include \n#include :' Framework/API/inc/MantidAPI/PreviewManager.h || die #Bugfix (Py3.11 related, does not work) #sed -iez 's:#include :#include \n#include \n#include :' Framework/PythonInterface/core/src/ErrorHandling.cpp || die #Bugfix sed -ie 's!../lib/qt5\n\n!../lib64/qt5\n\n;!' qt/applications/workbench/CMakeLists.txt || die default cmake_src_prepare } src_configure() { #local mycmakeargs=( # GMOCK_INCLUDE_DIR=/usr/include/gmock/ #) python_setup cmake_src_configure } #pkg_preinst() { # rm -rf ${D}/lib64 # mv -R ${D}/lib ${D}/lib64 #}