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>
This commit is contained in:
Jeffery To 2020-01-30 22:44:26 +08:00
parent ab3ba9ff2b
commit 3c24a24e25
16 changed files with 204 additions and 204 deletions

View file

@ -23,46 +23,46 @@ include $(INCLUDE_DIR)/package.mk
include ../python-package.mk include ../python-package.mk
include ../python3-package.mk include ../python3-package.mk
define Package/$(PKG_NAME)/Default define Package/django-appconf/Default
SUBMENU:=Python SUBMENU:=Python
SECTION:=lang SECTION:=lang
CATEGORY:=Languages CATEGORY:=Languages
TITLE:=Helper class for handling config defaults TITLE:=Helper class for handling config defaults
URL:=https://$(PKG_NAME).readthedocs.io URL:=https://django-appconf.readthedocs.io
endef endef
define Package/python-$(PKG_NAME) define Package/python-django-appconf
$(call Package/$(PKG_NAME)/Default) $(call Package/django-appconf/Default)
DEPENDS:= \ DEPENDS:= \
+PACKAGE_python-$(PKG_NAME):python \ +PACKAGE_python-django-appconf:python \
python-django1 python-django1
VARIANT:=python VARIANT:=python
MDEPENDS:=python-django1 MDEPENDS:=python-django1
endef endef
define Package/python-$(PKG_NAME)/description define Package/python-django-appconf/description
A helper class for handling configuration defaults of packaged apps gracefully A helper class for handling configuration defaults of packaged apps gracefully
endef endef
define Package/python3-$(PKG_NAME) define Package/python3-django-appconf
$(call Package/$(PKG_NAME)/Default) $(call Package/django-appconf/Default)
DEPENDS:= \ DEPENDS:= \
+PACKAGE_python3-$(PKG_NAME):python3 \ +PACKAGE_python3-django-appconf:python3 \
python3-django python3-django
VARIANT:=python3 VARIANT:=python3
MDEPENDS:=python3-django MDEPENDS:=python3-django
endef endef
define Package/python3-$(PKG_NAME)/description define Package/python3-django-appconf/description
$(call define Package/python-$(PKG_NAME)/description) $(call Package/python-django-appconf/description)
. .
(Variant for Python3) (Variant for Python3)
endef endef
$(eval $(call PyPackage,python-$(PKG_NAME))) $(eval $(call PyPackage,python-django-appconf))
$(eval $(call BuildPackage,python-$(PKG_NAME))) $(eval $(call BuildPackage,python-django-appconf))
$(eval $(call BuildPackage,python-$(PKG_NAME)-src)) $(eval $(call BuildPackage,python-django-appconf-src))
$(eval $(call Py3Package,python3-$(PKG_NAME))) $(eval $(call Py3Package,python3-django-appconf))
$(eval $(call BuildPackage,python3-$(PKG_NAME))) $(eval $(call BuildPackage,python3-django-appconf))
$(eval $(call BuildPackage,python3-$(PKG_NAME)-src)) $(eval $(call BuildPackage,python3-django-appconf-src))

View file

