You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

70 lines
1.8 KiB

  1. #
  2. # Copyright (C) 2007-2017 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=django
  9. PKG_VERSION:=1.11.17
  10. PKG_RELEASE=4
  11. PKG_SOURCE:=Django-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/D/Django
  13. PKG_HASH:=a787ee66f4b4cf8ed753661cabcec603989677fa3a107fcb7f15511a44bdb483
  14. PKG_BUILD_DIR=$(BUILD_DIR)/Django-$(PKG_VERSION)
  15. PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
  16. PKG_LICENSE:=BSD-3-Clause
  17. PKG_LICENSE_FILES:=LICENSE LICENSE.python
  18. PKG_CPE_ID:=cpe:/a:djangoproject:django
  19. PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-django-$(PKG_VERSION)
  20. include $(INCLUDE_DIR)/package.mk
  21. include ../python-package.mk
  22. include ../python3-package.mk
  23. PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
  24. define Package/django/Default
  25. SUBMENU:=Python
  26. SECTION:=lang
  27. CATEGORY:=Languages
  28. TITLE:=The web framework for perfectionists with deadlines.
  29. URL:=https://www.djangoproject.com/
  30. endef
  31. define Package/python-django
  32. $(call Package/django/Default)
  33. DEPENDS:= \
  34. +PACKAGE_python-django:python \
  35. +PACKAGE_python-django:python-pytz
  36. VARIANT:=python
  37. endef
  38. define Package/python-django/description
  39. The web framework for perfectionists with deadlines.
  40. endef
  41. define Package/python3-django
  42. $(call Package/django/Default)
  43. DEPENDS:= \
  44. +PACKAGE_python3-django:python3 \
  45. +PACKAGE_python3-django:python3-pytz
  46. VARIANT:=python3
  47. endef
  48. define Package/python3-django/description
  49. $(call Package/python-django/description)
  50. .
  51. (Variant for Python3)
  52. endef
  53. $(eval $(call PyPackage,python-django))
  54. $(eval $(call BuildPackage,python-django))
  55. $(eval $(call Py3Package,python3-django))
  56. $(eval $(call BuildPackage,python3-django))