mirror of
https://git.busybox.net/buildroot.git
synced 2024-11-27 15:33:28 +08:00
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>
25 lines
1.0 KiB
Makefile
25 lines
1.0 KiB
Makefile
################################################################################
|
|
#
|
|
# python-simplegeneric
|
|
#
|
|
################################################################################
|
|
|
|
PYTHON_SIMPLEGENERIC_VERSION = 0.8.1
|
|
PYTHON_SIMPLEGENERIC_SOURCE = simplegeneric-$(PYTHON_SIMPLEGENERIC_VERSION).zip
|
|
PYTHON_SIMPLEGENERIC_SITE = https://pypi.python.org/packages/3d/57/4d9c9e3ae9a255cd4e1106bb57e24056d3d0709fc01b2e3e345898e49d5b
|
|
PYTHON_SIMPLEGENERIC_LICENSE = ZPL-2.1
|
|
|
|
# Force setup-type to be 'setuptools' in order to force the package to
|
|
# be installed with --single-version-externally-managed. Otherwise we
|
|
# end up with a .egg file, which is a zip archive, and as such forces
|
|
# us to have 'zlib' as a runtime dependency
|
|
PYTHON_SIMPLEGENERIC_SETUP_TYPE = setuptools
|
|
|
|
define PYTHON_SIMPLEGENERIC_EXTRACT_CMDS
|
|
unzip $(PYTHON_SIMPLEGENERIC_DL_DIR)/$(PYTHON_SIMPLEGENERIC_SOURCE) -d $(@D)
|
|
mv $(@D)/simplegeneric-$(PYTHON_SIMPLEGENERIC_VERSION)/* $(@D)
|
|
rmdir $(@D)/simplegeneric-$(PYTHON_SIMPLEGENERIC_VERSION)
|
|
endef
|
|
|
|
$(eval $(python-package))
|