mirror of
https://gitee.com/open-loongarch/buildroot-2024.08.git
synced 2026-10-28 05:57:13 +08:00
first commit: base 2024.08
Signed-off-by: maoxiaochuan <maoxiaochuan@loongson.cn>
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
config BR2_PACKAGE_PYTHON_BABEL
|
||||
bool "python-babel"
|
||||
select BR2_PACKAGE_PYTHON_PYTZ # runtime
|
||||
help
|
||||
A collection of tools for internationalizing Python
|
||||
applications.
|
||||
|
||||
http://babel.pocoo.org/en/latest/
|
||||
@@ -0,0 +1,5 @@
|
||||
# md5, sha256 from https://pypi.org/pypi/babel/json
|
||||
md5 3bec3f4c842144c15d839bdde41a44d4 Babel-2.14.0.tar.gz
|
||||
sha256 6919867db036398ba21eb5c7a0f6b28ab8cbc3ae7a73a44ebe34ae74a4e7d363 Babel-2.14.0.tar.gz
|
||||
# Locally computed sha256 checksums
|
||||
sha256 908e0ad72053ae27c1d17e3340bd14cff9bf935992ed56526d17c983ab6e7af7 LICENSE
|
||||
@@ -0,0 +1,29 @@
|
||||
################################################################################
|
||||
#
|
||||
# python-babel
|
||||
#
|
||||
################################################################################
|
||||
|
||||
PYTHON_BABEL_VERSION = 2.14.0
|
||||
PYTHON_BABEL_SOURCE = Babel-$(PYTHON_BABEL_VERSION).tar.gz
|
||||
PYTHON_BABEL_SITE = https://files.pythonhosted.org/packages/e2/80/cfbe44a9085d112e983282ee7ca4c00429bc4d1ce86ee5f4e60259ddff7f
|
||||
PYTHON_BABEL_SETUP_TYPE = setuptools
|
||||
PYTHON_BABEL_LICENSE = BSD-3-Clause
|
||||
PYTHON_BABEL_LICENSE_FILES = LICENSE
|
||||
HOST_PYTHON_BABEL_DEPENDENCIES = host-python-pytz
|
||||
|
||||
# purge locale data (if enabled), keep special en_US_POSIX data which
|
||||
# is used by default by the python-babel code
|
||||
ifeq ($(BR2_ENABLE_LOCALE_PURGE),y)
|
||||
define PYTHON_BABEL_CLEANUP_LOCALE
|
||||
for i in `ls $(TARGET_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOR)/site-packages/babel/locale-data/*.dat`; \
|
||||
do \
|
||||
i_base=`basename "$$i" .dat`; \
|
||||
echo "$(BR2_ENABLE_LOCALE_WHITELIST) en_US_POSIX" | grep -qw "$$i_base" || rm "$$i"; \
|
||||
done
|
||||
endef
|
||||
PYTHON_BABEL_TARGET_FINALIZE_HOOKS += PYTHON_BABEL_CLEANUP_LOCALE
|
||||
endif
|
||||
|
||||
$(eval $(python-package))
|
||||
$(eval $(host-python-package))
|
||||
Reference in New Issue
Block a user