@ -24,53 +24,53 @@ include $(INCLUDE_DIR)/package.mk
include ../python-package.mk include ../python-package.mk
include ../python3-package.mk include ../python3-package.mk
define Package/$(PKG_NAME)/Default define Package/django-compressor/Default
SUBMENU:=Python SUBMENU:=Python
SECTION:=lang SECTION:=lang
CATEGORY:=Languages CATEGORY:=Languages
TITLE:=Compress CSS/JS into single cached files TITLE:=Compress CSS/JS into single cached files
URL:=https://$(PKG_NAME).readthedocs.io URL:=https://django-compressor.readthedocs.io
endef endef
define Package/python-$(PKG_NAME) define Package/python-django-compressor
$(call Package/$(PKG_NAME)/Default) $(call Package/django-compressor/Default)
DEPENDS:= \ DEPENDS:= \
+PACKAGE_python-$(PKG_NAME):python \ +PACKAGE_python-django-compressor:python \
python-django1 \ python-django1 \
+PACKAGE_python-$(PKG_NAME):python-django-appconf \ +PACKAGE_python-django-compressor:python-django-appconf \
+PACKAGE_python-$(PKG_NAME):python-rcssmin +PACKAGE_python-django-compressor:python-rcssmin
VARIANT:=python VARIANT:=python
MDEPENDS:=python-django1 MDEPENDS:=python-django1
endef endef
define Package/python-$(PKG_NAME)/description define Package/python-django-compressor/description
Compresses linked and inline JavaScript or CSS into single cached files. Compresses linked and inline JavaScript or CSS into single cached files.
Note that the JavaScript filter is not being installed as a dependency. Note that the JavaScript filter is not being installed as a dependency.
You'll need to build the rjsmin module (it is not par of the openwrt standard You'll need to build the rjsmin module (it is not par of the openwrt standard
feeds) to use JavaScript functionality. feeds) to use JavaScript functionality.
endef endef
define Package/python3-$(PKG_NAME) define Package/python3-django-compressor
$(call Package/$(PKG_NAME)/Default) $(call Package/django-compressor/Default)
DEPENDS:= \ DEPENDS:= \
+PACKAGE_python3-$(PKG_NAME):python3 \ +PACKAGE_python3-django-compressor:python3 \
python3-django \ python3-django \
+PACKAGE_python3-$(PKG_NAME):python3-django-appconf \ +PACKAGE_python3-django-compressor:python3-django-appconf \
+PACKAGE_python3-$(PKG_NAME):python3-rcssmin +PACKAGE_python3-django-compressor:python3-rcssmin
VARIANT:=python3 VARIANT:=python3
MDEPENDS:=python3-django MDEPENDS:=python3-django
endef endef
define Package/python3-$(PKG_NAME)/description define Package/python3-django-compressor/description
$(call define Package/python-$(PKG_NAME)/description) $(call Package/python-django-compressor/description)
. .
(Variant for Python3) (Variant for Python3)
endef endef
$(eval $(call PyPackage,python-$(PKG_NAME))) $(eval $(call PyPackage,python-django-compressor))
$(eval $(call BuildPackage,python-$(PKG_NAME))) $(eval $(call BuildPackage,python-django-compressor))
$(eval $(call BuildPackage,python-$(PKG_NAME)-src)) $(eval $(call BuildPackage,python-django-compressor-src))
$(eval $(call Py3Package,python3-$(PKG_NAME))) $(eval $(call Py3Package,python3-django-compressor))
$(eval $(call BuildPackage,python3-$(PKG_NAME))) $(eval $(call BuildPackage,python3-django-compressor))
$(eval $(call BuildPackage,python3-$(PKG_NAME)-src)) $(eval $(call BuildPackage,python3-django-compressor-src))

View file

@ -53,7 +53,7 @@ $(call Package/python-django-constance/Default)
endef endef
define Package/python3-django-constance/description define Package/python3-django-constance/description
$(call define Package/python-django-constance/description) $(call Package/python-django-constance/description)
. .
(Variant for Python3) (Variant for Python3)
endef endef

View file

@ -21,47 +21,47 @@ include $(INCLUDE_DIR)/package.mk
include ../python-package.mk include ../python-package.mk
include ../python3-package.mk include ../python3-package.mk
define Package/$(PKG_NAME)/Default define Package/django-formtools/Default
SUBMENU:=Python SUBMENU:=Python
SECTION:=lang SECTION:=lang
CATEGORY:=Languages CATEGORY:=Languages
TITLE:=High-level abstractions for Django forms TITLE:=High-level abstractions for Django forms
URL:=https://$(PKG_NAME).readthedocs.io URL:=https://django-formtools.readthedocs.io
endef endef
define Package/python-$(PKG_NAME) define Package/python-django-formtools
$(call Package/$(PKG_NAME)/Default) $(call Package/django-formtools/Default)
DEPENDS:= \ DEPENDS:= \
+PACKAGE_python-$(PKG_NAME):python \ +PACKAGE_python-django-formtools:python \
python-django1 python-django1
VARIANT:=python VARIANT:=python
MDEPENDS:=python-django1 MDEPENDS:=python-django1
endef endef
define Package/python-$(PKG_NAME)/description define Package/python-django-formtools/description
Django "formtools" is a set of high-level abstractions for Django forms. Django "formtools" is a set of high-level abstractions for Django forms.
Currently for form previews and multi-step forms. Currently for form previews and multi-step forms.
endef endef
define Package/python3-$(PKG_NAME) define Package/python3-django-formtools
$(call Package/$(PKG_NAME)/Default) $(call Package/django-formtools/Default)
DEPENDS:= \ DEPENDS:= \
+PACKAGE_python3-$(PKG_NAME):python3 \ +PACKAGE_python3-django-formtools:python3 \
python3-django python3-django
VARIANT:=python3 VARIANT:=python3
MDEPENDS:=python3-django MDEPENDS:=python3-django
endef endef
define Package/python3-$(PKG_NAME)/description define Package/python3-django-formtools/description
$(call define Package/python-$(PKG_NAME)/description) $(call Package/python-django-formtools/description)
. .
(Variant for Python3) (Variant for Python3)
endef endef
$(eval $(call PyPackage,python-$(PKG_NAME))) $(eval $(call PyPackage,python-django-formtools))
$(eval $(call BuildPackage,python-$(PKG_NAME))) $(eval $(call BuildPackage,python-django-formtools))
$(eval $(call BuildPackage,python-$(PKG_NAME)-src)) $(eval $(call BuildPackage,python-django-formtools-src))
$(eval $(call Py3Package,python3-$(PKG_NAME))) $(eval $(call Py3Package,python3-django-formtools))
$(eval $(call BuildPackage,python3-$(PKG_NAME))) $(eval $(call BuildPackage,python3-django-formtools))
$(eval $(call BuildPackage,python3-$(PKG_NAME)-src)) $(eval $(call BuildPackage,python3-django-formtools-src))

