2015-07-15 17:05:23 +02:00
|
|
|
# Template file for 'python-Django'
|
|
|
|
pkgname=python-Django
|
2016-01-03 01:16:53 +01:00
|
|
|
version=1.8.8
|
2015-07-15 17:05:23 +02:00
|
|
|
revision=1
|
|
|
|
noarch=yes
|
|
|
|
wrksrc="Django-${version}"
|
|
|
|
build_style=python-module
|
|
|
|
python_versions="2.7 3.4"
|
|
|
|
pycompile_module="django"
|
|
|
|
hostmakedepends="python-setuptools python3.4-setuptools"
|
|
|
|
depends="python"
|
2015-11-06 07:52:10 +01:00
|
|
|
short_desc="High-level Python2 Web framework"
|
2015-07-15 17:05:23 +02:00
|
|
|
maintainer="Eivind Uggedal <eivind@uggedal.com>"
|
2015-11-06 07:52:10 +01:00
|
|
|
license="3-clause-BSD"
|
2015-07-15 17:05:23 +02:00
|
|
|
homepage="http://www.djangoproject.com/"
|
|
|
|
distfiles="${PYPI_SITE}/D/Django/Django-${version}.tar.gz"
|
2016-01-03 01:16:53 +01:00
|
|
|
checksum=8255242fa0d9e0bf331259a6bdb81364933acbe8863291661558ffdb2fc9ed70
|
2015-07-15 17:05:23 +02:00
|
|
|
|
|
|
|
post_install() {
|
|
|
|
vlicense LICENSE
|
|
|
|
rm -f ${DESTDIR}/usr/bin/django-admin*
|
|
|
|
vbin build-2.7/scripts-2.7/django-admin.py
|
|
|
|
ln -s django-admin.py ${DESTDIR}/usr/bin/django-admin
|
|
|
|
vbin build-3.4/scripts-3.4/django-admin.py django-admin3.py
|
|
|
|
ln -s django-admin3.py ${DESTDIR}/usr/bin/django-admin3
|
|
|
|
}
|
|
|
|
|
|
|
|
python3.4-Django_package() {
|
2015-08-31 13:31:24 +02:00
|
|
|
noarch=yes
|
|
|
|
depends="python3.4"
|
|
|
|
pycompile_version="3.4"
|
|
|
|
pycompile_module="django"
|
|
|
|
short_desc="${short_desc/Python2/Python3.4}"
|
|
|
|
pkg_install() {
|
2015-11-06 07:52:10 +01:00
|
|
|
vmove usr/bin/django-admin3*
|
2015-08-31 13:31:24 +02:00
|
|
|
vmove usr/lib/python3.4
|
2015-07-15 17:05:23 +02:00
|
|
|
vlicense LICENSE
|
2015-08-31 13:31:24 +02:00
|
|
|
}
|
2015-07-15 17:05:23 +02:00
|
|
|
}
|