summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Ammerlaan <andrewammerlaan@gentoo.org>2021-06-04 12:44:22 +0200
committerAndrew Ammerlaan <andrewammerlaan@gentoo.org>2021-06-04 12:45:14 +0200
commit902a9ca41190227b9e75f3cabab98c1d17fd2a3f (patch)
tree61424e38acacc17d336f3769daa007898e6f0948 /dev-python/libsass
parentapp-portage/smart-live-rebuild: Enable py3.10 (diff)
downloadgentoo-902a9ca41190227b9e75f3cabab98c1d17fd2a3f.tar.gz
gentoo-902a9ca41190227b9e75f3cabab98c1d17fd2a3f.tar.bz2
gentoo-902a9ca41190227b9e75f3cabab98c1d17fd2a3f.zip
dev-python/libsass: fix compilation with clang
Closes: https://bugs.gentoo.org/730244 Package-Manager: Portage-3.0.19, Repoman-3.0.3 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
Diffstat (limited to 'dev-python/libsass')
-rw-r--r--dev-python/libsass/libsass-0.21.0.ebuild6
1 files changed, 5 insertions, 1 deletions
diff --git a/dev-python/libsass/libsass-0.21.0.ebuild b/dev-python/libsass/libsass-0.21.0.ebuild
index 88f4ed3e19d..42335f36cb9 100644
--- a/dev-python/libsass/libsass-0.21.0.ebuild
+++ b/dev-python/libsass/libsass-0.21.0.ebuild
@@ -4,7 +4,7 @@
EAPI=7
PYTHON_COMPAT=( python3_{7..10} )
-inherit distutils-r1
+inherit distutils-r1 toolchain-funcs
MY_P="libsass-python-${PV}"
DESCRIPTION="A straightforward binding of libsass for Python"
@@ -37,6 +37,10 @@ src_prepare() {
echo "${PV}" > .libsass-upstream-version || die
distutils-r1_src_prepare
export SYSTEM_SASS=1
+ # https://bugs.gentoo.org/730244
+ if tc-is-clang; then
+ sed -i -e 's/-std=gnu++0x//g' setup.py || die
+ fi
}
python_test() {