4b6202f721
Replace LIBFOO_CPE_ID_NAME by LIBFOO_CPE_ID_PRODUCT to better "comply" with the official "Well-Formed CPE Name Data Model" parameters: - https://csrc.nist.gov/publications/detail/nistir/7695/final - https://nvlpubs.nist.gov/nistpubs/Legacy/IR/nistir7695.pdf Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
33 lines
1.3 KiB
Makefile
33 lines
1.3 KiB
Makefile
################################################################################
|
|
#
|
|
# python-setuptools
|
|
#
|
|
################################################################################
|
|
|
|
# Please keep in sync with
|
|
# package/python3-setuptools/python3-setuptools.mk
|
|
PYTHON_SETUPTOOLS_VERSION = 44.0.0
|
|
PYTHON_SETUPTOOLS_SOURCE = setuptools-$(PYTHON_SETUPTOOLS_VERSION).zip
|
|
PYTHON_SETUPTOOLS_SITE = https://files.pythonhosted.org/packages/b0/f3/44da7482ac6da3f36f68e253cb04de37365b3dba9036a3c70773b778b485
|
|
PYTHON_SETUPTOOLS_LICENSE = MIT
|
|
PYTHON_SETUPTOOLS_LICENSE_FILES = LICENSE
|
|
PYTHON_SETUPTOOLS_CPE_ID_VENDOR = python
|
|
PYTHON_SETUPTOOLS_CPE_ID_PRODUCT = setuptools
|
|
PYTHON_SETUPTOOLS_SETUP_TYPE = setuptools
|
|
HOST_PYTHON_SETUPTOOLS_NEEDS_HOST_PYTHON = python2
|
|
|
|
define PYTHON_SETUPTOOLS_EXTRACT_CMDS
|
|
$(UNZIP) -d $(@D) $(PYTHON_SETUPTOOLS_DL_DIR)/$(PYTHON_SETUPTOOLS_SOURCE)
|
|
mv $(@D)/setuptools-$(PYTHON_SETUPTOOLS_VERSION)/* $(@D)
|
|
$(RM) -r $(@D)/setuptools-$(PYTHON_SETUPTOOLS_VERSION)
|
|
endef
|
|
|
|
define HOST_PYTHON_SETUPTOOLS_EXTRACT_CMDS
|
|
$(UNZIP) -d $(@D) $(HOST_PYTHON_SETUPTOOLS_DL_DIR)/$(PYTHON_SETUPTOOLS_SOURCE)
|
|
mv $(@D)/setuptools-$(PYTHON_SETUPTOOLS_VERSION)/* $(@D)
|
|
$(RM) -r $(@D)/setuptools-$(PYTHON_SETUPTOOLS_VERSION)
|
|
endef
|
|
|
|
$(eval $(python-package))
|
|
$(eval $(host-python-package))
|