diff options
author | Fabian Groffen <grobian@gentoo.org> | 2016-03-20 19:37:17 +0100 |
---|---|---|
committer | Fabian Groffen <grobian@gentoo.org> | 2016-03-20 19:37:17 +0100 |
commit | 0d4af395db7e65b95f300d9c4141067e9e9d8480 (patch) | |
tree | 6ac36fd7f880119e82922f2361a0ed668db83aec /dev-python/pycairo | |
parent | app-emulation/vmware-player: Drop pulseaudio requirement after reports on bug... (diff) | |
download | gentoo-0d4af395db7e65b95f300d9c4141067e9e9d8480.tar.gz gentoo-0d4af395db7e65b95f300d9c4141067e9e9d8480.tar.bz2 gentoo-0d4af395db7e65b95f300d9c4141067e9e9d8480.zip |
dev-python/pycairo: fix install_name_tooling for Python 3.5+ on Darwin, bug #576650
Package-Manager: portage-2.2.27
Diffstat (limited to 'dev-python/pycairo')
-rw-r--r-- | dev-python/pycairo/pycairo-1.10.0-r5.ebuild | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/dev-python/pycairo/pycairo-1.10.0-r5.ebuild b/dev-python/pycairo/pycairo-1.10.0-r5.ebuild index fb86310adec6..18fc1adc262d 100644 --- a/dev-python/pycairo/pycairo-1.10.0-r5.ebuild +++ b/dev-python/pycairo/pycairo-1.10.0-r5.ebuild @@ -133,8 +133,10 @@ src_install() { # calling them .bundle, it also has no idea what it should do to create # proper ones (dylibs) fix_darwin_install_names() { - local x="$(python_get_sitedir)/cairo/_cairo.bundle" - install_name_tool -id "${x}" "${ED}${x}" + local suffix=$("${PYTHON}" -c 'import sysconfig; print(sysconfig.get_config_var("EXT_SUFFIX"))') + [[ -z ${suffix} || ${suffix} == "None" ]] && suffix=".bundle" + local x="$(python_get_sitedir)/cairo/_cairo${suffix}" + install_name_tool -id "${x}" "${D}${x}" } python_foreach_impl fix_darwin_install_names fi |