View file

@ -23,7 +23,7 @@ include $(INCLUDE_DIR)/package.mk
include ../python-package.mk include ../python-package.mk
include ../python3-package.mk include ../python3-package.mk
define Package/$(PKG_NAME)/Default define Package/django-jsonfield/Default
SUBMENU:=Python SUBMENU:=Python
SECTION:=lang SECTION:=lang
CATEGORY:=Languages CATEGORY:=Languages
@ -31,38 +31,38 @@ define Package/$(PKG_NAME)/Default
URL:=https://github.com/adamchainz/django-jsonfield URL:=https://github.com/adamchainz/django-jsonfield
endef endef
define Package/python-$(PKG_NAME) define Package/python-django-jsonfield
$(call Package/$(PKG_NAME)/Default) $(call Package/django-jsonfield/Default)
DEPENDS:= \ DEPENDS:= \
+PACKAGE_python-$(PKG_NAME):python \ +PACKAGE_python-django-jsonfield:python \
python-django1 python-django1
VARIANT:=python VARIANT:=python
MDEPENDS:=python-django1 MDEPENDS:=python-django1
endef endef
define Package/python-$(PKG_NAME)/description define Package/python-django-jsonfield/description
JSONField for django models JSONField for django models
endef endef
define Package/python3-$(PKG_NAME) define Package/python3-django-jsonfield
$(call Package/$(PKG_NAME)/Default) $(call Package/django-jsonfield/Default)
DEPENDS:= \ DEPENDS:= \
+PACKAGE_python3-$(PKG_NAME):python3 \ +PACKAGE_python3-django-jsonfield:python3 \
python3-django python3-django
VARIANT:=python3 VARIANT:=python3
MDEPENDS:=python3-django MDEPENDS:=python3-django
endef endef
define Package/python3-$(PKG_NAME)/description define Package/python3-django-jsonfield/description
$(call define Package/python-$(PKG_NAME)/description) $(call Package/python-django-jsonfield/description)
. .
(Variant for Python3) (Variant for Python3)
endef endef
$(eval $(call PyPackage,python-$(PKG_NAME))) $(eval $(call PyPackage,python-django-jsonfield))
$(eval $(call BuildPackage,python-$(PKG_NAME))) $(eval $(call BuildPackage,python-django-jsonfield))
$(eval $(call BuildPackage,python-$(PKG_NAME)-src)) $(eval $(call BuildPackage,python-django-jsonfield-src))
$(eval $(call Py3Package,python3-$(PKG_NAME))) $(eval $(call Py3Package,python3-django-jsonfield))
$(eval $(call BuildPackage,python3-$(PKG_NAME))) $(eval $(call BuildPackage,python3-django-jsonfield))
$(eval $(call BuildPackage,python3-$(PKG_NAME)-src)) $(eval $(call BuildPackage,python3-django-jsonfield-src))

View file

