mirror of
https://github.com/openwrt/packages.git
synced 2025-12-19 00:51:19 +00:00
python-packages: Clean up Makefiles
This removes: * Python 3 variants (VARIANT:=python3) * "for Python3" from package titles * Package selection condition from package dependencies, e.g. +PACKAGE_python3-six:python3-light replaced with +python3-light * "Default" package information sections, e.g. Package/python-six/Default removed and package details merged into Package/python3-six * "(Variant for Python3)" from package descriptions Signed-off-by: Jeffery To <jeffery.to@gmail.com>
This commit is contained in:
@@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=django-webpack-loader
|
||||
PKG_VERSION:=0.6.0
|
||||
PKG_RELEASE:=7
|
||||
PKG_RELEASE:=8
|
||||
|
||||
PYPI_NAME:=$(PKG_NAME)
|
||||
PKG_HASH:=60bab6b9a037a5346fad12d2a70a6bc046afb33154cf75ed640b93d3ebd5f520
|
||||
@@ -20,26 +20,19 @@ include ../pypi.mk
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
include ../python3-package.mk
|
||||
|
||||
define Package/django-webpack-loader/Default
|
||||
define Package/python3-django-webpack-loader
|
||||
SUBMENU:=Python
|
||||
SECTION:=lang
|
||||
CATEGORY:=Languages
|
||||
TITLE:=Transparently use webpack in django
|
||||
URL:=https://github.com/owais/django-webpack-loader
|
||||
endef
|
||||
|
||||
define Package/python3-django-webpack-loader
|
||||
$(call Package/django-webpack-loader/Default)
|
||||
DEPENDS:= \
|
||||
+PACKAGE_python3-django-webpack-loader:python3 \
|
||||
+PACKAGE_python3-django-webpack-loader:python3-django1
|
||||
VARIANT:=python3
|
||||
+python3 \
|
||||
+python3-django1
|
||||
endef
|
||||
|
||||
define Package/python3-django-webpack-loader/description
|
||||
Use webpack to generate your static bundles without django’s staticfiles or opaque wrappers.
|
||||
.
|
||||
(Variant for Python3)
|
||||
endef
|
||||
|
||||
$(eval $(call Py3Package,python3-django-webpack-loader))
|
||||
|
||||
Reference in New Issue
Block a user