--- gcompris-9.2.2.ebuild +++ gcompris-9.2.2.ebuild @@ -47,7 +47,10 @@ S=${WORKDIR}/${PN}-$(get_version_component_range 1-2) pkg_setup() { - python_set_active_version 2 + if use python; then + python_set_active_version 2 + python_pkg_setup + fi games_pkg_setup } @@ -58,8 +61,6 @@ } src_configure() { - local python_version="$(PYTHON -a)" - GNUCHESS="${GAMES_BINDIR}"/gnuchess \ egamesconf \ --disable-dependency-tracking \ @@ -67,7 +68,7 @@ --datadir="${GAMES_DATADIR}" \ --localedir=/usr/share/locale \ --infodir=/usr/share/info \ - $(use_with python python "${python_version}") \ + $(use_with python python "$(PYTHON -a)") \ $(use_enable debug) \ $(use_enable gnet) \ --enable-sqlite \