diff options
| author | Jeffery To <jeffery.to@gmail.com> | 2020-01-30 22:44:26 +0800 |
|---|---|---|
| committer | Jeffery To <jeffery.to@gmail.com> | 2020-01-30 22:44:26 +0800 |
| commit | 3c24a24e257cd874bfca679aa351a4488dfeb023 (patch) | |
| tree | 31d5f8d752066c445b3ee9a1025c5cf7bb5d5f47 /lang/python/django-restframework | |
| parent | ab3ba9ff2bf0768096c7a31742f108e71e533b86 (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-restframework')
| -rw-r--r-- | lang/python/django-restframework/Makefile | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/lang/python/django-restframework/Makefile b/lang/python/django-restframework/Makefile index cb90f6a51..9bff50d15 100644 --- a/lang/python/django-restframework/Makefile +++ b/lang/python/django-restframework/Makefile @@ -23,7 +23,7 @@ include $(INCLUDE_DIR)/package.mk include ../python-package.mk include ../python3-package.mk -define Package/$(PKG_NAME)/Default +define Package/django-restframework/Default SUBMENU:=Python SECTION:=lang CATEGORY:=Languages @@ -31,38 +31,38 @@ define Package/$(PKG_NAME)/Default URL:=https://www.django-rest-framework.org endef -define Package/python-$(PKG_NAME) -$(call Package/$(PKG_NAME)/Default) +define Package/python-django-restframework +$(call Package/django-restframework/Default) DEPENDS:= \ - +PACKAGE_python-$(PKG_NAME):python \ + +PACKAGE_python-django-restframework:python \ python-django1 VARIANT:=python MDEPENDS:=python-django1 endef -define Package/python-$(PKG_NAME)/description +define Package/python-django-restframework/description Web APIs for Django, made easy. endef -define Package/python3-$(PKG_NAME) -$(call Package/$(PKG_NAME)/Default) +define Package/python3-django-restframework +$(call Package/django-restframework/Default) DEPENDS:= \ - +PACKAGE_python3-$(PKG_NAME):python3 \ + +PACKAGE_python3-django-restframework: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-restframework/description +$(call Package/python-django-restframework/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-restframework)) +$(eval $(call BuildPackage,python-django-restframework)) +$(eval $(call BuildPackage,python-django-restframework-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-restframework)) +$(eval $(call BuildPackage,python3-django-restframework)) +$(eval $(call BuildPackage,python3-django-restframework-src)) |