@ -23,7 +23,7 @@ include $(INCLUDE_DIR)/package.mk
include ../python-package.mk include ../python-package.mk
include ../python3-package.mk include ../python3-package.mk
define Package/$(PKG_NAME)/Default define Package/django-picklefield/Default
SUBMENU:=Python SUBMENU:=Python
SECTION:=lang SECTION:=lang
CATEGORY:=Languages CATEGORY:=Languages
@ -31,38 +31,38 @@ define Package/$(PKG_NAME)/Default
URL:=https://github.com/gintas/django-picklefield/ URL:=https://github.com/gintas/django-picklefield/
endef endef
define Package/python-$(PKG_NAME) define Package/python-django-picklefield
$(call Package/$(PKG_NAME)/Default) $(call Package/django-picklefield/Default)
DEPENDS:= \ DEPENDS:= \
+PACKAGE_python-$(PKG_NAME):python \ +PACKAGE_python-django-picklefield:python \
python-django1 python-django1
VARIANT:=python VARIANT:=python
MDEPENDS:=python-django1 MDEPENDS:=python-django1
endef endef
define Package/python-$(PKG_NAME)/description define Package/python-django-picklefield/description
Pickled object field for Django Pickled object field for Django
endef endef
define Package/python3-$(PKG_NAME) define Package/python3-django-picklefield
$(call Package/$(PKG_NAME)/Default) $(call Package/django-picklefield/Default)
DEPENDS:= \ DEPENDS:= \
+PACKAGE_python3-$(PKG_NAME):python3 \ +PACKAGE_python3-django-picklefield:python3 \
python3-django python3-django
VARIANT:=python3 VARIANT:=python3
MDEPENDS:=python3-django MDEPENDS:=python3-django
endef endef
define Package/python3-$(PKG_NAME)/description define Package/python3-django-picklefield/description
$(call define Package/python-$(PKG_NAME)/description) $(call Package/python-django-picklefield/description)
. .
(Variant for Python3) (Variant for Python3)
endef endef
$(eval $(call PyPackage,python-$(PKG_NAME))) $(eval $(call PyPackage,python-django-picklefield))
$(eval $(call BuildPackage,python-$(PKG_NAME))) $(eval $(call BuildPackage,python-django-picklefield))
$(eval $(call BuildPackage,python-$(PKG_NAME)-src)) $(eval $(call BuildPackage,python-django-picklefield-src))
$(eval $(call Py3Package,python3-$(PKG_NAME))) $(eval $(call Py3Package,python3-django-picklefield))
$(eval $(call BuildPackage,python3-$(PKG_NAME))) $(eval $(call BuildPackage,python3-django-picklefield))
$(eval $(call BuildPackage,python3-$(PKG_NAME)-src)) $(eval $(call BuildPackage,python3-django-picklefield-src))

View file

@ -24,7 +24,7 @@ include $(INCLUDE_DIR)/package.mk
include ../python-package.mk include ../python-package.mk
include ../python3-package.mk include ../python3-package.mk
define Package/$(PKG_NAME)/Default define Package/django-postoffice/Default
SUBMENU:=Python SUBMENU:=Python
SECTION:=lang SECTION:=lang
CATEGORY:=Languages CATEGORY:=Languages
@ -32,41 +32,41 @@ define Package/$(PKG_NAME)/Default
URL:=https://github.com/ui/django-post_office URL:=https://github.com/ui/django-post_office
endef endef
define Package/python-$(PKG_NAME) define Package/python-django-postoffice
$(call Package/$(PKG_NAME)/Default) $(call Package/django-postoffice/Default)
DEPENDS:= \ DEPENDS:= \
+PACKAGE_python-$(PKG_NAME):python \ +PACKAGE_python-django-postoffice:python \
python-django1 \ python-django1 \
+PACKAGE_python-$(PKG_NAME):python-django-jsonfield +PACKAGE_python-django-postoffice:python-django-jsonfield
VARIANT:=python VARIANT:=python
MDEPENDS:=python-django1 MDEPENDS:=python-django1
endef endef
define Package/python-$(PKG_NAME)/description define Package/python-django-postoffice/description
A Django app to monitor and send mail asynchronously, complete with template A Django app to monitor and send mail asynchronously, complete with template
support support
endef endef
define Package/python3-$(PKG_NAME) define Package/python3-django-postoffice
$(call Package/$(PKG_NAME)/Default) $(call Package/django-postoffice/Default)
DEPENDS:= \ DEPENDS:= \
+PACKAGE_python3-$(PKG_NAME):python3 \ +PACKAGE_python3-django-postoffice:python3 \
python3-django \ python3-django \
+PACKAGE_python3-$(PKG_NAME):python3-django-jsonfield +PACKAGE_python3-django-postoffice:python3-django-jsonfield
VARIANT:=python3 VARIANT:=python3
MDEPENDS:=python3-django MDEPENDS:=python3-django
endef endef
define Package/python3-$(PKG_NAME)/description define Package/python3-django-postoffice/description
$(call define Package/python-$(PKG_NAME)/description) $(call Package/python-django-postoffice/description)
. .
(Variant for Python3) (Variant for Python3)
endef endef
$(eval $(call PyPackage,python-$(PKG_NAME))) $(eval $(call PyPackage,python-django-postoffice))
$(eval $(call BuildPackage,python-$(PKG_NAME))) $(eval $(call BuildPackage,python-django-postoffice))
$(eval $(call BuildPackage,python-$(PKG_NAME)-src)) $(eval $(call BuildPackage,python-django-postoffice-src))
$(eval $(call Py3Package,python3-$(PKG_NAME))) $(eval $(call Py3Package,python3-django-postoffice))
$(eval $(call BuildPackage,python3-$(PKG_NAME))) $(eval $(call BuildPackage,python3-django-postoffice))
$(eval $(call BuildPackage,python3-$(PKG_NAME)-src)) $(eval $(call BuildPackage,python3-django-postoffice-src))

