sci-chemistry/gromacs: fix python dep
authorChristoph Junghans <junghans@gentoo.org>
Wed, 24 Oct 2018 01:42:26 +0000 (19:42 -0600)
committerChristoph Junghans <junghans@gentoo.org>
Wed, 24 Oct 2018 01:42:53 +0000 (19:42 -0600)
Package-Manager: Portage-2.3.49, Repoman-2.3.11
Signed-off-by: Christoph Junghans <junghans@gentoo.org>
sci-chemistry/gromacs/gromacs-2019.9999.ebuild

index 8a643e0fb30defa3a51701a20a617a10165ebbfe..2fde5b4b55b7196834a321736ab02fdea5dbfc88 100644 (file)
@@ -5,7 +5,9 @@ EAPI=6
 
 CMAKE_MAKEFILE_GENERATOR="ninja"
 
-inherit bash-completion-r1 cmake-utils cuda eutils multilib readme.gentoo-r1 toolchain-funcs xdg-utils
+PYTHON_COMPAT=( python2_7 )
+
+inherit bash-completion-r1 cmake-utils cuda eutils multilib python-any-r1 readme.gentoo-r1 toolchain-funcs xdg-utils
 
 if [[ $PV = *9999* ]]; then
        EGIT_REPO_URI="git://git.gromacs.org/gromacs.git
@@ -53,7 +55,8 @@ DEPEND="${CDEPEND}
        virtual/pkgconfig
        doc? (
                app-doc/doxygen
-               dev-python/sphinx
+               ${PYTHON_DEPS}
+               $(python_gen_any_dep 'dev-python/sphinx[${PYTHON_USEDEP}]')
                media-gfx/mscgen
                dev-texlive/texlive-latex
                dev-texlive/texlive-latexextra
@@ -165,6 +168,7 @@ src_configure() {
                -DGMX_COOL_QUOTES=$(usex offensive)
                -DGMX_USE_TNG=$(usex tng)
                -DGMX_BUILD_MANUAL=$(usex doc)
+               -DPYTHON_EXECUTABLE="${PYTHON}"
                -DGMX_HWLOC=$(usex hwloc)
                -DGMX_DEFAULT_SUFFIX=off
                -DGMX_SIMD="$acce"