summaryrefslogtreecommitdiff
path: root/dev-python/django-compressor
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/django-compressor
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/django-compressor')
-rw-r--r--dev-python/django-compressor/Manifest7
-rw-r--r--dev-python/django-compressor/django-compressor-1.4.ebuild61
-rw-r--r--dev-python/django-compressor/django-compressor-1.5.ebuild61
-rw-r--r--dev-python/django-compressor/metadata.xml11
4 files changed, 140 insertions, 0 deletions
diff --git a/dev-python/django-compressor/Manifest b/dev-python/django-compressor/Manifest
new file mode 100644
index 000000000000..f34787b8c555
--- /dev/null
+++ b/dev-python/django-compressor/Manifest
@@ -0,0 +1,7 @@
+DIST django-compressor-1.4.tar.gz 103414 SHA256 47790524c754c34c37d960ab34ec7a3ef85002e56978fea69a4102f2856a4561 SHA512 620618675585248a38040d91e3c33a534758cc87c4b2cab16ac3d55f82e37be6d4d7058226f6366e14305465a29235e89acba937019cd28fe4285614797179e2 WHIRLPOOL 597d5f7530dc4ad67bc7cff294d4a46cad53328670ce530bbd76e6596c4f35e61edc04e1bac71e9a3b61f4a8efd73fdae38ccfdded65be800e45a30374b36fac
+DIST django-compressor-1.5.tar.gz 105855 SHA256 2f094de9c061f38b741db9fc88d359abc424f077b324fe33f5e93ecf91f8f2eb SHA512 d6c7a04263895a4195754a49bd4831053186c99d6fdd07977c26059eb931c982bd3b60848311e8469ad0e0298204a5fc3f0e63697a5af5608abf0b76e521c797 WHIRLPOOL 6626ea41b6465516126fe1f9eb66871df11ce5de80c35dd3024ba5fcd69cb6aa745c684201991bedd8ffc8356e2fc19495ee81a5165122ca70f5419b0749e269
+EBUILD django-compressor-1.4.ebuild 1738 SHA256 d30f7a8cae4521a1735ef3117117450e7ad31ca0eca5f9f32a3bcbe88f0bea26 SHA512 508d4b808189e7b4bd6b5e77b8d27ad7e989c54d2be3f6561ffed7c07f43457c4b3f26155abb35debc7262203055f14eb269b7d9031b21f0e29532b99f4053c4 WHIRLPOOL 3b2080e6ff3b08c906bd1a44b5d87dd0d7455f9a675c61cc9699f031d9c94a44c8f1ac22f5b5da7db2fde9812b5833c31a8981bb9474b49ffdad50d38c008c39
+EBUILD django-compressor-1.5.ebuild 1742 SHA256 94c708220cbbf8a625a101dd805ede2785a3116d6c677ba113a869da0102191f SHA512 708665b08f576777dd3d666aa8bda2e07caadbb5c8d44f783aebe6c135d620ac4696a14630a41636fd3ef0570ec1f72fe40d947dcbc50ca8cd56aa80aaf7e867 WHIRLPOOL 35162b5372b4ec1d82703edf43838e3e1f113c18ec2842f33bce6c62aaec633a65220284268ef890df4c8b4c35618f9160854930b4b7f8728d90d605248f2395
+MISC ChangeLog 2951 SHA256 b733b9bb151f03c91c61e0cd952552d5b834c1cea329eb223dc62092a26b9e7a SHA512 ce543aae7340223fac9b4f1c467d64543d5b4da5abf1257bcff7c6503c6307d407cb3de0c20d8376900f797b5518f6e31c1804d62fd5b1fcb2f0e5536c601e76 WHIRLPOOL 4a75e33184a3120afa0660fff40bc1250abfb0ad7a23a091dc9593381baf9e95cc6bb02e16e1e3fa3b19ad196834f60c85d0c5aba01e7dee2ad4264c997367f1
+MISC ChangeLog-2015 2211 SHA256 b7ac2291c67a53dbc8364cc95090e2efb121dd61618ee18113b2a6a26aed23b3 SHA512 79a91a1aff047e7d6b0a003ea6d372d81bc04ac3a44e203b6789a37bcf69accd41eeaf2e915287b91bf14e1e317e72117d125aaa7da284d5e8e78191a0bbea5d WHIRLPOOL 5a1e87d1e794a0d5ad9ebed3d274eb44f52622a7e48cfd6a17dff31cce23442ed991c8027c08b335a671ea4ae1b8ac4091b6d1c4c4ea8e593642b04a3e2ae3d2
+MISC metadata.xml 339 SHA256 21263a75b051ed8827726d5af69374935716d8ec9673f4d1a69ab17f94237da7 SHA512 41051f6aacf5ae785a36c1606b2df505fd6120b9d2d9a9864ec15a5c8e72a5350b81510b5aeac28267f62310e8c192b3338001ada21c4b8fbe183f80f1043bb2 WHIRLPOOL 50fb4c22ba9d7e95d99493b3a6f66e7e677765e056c6bb0235549e6efda79cd6ee8366dffdafc57eb4a863f202bf73ffa72e80dcec90312144ae19b95ae655d5
diff --git a/dev-python/django-compressor/django-compressor-1.4.ebuild b/dev-python/django-compressor/django-compressor-1.4.ebuild
new file mode 100644
index 000000000000..ddef2f2c9f7d
--- /dev/null
+++ b/dev-python/django-compressor/django-compressor-1.4.ebuild
@@ -0,0 +1,61 @@
+# 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
+}
diff --git a/dev-python/django-compressor/django-compressor-1.5.ebuild b/dev-python/django-compressor/django-compressor-1.5.ebuild
new file mode 100644
index 000000000000..2ddab7862b49
--- /dev/null
+++ b/dev-python/django-compressor/django-compressor-1.5.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 python3_{4,5} )
+
+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
+}
diff --git a/dev-python/django-compressor/metadata.xml b/dev-python/django-compressor/metadata.xml
new file mode 100644
index 000000000000..6e566e0fb330
--- /dev/null
+++ b/dev-python/django-compressor/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>python@gentoo.org</email>
+ <name>Python</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">jezdez/django_compressor</remote-id>
+ </upstream>
+</pkgmetadata>