diff options
author | Mike Gilbert <floppym@gentoo.org> | 2016-10-25 10:18:24 -0400 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2016-10-25 10:19:24 -0400 |
commit | eebba2385e89f4390d45299d9b3aa48e87c13f53 (patch) | |
tree | bf3c7b6a95cf7c313a52187996030b9ff929c34a /dev-python/pycparser | |
parent | dev-lang/rust-bin: Fixed manifest file as requested by Soap. (diff) | |
download | gentoo-eebba2385e89f4390d45299d9b3aa48e87c13f53.tar.gz gentoo-eebba2385e89f4390d45299d9b3aa48e87c13f53.tar.bz2 gentoo-eebba2385e89f4390d45299d9b3aa48e87c13f53.zip |
dev-python/pycparser: add pkg_pretend check for broken version
Having the broken pycparser-2.16 installed breaks installation of
all setuptools packages, including the 2.16-r1 revbump.
Package-Manager: portage-2.3.2
Diffstat (limited to 'dev-python/pycparser')
-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 |