diff options
Diffstat (limited to 'dev-python/libsass')
-rw-r--r-- | dev-python/libsass/Manifest | 3 | ||||
-rw-r--r-- | dev-python/libsass/libsass-0.21.0-r1.ebuild | 58 | ||||
-rw-r--r-- | dev-python/libsass/metadata.xml | 4 |
3 files changed, 64 insertions, 1 deletions
diff --git a/dev-python/libsass/Manifest b/dev-python/libsass/Manifest index 9f9dca8cc16d..59dc451909b1 100644 --- a/dev-python/libsass/Manifest +++ b/dev-python/libsass/Manifest @@ -1,4 +1,5 @@ AUX libsass-0.20.0_rename_sassc.patch 1710 BLAKE2B 410f1256dbe433d5836a0c7f94a30b0fbe174285408d5c3c0589a7f4f58d2417c9be37af6ae137031365450ad2bca51ebb2cd6083c625d95a33ac8c0eb3bc80e SHA512 3e30b6a5cc387aac526ca2159d5854b28090ab41d7d4b2512627cc1e5b392569b81c0b1c845d3311a9cd44c73a6ed109b2a06a9677cbe15a4a39c7ab0c7c4a6d DIST libsass-python-0.21.0.gh.tar.gz 55774 BLAKE2B 3c584ff3b6c09bc768554a3a4f7ef28ecea0726f59206da8540f9c1b4db74ab1235695074dd6b95db74f174066bb856c9854026525da82e7763f341920f0bd53 SHA512 d5b7a1bf0dc736a6a38e2e609f0a213306de31d5ad84cfdcd96f9ff72a1c38f15bad3cf25a1cec6dca5a9f3b00a8509afff2b4ea5e4db80e218e3ae603d55856 +EBUILD libsass-0.21.0-r1.ebuild 1563 BLAKE2B b2b7fe434d2331513e329975d273b0c6df94af9319f6ab0ab6b9a371bd48769d34a0c16c37fb94389b424b4c8837caa8076eb1c5c833078560f67df392cb217c SHA512 c9b49058081f3822ebd208c22b3a510501074d762165cf986033c50b49ae2f0aab95190f4a12d766236d17b7cc599490345a193086a17e8b47e0e2aeb09d3af7 EBUILD libsass-0.21.0.ebuild 1527 BLAKE2B 1524db6af9b9d8f38626da41ae7f0362bb91d8514f368d920c4bb3dc1467f0771fb27cc704ed8c2167f90e020ff58f72d78ada6a7468824f52f5c7f56771c372 SHA512 4162ec08c68a798d489ea436e4ddf317d7d6ba8e75f89aa7fdc672cc5a097b6e688392de3a7b633d60556f7f28e2f6f8ef6db95c951c3233ad65c416b70da8fd -MISC metadata.xml 329 BLAKE2B 2a87d59708e093407a70f5d94e1dad9c2014c0f33898d87c1e6f67809193654438cb878934252a5c98d66bcdb827880b0dc822cd0eaf44cd64f722542d3a1e1d SHA512 e9632e6f0343901a94f6e7b032760b13f67f81bd2bad97a139957f34b4f0c01632e7d1b337361af41dcb732390e2a5a096183016127d1922f0dd957a23906059 +MISC metadata.xml 430 BLAKE2B 6d9f1d6a435110869d11d460136c6e1ede1119110111de1fd737caa92f52688a305645478542efc9a33f30f5534b55421ab63470db342a781b5f8f008048ba3f SHA512 b6dc1c8363dc915ad1ee1d6d1ec4f7599625648c0d75d4b159215069716a8e60f0efc72ad846cf59f7cf2736d083f4e37784c818d287b38e06b066b997c2f3ae diff --git a/dev-python/libsass/libsass-0.21.0-r1.ebuild b/dev-python/libsass/libsass-0.21.0-r1.ebuild new file mode 100644 index 000000000000..e762d9eb658b --- /dev/null +++ b/dev-python/libsass/libsass-0.21.0-r1.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..11} ) +DISTUTILS_USE_PEP517=setuptools +inherit distutils-r1 toolchain-funcs + +MY_P="libsass-python-${PV}" +DESCRIPTION="A straightforward binding of libsass for Python" +HOMEPAGE="https://github.com/sass/libsass-python/" +SRC_URI=" + https://github.com/sass/libsass-python/archive/${PV}.tar.gz + -> ${MY_P}.gh.tar.gz" +S="${WORKDIR}/${MY_P}" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=">=dev-libs/libsass-3.6.5" +DEPEND="${RDEPEND}" +BDEPEND=" + dev-python/six[${PYTHON_USEDEP}] + test? ( + dev-python/PyQt5[testlib,${PYTHON_USEDEP}] + dev-python/werkzeug[${PYTHON_USEDEP}] + )" + +# Remove sassc, in favour of pysassc, see: https://github.com/sass/libsass-python/issues/134 +# This avoids a file collision with dev-lang/sassc +PATCHES=( "${FILESDIR}"/${PN}-0.20.0_rename_sassc.patch ) + +distutils_enable_tests pytest + +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() { + local deselect=( + # probably broken by removal of sassc + sasstests.py::SasscTestCase::test_sassc_stdout + # skip the pip tests because they need an internet connection + # not relevant for gentoo anyway + sasstests.py::DistutilsTestCase::test_build_sass + sasstests.py::DistutilsTestCase::test_output_style + ) + + epytest sasstests.py ${deselect[@]/#/--deselect } +} diff --git a/dev-python/libsass/metadata.xml b/dev-python/libsass/metadata.xml index b8e0062f34a2..0c2334d8a4a5 100644 --- a/dev-python/libsass/metadata.xml +++ b/dev-python/libsass/metadata.xml @@ -5,6 +5,10 @@ <email>andrewammerlaan@gentoo.org</email> <name>Andrew Ammerlaan</name> </maintainer> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> <upstream> <remote-id type="pypi">libsass</remote-id> </upstream> |