summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohann Schmitz <ercpe@gentoo.org>2016-08-07 09:00:35 +0200
committerJohann Schmitz <ercpe@gentoo.org>2016-08-07 09:27:02 +0200
commit24a80ed64ea773889a430eaf65f34194712a6141 (patch)
treed387039e0a7cde023906b2f8aea8fdb51b25a7fb
parentsys-kernel/rt-sources: Cleanup per bug #364603 (diff)
downloadgentoo-24a80ed64ea773889a430eaf65f34194712a6141.tar.gz
gentoo-24a80ed64ea773889a430eaf65f34194712a6141.tar.bz2
gentoo-24a80ed64ea773889a430eaf65f34194712a6141.zip
dev-python/django: Version bump to 1.9.9 (CVE-2016-6186) wrt bug #589134
Package-Manager: portage-2.2.28
-rw-r--r--dev-python/django/Manifest1
-rw-r--r--dev-python/django/django-1.9.9.ebuild111
2 files changed, 112 insertions, 0 deletions
diff --git a/dev-python/django/Manifest b/dev-python/django/Manifest
index dafded223b8..a52cee99933 100644
--- a/dev-python/django/Manifest
+++ b/dev-python/django/Manifest
@@ -5,3 +5,4 @@ DIST Django-1.7.11.tar.gz 7586798 SHA256 2039144fce8f1b603d03fa5a5643578df1ad007
DIST Django-1.8.9.tar.gz 7288701 SHA256 fc012d8507201a628e877202bb7800799152285f69aa0d42a7c506a96fbbd2e3 SHA512 3423d11a6f97ca4518a7105fabfc872783d92f2ce4733739bc6dd7d53c97d7450c7343a8e77c2094ce6342b1647445d2ddef5deb2d3b35b5c0ba4679726f0a48 WHIRLPOOL 96cdd8cb557c8ae75d40516e2c88a4a63fb0f070e3614732786a4e7904f22404a1d189ae00b03527be9242c4b61646ce5093cb6535567ba0f23042a1b6e9a320
DIST Django-1.9.2.tar.gz 7419200 SHA256 7a233322eeb35da5fd8315f9e5dd48f2171de43ca2cfb11b138607daa4bf8a2f SHA512 931fe067b366bf3868d1f66536b19f7dce4f3ea9e117e65175369ef2f625b925fedb6923aeb9bae94cb1887711951af30cac1c7992a984cdcbfd54fa0ef775e9 WHIRLPOOL b31053459222fcb46a731ab67879b581a8cba5421097037d263afebfd7a2b26a5026b99ec0d82bcd52ef6a09f272c16bae2445c7b41eeadc7270da4529b3c759
DIST Django-1.9.5.tar.gz 7430219 SHA256 e54667ad305a29f5895f14108127cc79dabebce2e80c7c6cf852a6495de26aa6 SHA512 12ef1e3bc5fb5b9d30e92c2c5b91c68fc9b1bc88bd1428af53c34e1ed7f2899b69061405680a01b260f9aa2a4a316cc8f036bb27bfcbcb1ca785896b7e4e175b WHIRLPOOL ffbbf1d209a01837ceb1dbc78082f57390e1df18a8ca371e849001ffb63352f63b299a999deee922528dc5917f4f3962f810bec22b657f211a46ab13b5498101
+DIST Django-1.9.9.tar.gz 7493187 SHA256 e340fb9d534aeb543280e46c3b85e6e1049029a4e6ba5571375b11c914bfde8c SHA512 5f8e353ad3143a17dac95bf913838b6c265c9540d6d9b8345538ca551a4086c4458e16f550ff7ef2ea447119dfa14a4230c30ec122068698c442a9846cf1794a WHIRLPOOL b538e685183f040ae48c98b0585b3ac644cb8927d4eff0e84adbcff02522acbf6f5bf50d7a26cf7055b1e9777210ae4f31e8398dc6c343ee3b142651fc949693
diff --git a/dev-python/django/django-1.9.9.ebuild b/dev-python/django/django-1.9.9.ebuild
new file mode 100644
index 00000000000..7ce95e9177f
--- /dev/null
+++ b/dev-python/django/django-1.9.9.ebuild
@@ -0,0 +1,111 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 python3_{4,5} pypy )
+PYTHON_REQ_USE='sqlite?,threads(+)'
+WEBAPP_NO_AUTO_INSTALL="yes"
+
+inherit bash-completion-r1 distutils-r1 eutils versionator webapp
+
+MY_PN="Django"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="High-level Python web framework"
+HOMEPAGE="http://www.djangoproject.com/ https://pypi.python.org/pypi/Django"
+SRC_URI="
+ https://www.djangoproject.com/m/releases/$(get_version_component_range 1-2)/${MY_P}.tar.gz
+ mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz
+ "
+
+LICENSE="BSD"
+# admin fonts: Roboto (media-fonts/roboto)
+LICENSE+=" Apache-2.0"
+# admin icons, jquery, xregexp.js
+LICENSE+=" MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+IUSE="doc sqlite test"
+
+RDEPEND=""
+DEPEND="${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ doc? ( >=dev-python/sphinx-1.0.7[${PYTHON_USEDEP}] )
+ test? (
+ $(python_gen_impl_dep sqlite)
+ dev-python/docutils[${PYTHON_USEDEP}]
+ dev-python/numpy[$(python_gen_usedep 'python*')]
+ dev-python/pillow[${PYTHON_USEDEP}]
+ dev-python/pytz[${PYTHON_USEDEP}]
+ dev-python/pyyaml[${PYTHON_USEDEP}]
+ )"
+
+S="${WORKDIR}/${MY_P}"
+
+WEBAPP_MANUAL_SLOT="yes"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.9-bashcomp.patch
+)
+
+pkg_setup() {
+ webapp_pkg_setup
+}
+
+python_prepare_all() {
+ # Prevent d'loading in the doc build
+ sed -e '/^ "sphinx.ext.intersphinx",/d' -i docs/conf.py || die
+
+ distutils-r1_python_prepare_all
+}
+
+python_compile_all() {
+ use doc && emake -C docs html
+}
+
+python_test() {
+ # Tests have non-standard assumptions about PYTHONPATH,
+ # and don't work with ${BUILD_DIR}/lib.
+ PYTHONPATH=. "${PYTHON}" tests/runtests.py --settings=test_sqlite -v2 --parallel 1 \
+ || die "Tests fail with ${EPYTHON}"
+}
+
+python_install_all() {
+ newbashcomp extras/django_bash_completion ${PN}-admin
+ bashcomp_alias ${PN}-admin django-admin.py
+
+ if use doc; then
+ rm -fr docs/_build/html/_sources || die
+ local HTML_DOCS=( docs/_build/html/. )
+ fi
+
+ insinto "${MY_HTDOCSDIR#${EPREFIX}}"
+ doins -r django/contrib/admin/static/admin/.
+ distutils-r1_python_install_all
+}
+
+src_install() {
+ distutils-r1_src_install
+ webapp_src_install
+}
+
+pkg_postinst() {
+ elog "Additional Backend support can be enabled via"
+ optfeature "MySQL backend support in python 2.7 only" dev-python/mysql-python
+ optfeature "MySQL backend support in python 2.7 - 3.4" dev-python/mysqlclient
+ optfeature "PostgreSQL backend support" dev-python/psycopg:2
+ echo ""
+ elog "Other features can be enhanced by"
+ optfeature "GEO Django" sci-libs/gdal[geos]
+ optfeature "Memcached support" dev-python/pylibmc dev-python/python-memcached
+ optfeature "ImageField Support" dev-python/pillow
+ optfeature "Password encryption" dev-python/bcrypt
+ optfeature "High-level abstractions for Django forms" dev-python/django-formtools
+ echo ""
+ elog "A copy of the admin media is available to webapp-config for installation in a"
+ elog "webroot, as well as the traditional location in python's site-packages dir"
+ elog "for easy development."
+ webapp_pkg_postinst
+}