514291f39e
Instead of DL_DIR, the package should now use $(PKG)_DL_DIR to ease the transition into a new directory structure for DL_DIR. This commit has been generated with the following scripts: for i in $(find . -iname "*.mk"); do if ! grep -q "\$(DL_DIR)" ${i}; then continue fi pkg_name="$(basename $(dirname ${i}))" [ "${pkg_name}" = "package" ] && continue raw_pkg_name=$(echo ${pkg_name} | tr [a-z] [A-Z] | tr '-' '_') pkg_dl_dir="${raw_pkg_name}_DL_DIR" sed -i "s/\$(DL_DIR)/\$($pkg_dl_dir)/" ${i} done Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
21 lines
697 B
Makefile
21 lines
697 B
Makefile
################################################################################
|
|
#
|
|
# python-pytz
|
|
#
|
|
################################################################################
|
|
|
|
PYTHON_PYTZ_VERSION = 2017.3
|
|
PYTHON_PYTZ_SOURCE = pytz-$(PYTHON_PYTZ_VERSION).zip
|
|
PYTHON_PYTZ_SITE = https://pypi.python.org/packages/60/88/d3152c234da4b2a1f7a989f89609ea488225eaea015bc16fbde2b3fdfefa
|
|
PYTHON_PYTZ_SETUP_TYPE = setuptools
|
|
PYTHON_PYTZ_LICENSE = MIT
|
|
PYTHON_PYTZ_LICENSE_FILES = LICENSE.txt
|
|
|
|
define PYTHON_PYTZ_EXTRACT_CMDS
|
|
unzip $(PYTHON_PYTZ_DL_DIR)/$(PYTHON_PYTZ_SOURCE) -d $(@D)
|
|
mv $(@D)/pytz-$(PYTHON_PYTZ_VERSION)/* $(@D)
|
|
rmdir $(@D)/pytz-$(PYTHON_PYTZ_VERSION)
|
|
endef
|
|
|
|
$(eval $(python-package))
|