View file

@ -21,7 +21,7 @@ include $(INCLUDE_DIR)/package.mk
include ../python-package.mk include ../python-package.mk
include ../python3-package.mk include ../python3-package.mk
define Package/$(PKG_NAME)/Default define Package/django-ranged-response/Default
SUBMENU:=Python SUBMENU:=Python
SECTION:=lang SECTION:=lang
CATEGORY:=Languages CATEGORY:=Languages
@ -29,38 +29,38 @@ define Package/$(PKG_NAME)/Default
URL:=https://github.com/wearespindle/django-ranged-fileresponse URL:=https://github.com/wearespindle/django-ranged-fileresponse
endef endef
define Package/python-$(PKG_NAME) define Package/python-django-ranged-response
$(call Package/$(PKG_NAME)/Default) $(call Package/django-ranged-response/Default)
DEPENDS:= \ DEPENDS:= \
+PACKAGE_python-$(PKG_NAME):python \ +PACKAGE_python-django-ranged-response:python \
python-django1 python-django1
VARIANT:=python VARIANT:=python
MDEPENDS:=python-django1 MDEPENDS:=python-django1
endef endef
define Package/python-$(PKG_NAME)/description define Package/python-django-ranged-response/description
Modified Django FileResponse that adds Content-Range headers. Modified Django FileResponse that adds Content-Range headers.
endef endef
define Package/python3-$(PKG_NAME) define Package/python3-django-ranged-response
$(call Package/$(PKG_NAME)/Default) $(call Package/django-ranged-response/Default)
DEPENDS:= \ DEPENDS:= \
+PACKAGE_python3-$(PKG_NAME):python3 \ +PACKAGE_python3-django-ranged-response:python3 \
python3-django python3-django
VARIANT:=python3 VARIANT:=python3
MDEPENDS:=python3-django MDEPENDS:=python3-django
endef endef
define Package/python3-$(PKG_NAME)/description define Package/python3-django-ranged-response/description
$(call define Package/python-$(PKG_NAME)/description) $(call Package/python-django-ranged-response/description)
. .
(Variant for Python3) (Variant for Python3)
endef endef
$(eval $(call PyPackage,python-$(PKG_NAME))) $(eval $(call PyPackage,python-django-ranged-response))
$(eval $(call BuildPackage,python-$(PKG_NAME))) $(eval $(call BuildPackage,python-django-ranged-response))
$(eval $(call BuildPackage,python-$(PKG_NAME)-src)) $(eval $(call BuildPackage,python-django-ranged-response-src))
$(eval $(call Py3Package,python3-$(PKG_NAME))) $(eval $(call Py3Package,python3-django-ranged-response))
$(eval $(call BuildPackage,python3-$(PKG_NAME))) $(eval $(call BuildPackage,python3-django-ranged-response))
$(eval $(call BuildPackage,python3-$(PKG_NAME)-src)) $(eval $(call BuildPackage,python3-django-ranged-response-src))

View file

