packages/lang/python/python-colorama/Makefile
Eneas U de Queiroz 65009e8127
treewide: Add PACKAGE_* conds to python packages
If a package builds python & python3 variants, then the respective
PACKAGE-python* conditional DEPENDS were added, since circular
dependencies should all be resolved now.

Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
2019-05-20 16:18:06 -03:00

58 lines
1.6 KiB
Makefile

include $(TOPDIR)/rules.mk
PKG_NAME:=colorama
PKG_VERSION:=0.4.1
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/c/colorama
PKG_HASH:=05eed71e2e327246ad6b38c540c4a3117230b19679b875190486ddd2d721422d
PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-colorama-$(PKG_VERSION)
PKG_MAINTAINER:=Daniel Danzberger <daniel@dd-wrt.com>
PKG_LICENSE:=MIT
include $(INCLUDE_DIR)/package.mk
include ../python-package.mk
include ../python3-package.mk
PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
define Package/python-colorama/Default
SUBMENU:=Python
SECTION:=lang
CATEGORY:=Languages
TITLE:=colorama
URL:=https://github.com/tartley/colorama
endef
define Package/python-colorama
$(call Package/python-colorama/Default)
DEPENDS:=+PACKAGE_python-colorama:python
VARIANT:=python
endef
define Package/python3-colorama
$(call Package/python-colorama/Default)
DEPENDS:=+PACKAGE_python3-colorama:python3
VARIANT:=python3
endef
define Package/python-colorama/description
Makes ANSI escape character sequences
(for producing colored terminal text and cursor positioning) work under MS Windows.
endef
define Package/python3-colorama/description
$(call Package/python-colorama/description)
.
(Variant for Python3)
endef
$(eval $(call PyPackage,python-colorama))
$(eval $(call BuildPackage,python-colorama))
$(eval $(call BuildPackage,python-colorama-src))
$(eval $(call Py3Package,python3-colorama))
$(eval $(call BuildPackage,python3-colorama))
$(eval $(call BuildPackage,python3-colorama-src))