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.

67 lines
1.7 KiB

  1. #
  2. # This is free software, licensed under the GNU General Public License v2.
  3. # See /LICENSE for more information.
  4. #
  5. include $(TOPDIR)/rules.mk
  6. PKG_NAME:=django-formtools
  7. PKG_VERSION:=2.1
  8. PKG_RELEASE:=6
  9. PYPI_NAME:=$(PKG_NAME)
  10. PKG_HASH:=7703793f1675aa6e871f9fed147e8563816d7a5b9affdc5e3459899596217f7c
  11. PKG_MAINTAINER:=Eneas U de Queiroz <cotequeiroz@gmail.com>
  12. PKG_LICENSE:=BSD-3-Clause
  13. PKG_LICENSE_FILES:=LICENSE
  14. include ../pypi.mk
  15. include $(INCLUDE_DIR)/package.mk
  16. include ../python-package.mk
  17. include ../python3-package.mk
  18. define Package/$(PKG_NAME)/Default
  19. SUBMENU:=Python
  20. SECTION:=lang
  21. CATEGORY:=Languages
  22. TITLE:=High-level abstractions for Django forms
  23. URL:=https://$(PKG_NAME).readthedocs.io
  24. endef
  25. define Package/python-$(PKG_NAME)
  26. $(call Package/$(PKG_NAME)/Default)
  27. DEPENDS:= \
  28. +PACKAGE_python-$(PKG_NAME):python \
  29. python-django1
  30. VARIANT:=python
  31. MDEPENDS:=python-django1
  32. endef
  33. define Package/python-$(PKG_NAME)/description
  34. Django "formtools" is a set of high-level abstractions for Django forms.
  35. Currently for form previews and multi-step forms.
  36. endef
  37. define Package/python3-$(PKG_NAME)
  38. $(call Package/$(PKG_NAME)/Default)
  39. DEPENDS:= \
  40. +PACKAGE_python3-$(PKG_NAME):python3 \
  41. python3-django
  42. VARIANT:=python3
  43. MDEPENDS:=python3-django
  44. endef
  45. define Package/python3-$(PKG_NAME)/description
  46. $(call define Package/python-$(PKG_NAME)/description)
  47. .
  48. (Variant for Python3)
  49. endef
  50. $(eval $(call PyPackage,python-$(PKG_NAME)))
  51. $(eval $(call BuildPackage,python-$(PKG_NAME)))
  52. $(eval $(call BuildPackage,python-$(PKG_NAME)-src))
  53. $(eval $(call Py3Package,python3-$(PKG_NAME)))
  54. $(eval $(call BuildPackage,python3-$(PKG_NAME)))
  55. $(eval $(call BuildPackage,python3-$(PKG_NAME)-src))