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.

71 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. MENU:=1
  31. endef
  32. define Package/python-django
  33. $(call Package/django/Default)
  34. DEPENDS:= \
  35. +PACKAGE_python-django:python \
  36. +PACKAGE_python-django:python-pytz
  37. VARIANT:=python
  38. endef
  39. define Package/python-django/description
  40. The web framework for perfectionists with deadlines.
  41. endef
  42. define Package/python3-django
  43. $(call Package/django/Default)
  44. DEPENDS:= \
  45. +PACKAGE_python3-django:python3 \
  46. +PACKAGE_python3-django:python3-pytz
  47. VARIANT:=python3
  48. endef
  49. define Package/python3-django/description
  50. $(call Package/python-django/description)
  51. .
  52. (Variant for Python3)
  53. endef
  54. $(eval $(call PyPackage,python-django))
  55. $(eval $(call BuildPackage,python-django))
  56. $(eval $(call Py3Package,python3-django))
  57. $(eval $(call BuildPackage,python3-django))