summaryrefslogtreecommitdiff
path: root/lang/python/django-webpack-loader
diff options
context:
space:
mode:
authorJeffery To <jeffery.to@gmail.com>2020-01-30 22:44:26 +0800
committerJeffery To <jeffery.to@gmail.com>2020-01-30 22:44:26 +0800
commit3c24a24e257cd874bfca679aa351a4488dfeb023 (patch)
tree31d5f8d752066c445b3ee9a1025c5cf7bb5d5f47 /lang/python/django-webpack-loader
parentab3ba9ff2bf0768096c7a31742f108e71e533b86 (diff)
python-packages: Clean up Makefiles
* Replace $(PKG_NAME) with package name in call, define, and eval lines * Remove extra "define" in $(call define Package/.../description) Signed-off-by: Jeffery To <jeffery.to@gmail.com>
Diffstat (limited to 'lang/python/django-webpack-loader')
-rw-r--r--lang/python/django-webpack-loader/Makefile32
1 files changed, 16 insertions, 16 deletions
diff --git a/lang/python/django-webpack-loader/Makefile b/lang/python/django-webpack-loader/Makefile
index dd41c48b5..1ff80d64c 100644
--- a/lang/python/django-webpack-loader/Makefile
+++ b/lang/python/django-webpack-loader/Makefile
@@ -21,7 +21,7 @@ include $(INCLUDE_DIR)/package.mk
include ../python-package.mk
include ../python3-package.mk
-define Package/$(PKG_NAME)/Default
+define Package/django-webpack-loader/Default
SUBMENU:=Python
SECTION:=lang
CATEGORY:=Languages
@@ -29,38 +29,38 @@ define Package/$(PKG_NAME)/Default
URL:=https://github.com/owais/django-webpack-loader
endef
-define Package/python-$(PKG_NAME)
-$(call Package/$(PKG_NAME)/Default)
+define Package/python-django-webpack-loader
+$(call Package/django-webpack-loader/Default)
DEPENDS:= \
- +PACKAGE_python-$(PKG_NAME):python \
+ +PACKAGE_python-django-webpack-loader:python \
python-django1
VARIANT:=python
MDEPENDS:=python-django1
endef
-define Package/python-$(PKG_NAME)/description
+define Package/python-django-webpack-loader/description
Use webpack to generate your static bundles without django’s staticfiles or opaque wrappers.
endef
-define Package/python3-$(PKG_NAME)
-$(call Package/$(PKG_NAME)/Default)
+define Package/python3-django-webpack-loader
+$(call Package/django-webpack-loader/Default)
DEPENDS:= \
- +PACKAGE_python3-$(PKG_NAME):python3 \
+ +PACKAGE_python3-django-webpack-loader:python3 \
python3-django
VARIANT:=python3
MDEPENDS:=python3-django
endef
-define Package/python3-$(PKG_NAME)/description
-$(call define Package/python-$(PKG_NAME)/description)
+define Package/python3-django-webpack-loader/description
+$(call Package/python-django-webpack-loader/description)
.
(Variant for Python3)
endef
-$(eval $(call PyPackage,python-$(PKG_NAME)))
-$(eval $(call BuildPackage,python-$(PKG_NAME)))
-$(eval $(call BuildPackage,python-$(PKG_NAME)-src))
+$(eval $(call PyPackage,python-django-webpack-loader))
+$(eval $(call BuildPackage,python-django-webpack-loader))
+$(eval $(call BuildPackage,python-django-webpack-loader-src))
-$(eval $(call Py3Package,python3-$(PKG_NAME)))
-$(eval $(call BuildPackage,python3-$(PKG_NAME)))
-$(eval $(call BuildPackage,python3-$(PKG_NAME)-src))
+$(eval $(call Py3Package,python3-django-webpack-loader))
+$(eval $(call BuildPackage,python3-django-webpack-loader))
+$(eval $(call BuildPackage,python3-django-webpack-loader-src))