mirror of
https://github.com/openwrt/packages.git
synced 2025-12-19 09:01:22 +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:
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=django-jsonfield
|
||||
PKG_VERSION:=2.1.1
|
||||
PKG_RELEASE:=1
|
||||
PKG_RELEASE:=2
|
||||
|
||||
PYPI_NAME:=jsonfield
|
||||
PKG_HASH:=ed7c5e1829e9453e24a8bebef1e702ffe402e6def6b326f0e0b88764c59a6dc7
|
||||
@@ -22,28 +22,21 @@ include ../pypi.mk
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
include ../python3-package.mk
|
||||
|
||||
define Package/django-jsonfield/Default
|
||||
define Package/python3-django-jsonfield
|
||||
SUBMENU:=Python
|
||||
SECTION:=lang
|
||||
CATEGORY:=Languages
|
||||
TITLE:=A reusable Django field to store validated JSON in models
|
||||
URL:=https://github.com/rpkilby/jsonfield
|
||||
endef
|
||||
|
||||
define Package/python3-django-jsonfield
|
||||
$(call Package/django-jsonfield/Default)
|
||||
DEPENDS:= \
|
||||
+PACKAGE_python3-django-jsonfield:python3 \
|
||||
+PACKAGE_python3-django-jsonfield:python3-django1 \
|
||||
+PACKAGE_python3-django-jsonfield:python3-six
|
||||
VARIANT:=python3
|
||||
+python3 \
|
||||
+python3-django1 \
|
||||
+python3-six
|
||||
endef
|
||||
|
||||
define Package/python3-django-jsonfield/description
|
||||
jsonfield is a reusable model field that allows you to store validated
|
||||
JSON, automatically handling serialization to and from the database.
|
||||
.
|
||||
(Variant for Python3)
|
||||
endef
|
||||
|
||||
$(eval $(call Py3Package,python3-django-jsonfield))
|
||||
|
||||
Reference in New Issue
Block a user