dev-python/cgkit: Fix configure with >=boost-1.70
authorAndreas Sturmlechner <asturm@gentoo.org>
Sat, 27 Jul 2019 07:52:41 +0000 (09:52 +0200)
committerAndreas Sturmlechner <asturm@gentoo.org>
Sat, 27 Jul 2019 07:53:27 +0000 (09:53 +0200)
Closes: https://bugs.gentoo.org/690800
Package-Manager: Portage-2.3.69, Repoman-2.3.16
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
dev-python/cgkit/cgkit-2.0.0-r2.ebuild

index b5dd3ab667bc1b7600da41f2c1f8420d59c0eba9..0edbc19a9c5fcddaa3a07940700d2a13d8b44b97 100644 (file)
@@ -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_