From 6c30cc2d5bd48ddbdbe8d75544899cd5dbfcaba4 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 14 Jul 2018 20:18:26 +0100 Subject: gentoo resync : 14.07.2018 --- dev-python/slimit/Manifest | 2 +- dev-python/slimit/slimit-0.8.1-r1.ebuild | 41 ++++++++++++++++++++++++++++++++ dev-python/slimit/slimit-0.8.1.ebuild | 30 ----------------------- 3 files changed, 42 insertions(+), 31 deletions(-) create mode 100644 dev-python/slimit/slimit-0.8.1-r1.ebuild delete mode 100644 dev-python/slimit/slimit-0.8.1.ebuild (limited to 'dev-python/slimit') diff --git a/dev-python/slimit/Manifest b/dev-python/slimit/Manifest index e887933c98e4..fb09103c1289 100644 --- a/dev-python/slimit/Manifest +++ b/dev-python/slimit/Manifest @@ -1,4 +1,4 @@ AUX slimit-0.8.1-fix-python3.patch 18813 BLAKE2B d4cdfcce63635ad35ebd7c1c4a42ee9b1d4fba2dea4aac3a97274c98e012b615dbd121413243e1279c00ad731527bf311aa5fe4dc25fa174b5142abb4f990c32 SHA512 fad15e30fea0000f797db6e113ca83d847e412c5906e42d15bf1d8afab857d617403f92b733ebad761cd6182e16e5a8f21081829d2410f9842bd8fa8f093b8e8 DIST slimit-0.8.1.tar.gz 90096 BLAKE2B 9bf7a00fa7aa48a47950b2db66868c03e3923ed7b878ac4d93bd92becc1909cb79a15365db8185f6d8872028e0d01343394e4c768149155bc6aaeb4acf69954f SHA512 ce33dd15c755b8327a73121322b525738b5f8d83c08b0b6329fa6e090575c68883b4bfa29df04544e5f566f3a81a60e480b5e760e2b0e67644a7db5e25604cc0 -EBUILD slimit-0.8.1.ebuild 787 BLAKE2B c8721442848698514acf5df8346b5cb734e0bd966795a249b59b6d8aef9084a1797ebdbf1d495101838e3cafc661f501d76eebe4c668494e68713e915455104f SHA512 3d55c117fd25b4392a998691409c41b0a2eeaab7b5e32e2f0478e290994de2af03c32fe5d03399da6100b0606b0cb236460ff57d273dabb0c68bc50643305dbf +EBUILD slimit-0.8.1-r1.ebuild 1110 BLAKE2B 4a40a8961c350906e8bb1f91634ae7b8c4ffd53d04d238871e737906ef3c85bab3406270a8f68773644f468a3e88b14a66976e27b1454c4ed8a905ff8da57ac1 SHA512 f567b3dd00b106c8684462fd6faff118e9fa8a5f56bd2a2d568b6c7e4bbe897083edfbbaa6f7036bcb371e435db81809feedfb863399419423695a0177f208c9 MISC metadata.xml 381 BLAKE2B e72dd60346098d4cb6e0886a32c5bea0139c33eb086282ad337b3125154f4b7badec99e22b539430c38ab224a50e0da28863c85eb91f5f03243328b327f75999 SHA512 54ac346d7d9d2f0d267ad22b777d8e504fdd9f2b5e9aeb1d7465d0047c820208e323e24a57cdc0f5361c3ef35feece064b67d3d42c6934562362cda319110986 diff --git a/dev-python/slimit/slimit-0.8.1-r1.ebuild b/dev-python/slimit/slimit-0.8.1-r1.ebuild new file mode 100644 index 000000000000..b4561d3f8de2 --- /dev/null +++ b/dev-python/slimit/slimit-0.8.1-r1.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 pypy{,3} python3_{4,5,6} ) +inherit distutils-r1 + +DESCRIPTION="A JavaScript minifier written in Python" +HOMEPAGE="https://slimit.readthedocs.io/en/latest/" +SRC_URI="https://github.com/rspivak/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +RDEPEND="dev-python/ply:=[${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND} + test? ( + dev-python/pytest[${PYTHON_USEDEP}] + dev-python/pytest-runner[${PYTHON_USEDEP}] + )" + +PATCHES=( "${FILESDIR}/${P}-fix-python3.patch" ) + +python_compile() { + distutils-r1_python_compile + + rm "${BUILD_DIR}"/lib/slimit/*tab.py || die + + # Regenerate yacctab.py and lextab.py files to avoid warnings whenever + # the module is imported. See https://github.com/rspivak/slimit/issues/97 + # for details + "${EPYTHON}" -B -c 'import slimit;slimit.minify("")' || die +} + +python_test() { + esetup.py pytest --addopts "${BUILD_DIR}" || die "Testing failed with ${EPYTHON}" +} diff --git a/dev-python/slimit/slimit-0.8.1.ebuild b/dev-python/slimit/slimit-0.8.1.ebuild deleted file mode 100644 index 6eb5f29a6146..000000000000 --- a/dev-python/slimit/slimit-0.8.1.ebuild +++ /dev/null @@ -1,30 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -PYTHON_COMPAT=( python2_7 pypy{,3} python3_{4,5,6} ) -inherit distutils-r1 - -DESCRIPTION="A JavaScript minifier written in Python" -HOMEPAGE="https://slimit.readthedocs.io/en/latest/" -SRC_URI="https://github.com/rspivak/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="test" - -RDEPEND="dev-python/ply[${PYTHON_USEDEP}] - dev-python/setuptools[${PYTHON_USEDEP}]" -DEPEND="${RDEPEND} - test? ( - dev-python/pytest[${PYTHON_USEDEP}] - dev-python/pytest-runner[${PYTHON_USEDEP}] - )" - -PATCHES=( "${FILESDIR}/${P}-fix-python3.patch" ) - -python_test() { - esetup.py pytest --addopts "${BUILD_DIR}" || die "Testing failed with ${EPYTHON}" -} -- cgit v1.2.3