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.

91 lines
2.3 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:=django1
  9. PKG_VERSION:=1.11.29
  10. PKG_RELEASE:=2
  11. PYPI_NAME:=Django
  12. PKG_HASH:=4200aefb6678019a0acf0005cd14cfce3a5e6b9b90d06145fcdd2e474ad4329c
  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 ../python-package.mk
  20. include ../python3-package.mk
  21. define Package/django1/Default
  22. SUBMENU:=Python
  23. SECTION:=lang
  24. CATEGORY:=Languages
  25. TITLE:=The web framework for perfectionists with deadlines.
  26. URL:=https://www.djangoproject.com/
  27. endef
  28. define Package/python-django1
  29. $(call Package/django1/Default)
  30. DEPENDS:= \
  31. +PACKAGE_python-django1:python \
  32. +PACKAGE_python-django1:python-pytz \
  33. +PACKAGE_python-django1:python-django1-common
  34. VARIANT:=python
  35. MENU:=1
  36. endef
  37. define Package/python-django1/description
  38. The web framework for perfectionists with deadlines (LTS 1.11 series).
  39. endef
  40. define Package/python3-django1
  41. $(call Package/django1/Default)
  42. DEPENDS:= \
  43. +PACKAGE_python3-django1:python3 \
  44. +PACKAGE_python3-django1:python3-pytz \
  45. +PACKAGE_python3-django1:python-django1-common
  46. VARIANT:=python3
  47. PROVIDES:=django
  48. endef
  49. define Package/python3-django1/description
  50. $(call Package/python-django1/description)
  51. .
  52. (Variant for Python3)
  53. endef
  54. define Package/python-django1-common
  55. $(call Package/django1/Default)
  56. endef
  57. define Package/python-django1-common/description
  58. $(call Package/python-django1/description)
  59. .
  60. This package contains files common to both Python 2.7 and Python 3.
  61. endef
  62. PyPackage/python-django1/install:=:
  63. Py3Package/python3-django1/install:=:
  64. define Package/python-django1-common/install
  65. $(INSTALL_DIR) $(1)/usr/bin
  66. $(INSTALL_BIN) ./files/django-admin $(1)/usr/bin
  67. endef
  68. $(eval $(call PyPackage,python-django1))
  69. $(eval $(call BuildPackage,python-django1))
  70. $(eval $(call BuildPackage,python-django1-src))
  71. $(eval $(call Py3Package,python3-django1))
  72. $(eval $(call BuildPackage,python3-django1))
  73. $(eval $(call BuildPackage,python3-django1-src))
  74. $(eval $(call BuildPackage,python-django1-common))