diff options
Diffstat (limited to 'dev-python/pycparser/pycparser-2.16-r1.ebuild')
-rw-r--r-- | dev-python/pycparser/pycparser-2.16-r1.ebuild | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/dev-python/pycparser/pycparser-2.16-r1.ebuild b/dev-python/pycparser/pycparser-2.16-r1.ebuild index 05d488f3edcc..4a1f96d30d39 100644 --- a/dev-python/pycparser/pycparser-2.16-r1.ebuild +++ b/dev-python/pycparser/pycparser-2.16-r1.ebuild @@ -22,6 +22,15 @@ DEPEND="${RDEPEND} dev-python/setuptools[${PYTHON_USEDEP}] test? ( dev-python/nose[${PYTHON_USEDEP}] )" +pkg_pretend() { + if has_version "=dev-python/pycparser-2.16"; then + eerror "You have a broken version of dev-python/pycparser installed." + eerror "Please remove the broken version before continuing." + eerror "eg. emerge --unmerge =dev-python/pycparser-2.16" + die "Broken dev-python/pycparser" + fi +} + python_prepare_all() { # Bad permissions in tarball chmod -R go+rX "${S}" || die |