diff -ur django.orig/django-1.3.1.ebuild django/django-1.3.1.ebuild --- django.orig/django-1.3.1.ebuild 2011-12-12 16:19:41.277581689 +0800 +++ django/django-1.3.1.ebuild 2011-12-12 16:37:58.765620944 +0800 @@ -2,12 +2,12 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-python/django/django-1.3.1.ebuild,v 1.3 2011/09/16 12:03:23 chainsaw Exp $ -EAPI="3" +EAPI="4" PYTHON_DEPEND="2" SUPPORT_PYTHON_ABIS="1" RESTRICT_PYTHON_ABIS="3.*" -inherit bash-completion distutils versionator webapp +inherit bash-completion-r1 distutils versionator webapp MY_P="Django-${PV}" @@ -30,7 +30,7 @@ S="${WORKDIR}/${MY_P}" -DOCS="docs/* AUTHORS" +DOCS=( docs/README AUTHORS ) WEBAPP_MANUAL_SLOT="yes" pkg_setup() { @@ -61,7 +61,7 @@ src_install() { distutils_src_install - dobashcompletion extras/django_bash_completion + dobashcomp extras/django_bash_completion if use doc; then rm -fr docs/_build/html/_sources @@ -72,6 +72,7 @@ doins -r django/contrib/admin/media/* webapp_src_install + python_convert_shebangs -r 2 ${ED} } pkg_preinst() { @@ -81,6 +82,7 @@ pkg_postinst() { bash-completion_pkg_postinst distutils_pkg_postinst + python_convert_shebangs ${python_get_version} /usr/bin/django-admin.py || die einfo "Now, Django has the best of both worlds with Gentoo," einfo "ease of deployment for production and development."