@ -23,7 +23,7 @@ include $(INCLUDE_DIR)/package.mk
include ../python-package.mk include ../python-package.mk
include ../python3-package.mk include ../python3-package.mk
define Package/$(PKG_NAME)/Default define Package/django-restframework/Default
SUBMENU:=Python SUBMENU:=Python
SECTION:=lang SECTION:=lang
CATEGORY:=Languages CATEGORY:=Languages
@ -31,38 +31,38 @@ define Package/$(PKG_NAME)/Default
URL:=https://www.django-rest-framework.org URL:=https://www.django-rest-framework.org
endef endef
define Package/python-$(PKG_NAME) define Package/python-django-restframework
$(call Package/$(PKG_NAME)/Default) $(call Package/django-restframework/Default)
DEPENDS:= \ DEPENDS:= \
+PACKAGE_python-$(PKG_NAME):python \ +PACKAGE_python-django-restframework:python \
python-django1 python-django1
VARIANT:=python VARIANT:=python
MDEPENDS:=python-django1 MDEPENDS:=python-django1
endef endef
define Package/python-$(PKG_NAME)/description define Package/python-django-restframework/description
Web APIs for Django, made easy. Web APIs for Django, made easy.
endef endef
define Package/python3-$(PKG_NAME) define Package/python3-django-restframework
$(call Package/$(PKG_NAME)/Default) $(call Package/django-restframework/Default)
DEPENDS:= \ DEPENDS:= \
+PACKAGE_python3-$(PKG_NAME):python3 \ +PACKAGE_python3-django-restframework:python3 \
python3-django python3-django
VARIANT:=python3 VARIANT:=python3
MDEPENDS:=python3-django MDEPENDS:=python3-django
endef endef
define Package/python3-$(PKG_NAME)/description define Package/python3-django-restframework/description
$(call define Package/python-$(PKG_NAME)/description) $(call Package/python-django-restframework/description)
. .
(Variant for Python3) (Variant for Python3)
endef endef
$(eval $(call PyPackage,python-$(PKG_NAME))) $(eval $(call PyPackage,python-django-restframework))
$(eval $(call BuildPackage,python-$(PKG_NAME))) $(eval $(call BuildPackage,python-django-restframework))
$(eval $(call BuildPackage,python-$(PKG_NAME)-src)) $(eval $(call BuildPackage,python-django-restframework-src))
$(eval $(call Py3Package,python3-$(PKG_NAME))) $(eval $(call Py3Package,python3-django-restframework))
$(eval $(call BuildPackage,python3-$(PKG_NAME))) $(eval $(call BuildPackage,python3-django-restframework))
$(eval $(call BuildPackage,python3-$(PKG_NAME)-src)) $(eval $(call BuildPackage,python3-django-restframework-src))

View file

@ -27,7 +27,7 @@ include ../python3-package.mk
PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE) PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
define Package/$(PKG_NAME)/Default define Package/django-simple-captcha/Default
SUBMENU:=Python SUBMENU:=Python
SECTION:=lang SECTION:=lang
CATEGORY:=Languages CATEGORY:=Languages
@ -35,45 +35,45 @@ define Package/$(PKG_NAME)/Default
URL:=https://github.com/mbi/django-simple-captcha URL:=https://github.com/mbi/django-simple-captcha
endef endef
define Package/python-$(PKG_NAME) define Package/python-django-simple-captcha
$(call Package/$(PKG_NAME)/Default) $(call Package/django-simple-captcha/Default)
DEPENDS:= \ DEPENDS:= \
+PACKAGE_python-$(PKG_NAME):python \ +PACKAGE_python-django-simple-captcha:python \
+PACKAGE_python-$(PKG_NAME):python-six \ +PACKAGE_python-django-simple-captcha:python-six \
python-django1 \ python-django1 \
+PACKAGE_python-$(PKG_NAME):python-pillow \ +PACKAGE_python-django-simple-captcha:python-pillow \
+PACKAGE_python-$(PKG_NAME):python-django-ranged-response +PACKAGE_python-django-simple-captcha:python-django-ranged-response
VARIANT:=python VARIANT:=python
MDEPENDS:=python-django1 MDEPENDS:=python-django1
endef endef
define Package/python-$(PKG_NAME)/description define Package/python-django-simple-captcha/description
Django Simple Captcha is an extremely simple, yet highly customizable Django Django Simple Captcha is an extremely simple, yet highly customizable Django
application to add captcha images to any Django form. application to add captcha images to any Django form.
endef endef
define Package/python3-$(PKG_NAME) define Package/python3-django-simple-captcha
$(call Package/$(PKG_NAME)/Default) $(call Package/django-simple-captcha/Default)
DEPENDS:= \ DEPENDS:= \
+PACKAGE_python3-$(PKG_NAME):python3 \ +PACKAGE_python3-django-simple-captcha:python3 \
+PACKAGE_python3-$(PKG_NAME):python3-six \ +PACKAGE_python3-django-simple-captcha:python3-six \
python3-django \ python3-django \
+PACKAGE_python3-$(PKG_NAME):python3-pillow \ +PACKAGE_python3-django-simple-captcha:python3-pillow \
+PACKAGE_python3-$(PKG_NAME):python3-django-ranged-response +PACKAGE_python3-django-simple-captcha:python3-django-ranged-response
VARIANT:=python3 VARIANT:=python3
MDEPENDS:=python3-django MDEPENDS:=python3-django
endef endef
define Package/python3-$(PKG_NAME)/description define Package/python3-django-simple-captcha/description
$(call define Package/python-$(PKG_NAME)/description) $(call Package/python-django-simple-captcha/description)
. .
(Variant for Python3) (Variant for Python3)
endef endef
$(eval $(call PyPackage,python-$(PKG_NAME))) $(eval $(call PyPackage,python-django-simple-captcha))
$(eval $(call BuildPackage,python-$(PKG_NAME))) $(eval $(call BuildPackage,python-django-simple-captcha))
$(eval $(call BuildPackage,python-$(PKG_NAME)-src)) $(eval $(call BuildPackage,python-django-simple-captcha-src))
$(eval $(call Py3Package,python3-$(PKG_NAME))) $(eval $(call Py3Package,python3-django-simple-captcha))
$(eval $(call BuildPackage,python3-$(PKG_NAME))) $(eval $(call BuildPackage,python3-django-simple-captcha))
$(eval $(call BuildPackage,python3-$(PKG_NAME)-src)) $(eval $(call BuildPackage,python3-django-simple-captcha-src))

