# Copyright 1999-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 PYTHON_COMPAT=( python3_{11..14} ) inherit cmake python-single-r1 xdg MY_P="${PN}-v${PV}" DESCRIPTION="Simulate and fit X-ray/neutron reflectometry and grazing-incidence scattering" HOMEPAGE="https://bornagainproject.org/ https://jugit.fz-juelich.de/mlz/bornagain" SRC_URI="https://jugit.fz-juelich.de/mlz/bornagain/-/archive/v${PV}/${MY_P}.tar.gz" S="${WORKDIR}/${MY_P}" LICENSE="GPL-3+" SLOT="0" KEYWORDS="~amd64" IUSE="+gui +python +tiff" REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" DEPEND=" >=dev-libs/boost-1.74:= sci-libs/fftw:3.0= sci-libs/gsl:= sci-libs/libcerf:= >=sci-libs/libformfactor-0.3.0 =sci-libs/libheinz-2.0.0 , so package's lib/ subdir is 5 levels deep. local sopath soname rel rel=$(realpath -m --relative-to="${sitedir}/bornagain/lib" \ "/usr/$(get_libdir)") || die "realpath failed" for sopath in "${py_pkg_dir}/lib"/_libBornAgain*.so; do soname=${sopath##*/} dosym "${rel}/${soname}" "${sitedir}/bornagain/lib/${soname}" done python_optimize "${ED}${sitedir}/bornagain" fi }