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.

57 lines
1.4 KiB

  1. #
  2. # Copyright (C) Alexandru Ardelean <ardeleanalex@gmail.com>
  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:=2.2.7
  10. PKG_RELEASE:=1
  11. PYPI_NAME:=Django
  12. PKG_HASH:=16040e1288c6c9f68c6da2fe75ebde83c0a158f6f5d54f4c5177b0c1478c5b86
  13. PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
  14. PKG_LICENSE:=BSD-3-Clause
  15. PKG_LICENSE_FILES:=LICENSE LICENSE.python
  16. PKG_CPE_ID:=cpe:/a:djangoproject:django
  17. include ../pypi.mk
  18. include $(INCLUDE_DIR)/package.mk
  19. include ../python3-package.mk
  20. define Package/django/Default
  21. SUBMENU:=Python
  22. SECTION:=lang
  23. CATEGORY:=Languages
  24. TITLE:=The web framework for perfectionists with deadlines.
  25. URL:=https://www.djangoproject.com/
  26. MENU:=1
  27. endef
  28. define Package/python3-django
  29. $(call Package/django/Default)
  30. DEPENDS:= \
  31. +PACKAGE_python3-django:python3 \
  32. +PACKAGE_python3-django:python3-pytz \
  33. +PACKAGE_python3-django:python3-sqlparse
  34. VARIANT:=python3
  35. endef
  36. define Package/python3-django/description
  37. The web framework for perfectionists with deadlines (LTS 2.2 series).
  38. Python3 only.
  39. endef
  40. define Py3Package/python3-django/install
  41. $(INSTALL_DIR) $(1)/usr/bin
  42. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/django-admin.py \
  43. $(1)/usr/bin/django-admin
  44. endef
  45. $(eval $(call Py3Package,python3-django))
  46. $(eval $(call BuildPackage,python3-django))
  47. $(eval $(call BuildPackage,python3-django-src))