View file

@ -23,46 +23,46 @@ include $(INCLUDE_DIR)/package.mk
include ../python-package.mk include ../python-package.mk
include ../python3-package.mk include ../python3-package.mk
define Package/$(PKG_NAME)/Default define Package/django-statici18n/Default
SUBMENU:=Python SUBMENU:=Python
SECTION:=lang SECTION:=lang
CATEGORY:=Languages CATEGORY:=Languages
TITLE:=Helper for generating JavaScript catalog to static files TITLE:=Helper for generating JavaScript catalog to static files
URL:=https://$(PKG_NAME).readthedocs.io URL:=https://django-statici18n.readthedocs.io
endef endef
define Package/python-$(PKG_NAME) define Package/python-django-statici18n
$(call Package/$(PKG_NAME)/Default) $(call Package/django-statici18n/Default)
DEPENDS:= \ DEPENDS:= \
+PACKAGE_python-$(PKG_NAME):python \ +PACKAGE_python-django-statici18n:python \
python-django1 python-django1
VARIANT:=python VARIANT:=python
MDEPENDS:=python-django1 MDEPENDS:=python-django1
endef endef
define Package/python-$(PKG_NAME)/description define Package/python-django-statici18n/description
A Django app that provides helper for generating JavaScript catalog to static files. A Django app that provides helper for generating JavaScript catalog to static files.
endef endef
define Package/python3-$(PKG_NAME) define Package/python3-django-statici18n
$(call Package/$(PKG_NAME)/Default) $(call Package/django-statici18n/Default)
DEPENDS:= \ DEPENDS:= \
+PACKAGE_python3-$(PKG_NAME):python3 \ +PACKAGE_python3-django-statici18n:python3 \
python3-django python3-django
VARIANT:=python3 VARIANT:=python3
MDEPENDS:=python3-django MDEPENDS:=python3-django
endef endef
define Package/python3-$(PKG_NAME)/description define Package/python3-django-statici18n/description
$(call define Package/python-$(PKG_NAME)/description) $(call Package/python-django-statici18n/description)
. .
(Variant for Python3) (Variant for Python3)
endef endef
$(eval $(call PyPackage,python-$(PKG_NAME))) $(eval $(call PyPackage,python-django-statici18n))
$(eval $(call BuildPackage,python-$(PKG_NAME))) $(eval $(call BuildPackage,python-django-statici18n))
$(eval $(call BuildPackage,python-$(PKG_NAME)-src)) $(eval $(call BuildPackage,python-django-statici18n-src))
$(eval $(call Py3Package,python3-$(PKG_NAME))) $(eval $(call Py3Package,python3-django-statici18n))
$(eval $(call BuildPackage,python3-$(PKG_NAME))) $(eval $(call BuildPackage,python3-django-statici18n))
$(eval $(call BuildPackage,python3-$(PKG_NAME)-src)) $(eval $(call BuildPackage,python3-django-statici18n-src))

View file

