mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-07-30 22:48:07 -07:00
dev-python/django-compressor: Clean old up
This commit is contained in:
@@ -1,2 +1 @@
|
||||
DIST django-compressor-1.4.tar.gz 103414 BLAKE2B b9ba72dff76a621e47533c220175c01bd31612d53a75ced3c900201337697af254e86fb69394a12eab400f022e1a70d524467619e0ecfeace50c6552418a2f91 SHA512 620618675585248a38040d91e3c33a534758cc87c4b2cab16ac3d55f82e37be6d4d7058226f6366e14305465a29235e89acba937019cd28fe4285614797179e2
|
||||
DIST django-compressor-1.5.tar.gz 105855 BLAKE2B 18cd7d664a683c44674d89f714e36dc4c7c8f9412567c12b31bc563a16340a11ffc3c4e686fa8d360a40553989ed41aa208e71aa31d0bb2c5fe31f5d7c3261e7 SHA512 d6c7a04263895a4195754a49bd4831053186c99d6fdd07977c26059eb931c982bd3b60848311e8469ad0e0298204a5fc3f0e63697a5af5608abf0b76e521c797
|
||||
|
||||
@@ -1,61 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_4 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
MY_PN="${PN/-/_}"
|
||||
|
||||
DESCRIPTION="Compresses linked and inline javascript or CSS into a single cached file"
|
||||
HOMEPAGE="https://github.com/django-compressor/django-compressor"
|
||||
SRC_URI="https://github.com/jezdez/django_compressor/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="amd64 x86"
|
||||
IUSE="doc test"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/django[${PYTHON_USEDEP}]
|
||||
>=dev-python/django-appconf-0.4[${PYTHON_USEDEP}]"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
dev-python/versiontools[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
dev-python/django[${PYTHON_USEDEP}]
|
||||
dev-python/django-discover-runner[${PYTHON_USEDEP}]
|
||||
dev-python/unittest2[${PYTHON_USEDEP}]
|
||||
dev-python/beautifulsoup:4[${PYTHON_USEDEP}]
|
||||
dev-python/html5lib[${PYTHON_USEDEP}]
|
||||
dev-python/mock[${PYTHON_USEDEP}]
|
||||
dev-python/jinja[${PYTHON_USEDEP}]
|
||||
dev-python/lxml[${PYTHON_USEDEP}]
|
||||
dev-python/Coffin[${PYTHON_USEDEP}]
|
||||
dev-python/jingo[${PYTHON_USEDEP}]
|
||||
)"
|
||||
DISTUTILS_IN_SOURCE_BUILD=1
|
||||
|
||||
python_compile_all() {
|
||||
use doc && emake -C docs html
|
||||
}
|
||||
|
||||
python_test() {
|
||||
# https://github.com/django-compressor/django-compressor/issues/531 532
|
||||
pushd "${BUILD_DIR}/lib" > /dev/null || die
|
||||
if python_is_python3; then
|
||||
sed -e s':test_cachekey:_&:' -e s':test_css:_&:g' \
|
||||
-i compressor/tests/test_base.py || die
|
||||
fi
|
||||
set -- django-admin.py test compressor --settings=compressor.test_settings
|
||||
echo "$@"
|
||||
"$@" || die "Tests failed with ${EPYTHON}"
|
||||
popd > /dev/null || die
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && local HTML_DOCS=( docs/_build/html/. )
|
||||
distutils-r1_python_install_all
|
||||
}
|
||||
Reference in New Issue
Block a user