kumquat-buildroot/package/python-dnspython/python-dnspython.mk
Bernd Kuhls 90bb7b6765 package/python-dnspython: enable host build
Needed for Samba 4.14.x:
2420b7c6d2 (bc16f0673dfbb473658dfd16961cdbf12f02ea5a_8_15)

Fixes:
http://autobuild.buildroot.net/results/7dc/7dc7e304cb4e9afb157326dd5e4ae38711e91cad/

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2021-04-26 19:54:11 +02:00

28 lines
1.0 KiB
Makefile

################################################################################
#
# python-dnspython
#
################################################################################
PYTHON_DNSPYTHON_VERSION = 1.16.0
PYTHON_DNSPYTHON_SOURCE = dnspython-$(PYTHON_DNSPYTHON_VERSION).zip
PYTHON_DNSPYTHON_SITE = https://files.pythonhosted.org/packages/ec/c5/14bcd63cb6d06092a004793399ec395405edf97c2301dfdc146dfbd5beed
PYTHON_DNSPYTHON_LICENSE = ISC
PYTHON_DNSPYTHON_LICENSE_FILES = LICENSE
PYTHON_DNSPYTHON_SETUP_TYPE = setuptools
define PYTHON_DNSPYTHON_EXTRACT_CMDS
$(UNZIP) -d $(@D) $(PYTHON_DNSPYTHON_DL_DIR)/$(PYTHON_DNSPYTHON_SOURCE)
mv $(@D)/dnspython-$(PYTHON_DNSPYTHON_VERSION)/* $(@D)
$(RM) -r $(@D)/dnspython-$(PYTHON_DNSPYTHON_VERSION)
endef
define HOST_PYTHON_DNSPYTHON_EXTRACT_CMDS
$(UNZIP) -d $(@D) $(HOST_PYTHON_DNSPYTHON_DL_DIR)/$(HOST_PYTHON_DNSPYTHON_SOURCE)
mv $(@D)/dnspython-$(HOST_PYTHON_DNSPYTHON_VERSION)/* $(@D)
$(RM) -r $(@D)/dnspython-$(HOST_PYTHON_DNSPYTHON_VERSION)
endef
$(eval $(python-package))
$(eval $(host-python-package))