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:44:57 +02:00
parent 213ac475f6
commit f1a1ce103a
4 changed files with 11 additions and 4 deletions
+3 -1
View File
@@ -197,11 +197,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