commit: f0b422090842ec668fd7d6ba01a12a49e25461b9 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> AuthorDate: Sat Jul 27 07:52:41 2019 +0000 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> CommitDate: Sat Jul 27 07:53:27 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f0b42209
dev-python/cgkit: Fix configure with >=boost-1.70 Closes: https://bugs.gentoo.org/690800 Package-Manager: Portage-2.3.69, Repoman-2.3.16 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> dev-python/cgkit/cgkit-2.0.0-r2.ebuild | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/dev-python/cgkit/cgkit-2.0.0-r2.ebuild b/dev-python/cgkit/cgkit-2.0.0-r2.ebuild index b5dd3ab667b..0edbc19a9c5 100644 --- a/dev-python/cgkit/cgkit-2.0.0-r2.ebuild +++ b/dev-python/cgkit/cgkit-2.0.0-r2.ebuild @@ -55,9 +55,16 @@ python_prepare() { eapply "${FILESDIR}"/${PN}-py2k-pillow.patch fi + local boostpy_ver="${EPYTHON#python}" + if has_version ">=dev-libs/boost-1.70"; then + boostpy_ver="${boostpy_ver/\.}" + else + boostpy_ver="-${boostpy_ver}" + fi + cp config_template.cfg config.cfg || die cat >> config.cfg <<- _EOF_ || die - BOOST_LIB = 'boost_python-${EPYTHON#python}' + BOOST_LIB = 'boost_python${boostpy_ver}' LIBS += ['GL', 'GLU', 'glut'] LIB3DS_AVAILABLE = $(usex 3ds True False) _EOF_
