dev-python/django: Replace python_gen_usedep with python_gen_cond_dep

An upgrade attempt was made in CL:2328829, but it causes autotest
failures.

BUG=chromium:1111336
TEST=CQ passes

Change-Id: Idcad843c4e450e7a0c57e65c6e06a4e386514536
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/overlays/portage-stable/+/2333115
Tested-by: Allen Webb <allenwebb@google.com>
Auto-Submit: Allen Webb <allenwebb@google.com>
Reviewed-by: Chris McDonald <cjmcdonald@chromium.org>
Commit-Queue: Allen Webb <allenwebb@google.com>
diff --git a/dev-python/django/django-1.5.12-r1.ebuild b/dev-python/django/django-1.5.12-r1.ebuild
new file mode 120000
index 0000000..8d3b69f
--- /dev/null
+++ b/dev-python/django/django-1.5.12-r1.ebuild
@@ -0,0 +1 @@
+django-1.5.12.ebuild
\ No newline at end of file
diff --git a/dev-python/django/django-1.5.12.ebuild b/dev-python/django/django-1.5.12.ebuild
index b652f5e..57f5313 100644
--- a/dev-python/django/django-1.5.12.ebuild
+++ b/dev-python/django/django-1.5.12.ebuild
@@ -19,10 +19,9 @@
 KEYWORDS="*"
 IUSE="doc mysql postgres sqlite test"
 
-PY2_USEDEP=$(python_gen_usedep 'python*')
 RDEPEND="dev-python/imaging[${PYTHON_USEDEP}]
-	postgres? ( dev-python/psycopg:2[${PY2_USEDEP}] )
-	mysql? ( >=dev-python/mysql-python-1.2.3[${PY2_USEDEP}] )"
+	postgres? ( $(python_gen_cond_dep 'dev-python/psycopg:2[${PYTHON_USEDEP}]' 'python*') )
+	mysql? ( $(python_gen_cond_dep '>=dev-python/mysql-python-1.2.3[${PYTHON_USEDEP}]' 'python*') )"
 DEPEND="${RDEPEND}
 	doc? ( >=dev-python/sphinx-1.0.7[${PYTHON_USEDEP}] )
 	test? ( $(python_gen_impl_dep sqlite) )"