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.

58 lines
1.6 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=colorama
  3. PKG_VERSION:=0.4.1
  4. PKG_RELEASE:=1
  5. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  6. PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/c/colorama
  7. PKG_HASH:=05eed71e2e327246ad6b38c540c4a3117230b19679b875190486ddd2d721422d
  8. PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-colorama-$(PKG_VERSION)
  9. PKG_MAINTAINER:=Daniel Danzberger <daniel@dd-wrt.com>
  10. PKG_LICENSE:=MIT
  11. include $(INCLUDE_DIR)/package.mk
  12. include ../python-package.mk
  13. include ../python3-package.mk
  14. PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
  15. define Package/python-colorama/Default
  16. SUBMENU:=Python
  17. SECTION:=lang
  18. CATEGORY:=Languages
  19. TITLE:=colorama
  20. URL:=https://github.com/tartley/colorama
  21. endef
  22. define Package/python-colorama
  23. $(call Package/python-colorama/Default)
  24. DEPENDS:=+PACKAGE_python-colorama:python
  25. VARIANT:=python
  26. endef
  27. define Package/python3-colorama
  28. $(call Package/python-colorama/Default)
  29. DEPENDS:=+PACKAGE_python3-colorama:python3
  30. VARIANT:=python3
  31. endef
  32. define Package/python-colorama/description
  33. Makes ANSI escape character sequences
  34. (for producing colored terminal text and cursor positioning) work under MS Windows.
  35. endef
  36. define Package/python3-colorama/description
  37. $(call Package/python-colorama/description)
  38. .
  39. (Variant for Python3)
  40. endef
  41. $(eval $(call PyPackage,python-colorama))
  42. $(eval $(call BuildPackage,python-colorama))
  43. $(eval $(call BuildPackage,python-colorama-src))
  44. $(eval $(call Py3Package,python3-colorama))
  45. $(eval $(call BuildPackage,python3-colorama))
  46. $(eval $(call BuildPackage,python3-colorama-src))