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.

69 lines
1.7 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.24
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=Django-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/D/Django
  13. PKG_HASH:=215c27453f775b6b1add83a185f76c2e2ab711d17786a6704bd62eabd93f89e3
  14. PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-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. include $(INCLUDE_DIR)/package.mk
  20. include ../python-package.mk
  21. include ../python3-package.mk
  22. PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
  23. define Package/django/Default
  24. SUBMENU:=Python
  25. SECTION:=lang
  26. CATEGORY:=Languages
  27. TITLE:=The web framework for perfectionists with deadlines.
  28. URL:=https://www.djangoproject.com/
  29. MENU:=1
  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))