dev-python/pypy*: Fix USE=-ncurses and USE=-gdbm

Fix USE=-ncurses (and USE=-gdbm in pypy-2.6.0) not to try to regenerate
cffi modules for the two.

Bug: https://bugs.gentoo.org/show_bug.cgi?id=557540#c3

Package-Manager: portage-2.2.20
This commit is contained in:
Michał Górny
2015-08-15 07:42:19 +02:00
parent 213ac475f6
commit f1a1ce103a
4 changed files with 11 additions and 4 deletions

View File

@@ -203,11 +203,13 @@ src_install() {
# Generate cffi cache
# Please keep in sync with pypy/tool/release/package.py!
"${PYTHON}" -c "import _curses" || die "Failed to import _curses (cffi)"
"${PYTHON}" -c "import syslog" || die "Failed to import syslog (cffi)"
if use gdbm; then
"${PYTHON}" -c "import gdbm" || die "Failed to import gdbm (cffi)"
fi
if use ncurses; then
"${PYTHON}" -c "import _curses" || die "Failed to import _curses (cffi)"
fi
if use sqlite; then
"${PYTHON}" -c "import _sqlite3" || die "Failed to import _sqlite3 (cffi)"
fi

View File

@@ -203,11 +203,13 @@ src_install() {
# Generate cffi cache
# Please keep in sync with pypy/tool/release/package.py!
"${PYTHON}" -c "import _curses" || die "Failed to import _curses (cffi)"
"${PYTHON}" -c "import syslog" || die "Failed to import syslog (cffi)"
if use gdbm; then
"${PYTHON}" -c "import gdbm" || die "Failed to import gdbm (cffi)"
fi
if use ncurses; then
"${PYTHON}" -c "import _curses" || die "Failed to import _curses (cffi)"
fi
if use sqlite; then
"${PYTHON}" -c "import _sqlite3" || die "Failed to import _sqlite3 (cffi)"
fi

View File

@@ -217,8 +217,9 @@ src_install() {
# "syslog": "_syslog_build.py" if sys.platform != "win32" else None,
# "gdbm": "_gdbm_build.py" if sys.platform != "win32" else None,
# "pwdgrp": "_pwdgrp_build.py" if sys.platform != "win32" else None,
cffi_targets=( audioop curses syslog gdbm pwdgrp )
cffi_targets=( audioop syslog pwdgrp )
use gdbm && cffi_targets+=( gdbm )
use ncurses && cffi_targets+=( curses )
use sqlite && cffi_targets+=( sqlite3 )
use tk && cffi_targets+=( tkinter/tklib )