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.9 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:=5
  9. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  10. PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/d/$(PKG_NAME)/
  11. PKG_HASH:=7703793f1675aa6e871f9fed147e8563816d7a5b9affdc5e3459899596217f7c
  12. PKG_MAINTAINER:=Eneas U de Queiroz <cotequeiroz@gmail.com>
  13. PKG_LICENSE:=BSD-3-Clause
  14. PKG_LICENSE_FILES:=LICENSE
  15. PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-$(PKG_NAME)-$(PKG_VERSION)
  16. include $(INCLUDE_DIR)/package.mk
  17. include ../python-package.mk
  18. include ../python3-package.mk
  19. PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
  20. define Package/$(PKG_NAME)/Default
  21. SUBMENU:=Python
  22. SECTION:=lang
  23. CATEGORY:=Languages
  24. TITLE:=High-level abstractions for Django forms
  25. URL:=https://$(PKG_NAME).readthedocs.io
  26. endef
  27. define Package/python-$(PKG_NAME)
  28. $(call Package/$(PKG_NAME)/Default)
  29. DEPENDS:= \
  30. +PACKAGE_python-$(PKG_NAME):python \
  31. python-django
  32. VARIANT:=python
  33. MDEPENDS:=python-django
  34. endef
  35. define Package/python-$(PKG_NAME)/description
  36. Django "formtools" is a set of high-level abstractions for Django forms.
  37. Currently for form previews and multi-step forms.
  38. endef
  39. define Package/python3-$(PKG_NAME)
  40. $(call Package/$(PKG_NAME)/Default)
  41. DEPENDS:= \
  42. +PACKAGE_python3-$(PKG_NAME):python3 \
  43. python3-django
  44. VARIANT:=python3
  45. MDEPENDS:=python3-django
  46. endef
  47. define Package/python3-$(PKG_NAME)/description
  48. $(call define Package/python-$(PKG_NAME)/description)
  49. .
  50. (Variant for Python3)
  51. endef
  52. $(eval $(call PyPackage,python-$(PKG_NAME)))
  53. $(eval $(call BuildPackage,python-$(PKG_NAME)))
  54. $(eval $(call BuildPackage,python-$(PKG_NAME)-src))
  55. $(eval $(call Py3Package,python3-$(PKG_NAME)))
  56. $(eval $(call BuildPackage,python3-$(PKG_NAME)))
  57. $(eval $(call BuildPackage,python3-$(PKG_NAME)-src))