python-Django: rebuild for Python 3.5

Switch to python3-* pkgs.
Convert python3.4-* pkg into dummy pkg.
This commit is contained in:
Alessio Sergi 2016-10-16 22:39:25 +02:00
parent a38320572e
commit e9437d5665
2 changed files with 17 additions and 11 deletions

View File

@ -1,13 +1,12 @@
# Template file for 'python-Django'
pkgname=python-Django
version=1.10.2
revision=1
revision=2
noarch=yes
wrksrc="Django-${version}"
build_style=python-module
python_versions="2.7 3.4"
pycompile_module="django"
hostmakedepends="python-setuptools python3.4-setuptools"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-setuptools"
short_desc="High-level Python2 Web framework"
maintainer="Eivind Uggedal <eivind@uggedal.com>"
@ -15,23 +14,29 @@ license="3-clause-BSD"
homepage="http://www.djangoproject.com/"
distfiles="${PYPI_SITE}/D/Django/Django-${version}.tar.gz"
checksum=e127f12a0bfb34843b6e8c82f91e26fff6445a7ca91d222c0794174cf97cbce1
alternatives="django:django-admin:/usr/bin/django-admin2.7"
alternatives="django:django-admin:/usr/bin/django-admin2"
post_install() {
vlicense LICENSE
rm -f ${DESTDIR}/usr/bin/django-admin.py*
}
python3.4-Django_package() {
python3-Django_package() {
noarch=yes
pycompile_version="3.4"
pycompile_module="django"
depends="python3.4-setuptools"
short_desc="${short_desc/Python2/Python3.4}"
alternatives="django:django-admin:/usr/bin/django-admin3.4"
replaces="python3.4-Django>=0"
depends="python3-setuptools"
short_desc="${short_desc/Python2/Python3}"
alternatives="django:django-admin:/usr/bin/django-admin3"
pkg_install() {
vmove usr/bin/*3.4
vmove usr/lib/python3.4
vmove usr/bin/*3
vmove usr/lib/python3*
vlicense LICENSE
}
}
python3.4-Django_package() {
noarch=yes
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-Django>=${version}_${revision}"
}

1
srcpkgs/python3-Django Symbolic link
View File

@ -0,0 +1 @@
python-Django