@ -21,7 +21,7 @@ include $(INCLUDE_DIR)/package.mk
include ../python-package.mk include ../python-package.mk
include ../python3-package.mk include ../python3-package.mk
define Package/$(PKG_NAME)/Default define Package/django-webpack-loader/Default
SUBMENU:=Python SUBMENU:=Python
SECTION:=lang SECTION:=lang
CATEGORY:=Languages CATEGORY:=Languages
@ -29,38 +29,38 @@ define Package/$(PKG_NAME)/Default
URL:=https://github.com/owais/django-webpack-loader URL:=https://github.com/owais/django-webpack-loader
endef endef
define Package/python-$(PKG_NAME) define Package/python-django-webpack-loader
$(call Package/$(PKG_NAME)/Default) $(call Package/django-webpack-loader/Default)
DEPENDS:= \ DEPENDS:= \
+PACKAGE_python-$(PKG_NAME):python \ +PACKAGE_python-django-webpack-loader:python \
python-django1 python-django1
VARIANT:=python VARIANT:=python
MDEPENDS:=python-django1 MDEPENDS:=python-django1
endef endef
define Package/python-$(PKG_NAME)/description define Package/python-django-webpack-loader/description
Use webpack to generate your static bundles without djangos staticfiles or opaque wrappers. Use webpack to generate your static bundles without djangos staticfiles or opaque wrappers.
endef endef
define Package/python3-$(PKG_NAME) define Package/python3-django-webpack-loader
$(call Package/$(PKG_NAME)/Default) $(call Package/django-webpack-loader/Default)
DEPENDS:= \ DEPENDS:= \
+PACKAGE_python3-$(PKG_NAME):python3 \ +PACKAGE_python3-django-webpack-loader:python3 \
python3-django python3-django
VARIANT:=python3 VARIANT:=python3
MDEPENDS:=python3-django MDEPENDS:=python3-django
endef endef
define Package/python3-$(PKG_NAME)/description define Package/python3-django-webpack-loader/description
$(call define Package/python-$(PKG_NAME)/description) $(call Package/python-django-webpack-loader/description)
. .
(Variant for Python3) (Variant for Python3)
endef endef
$(eval $(call PyPackage,python-$(PKG_NAME))) $(eval $(call PyPackage,python-django-webpack-loader))
$(eval $(call BuildPackage,python-$(PKG_NAME))) $(eval $(call BuildPackage,python-django-webpack-loader))
$(eval $(call BuildPackage,python-$(PKG_NAME)-src)) $(eval $(call BuildPackage,python-django-webpack-loader-src))
$(eval $(call Py3Package,python3-$(PKG_NAME))) $(eval $(call Py3Package,python3-django-webpack-loader))
$(eval $(call BuildPackage,python3-$(PKG_NAME))) $(eval $(call BuildPackage,python3-django-webpack-loader))
$(eval $(call BuildPackage,python3-$(PKG_NAME)-src)) $(eval $(call BuildPackage,python3-django-webpack-loader-src))

View file

@ -53,7 +53,7 @@ $(call Package/gunicorn/Default)
endef endef
define Package/python3-gunicorn/description define Package/python3-gunicorn/description
$(call define Package/python-gunicorn/description) $(call Package/python-gunicorn/description)
. .
(Variant for Python3) (Variant for Python3)
endef endef
@ -89,7 +89,7 @@ $(call Package/gunicorn/Default)
endef endef
define Package/gunicorn3/description define Package/gunicorn3/description
$(call define Package/gunicorn/description) $(call Package/gunicorn/description)
. .
(Variant for Python3) (Variant for Python3)
endef endef

View file

@ -36,6 +36,6 @@ define Package/python3-netifaces/description
Portable network interface information. Portable network interface information.
endef endef
$(eval $(call Py3Package,$(PKG_NAME))) $(eval $(call Py3Package,python3-netifaces))
$(eval $(call BuildPackage,$(PKG_NAME))) $(eval $(call BuildPackage,python3-netifaces))
$(eval $(call BuildPackage,$(PKG_NAME)-src)) $(eval $(call BuildPackage,python3-netifaces-src))

View file

@ -46,6 +46,6 @@ endef
PYTHON3_PKG_SETUP_ARGS:= PYTHON3_PKG_SETUP_ARGS:=
$(eval $(call Py3Package,$(PKG_NAME))) $(eval $(call Py3Package,python3-pyroute2))
$(eval $(call BuildPackage,$(PKG_NAME))) $(eval $(call BuildPackage,python3-pyroute2))
$(eval $(call BuildPackage,$(PKG_NAME)-src)) $(eval $(call BuildPackage,python3-pyroute2-src))

View file

@ -36,6 +36,6 @@ define Package/python-unidecode/description
Unidecode, lossy ASCII transliterations of Unicode text Unidecode, lossy ASCII transliterations of Unicode text
endef endef
$(eval $(call Py3Package,$(PKG_NAME))) $(eval $(call Py3Package,python3-unidecode))
$(eval $(call BuildPackage,$(PKG_NAME))) $(eval $(call BuildPackage,python3-unidecode))
$(eval $(call BuildPackage,$(PKG_NAME)-src)) $(eval $(call BuildPackage,python3-unidecode-src))