You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

72 lines
2.0 KiB

  1. #
  2. # Copyright (C) 2007-2017 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=python-simplejson
  9. PKG_VERSION:=3.17.0
  10. PKG_RELEASE:=1
  11. PKG_LICENSE:=MIT
  12. PKG_CPE_ID:=cpe:/a:simplejson_project:simplejson
  13. PYPI_NAME:=simplejson
  14. PKG_HASH:=2b4b2b738b3b99819a17feaf118265d0753d5536049ea570b3c43b51c4701e81
  15. include ../pypi.mk
  16. include $(INCLUDE_DIR)/package.mk
  17. include ../python-package.mk
  18. include ../python3-package.mk
  19. define Package/python-simplejson/Default
  20. SUBMENU:=Python
  21. SECTION:=lang
  22. CATEGORY:=Languages
  23. MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
  24. URL:=https://simplejson.readthedocs.org/
  25. endef
  26. define Package/python-simplejson
  27. $(call Package/python-simplejson/Default)
  28. TITLE:=Simple, fast, extensible JSON encoder/decoder for Python 2
  29. DEPENDS:=+PACKAGE_python-simplejson:python-light +PACKAGE_python-simplejson:python-decimal
  30. VARIANT:=python
  31. endef
  32. define Package/python3-simplejson
  33. $(call Package/python-simplejson/Default)
  34. TITLE:=Simple, fast, extensible JSON encoder/decoder for Python3
  35. DEPENDS:=+PACKAGE_python3-simplejson:python3-light +PACKAGE_python3-simplejson:python3-decimal
  36. VARIANT:=python3
  37. endef
  38. define Package/python-simplejson/description
  39. Simple, fast, extensible JSON encoder/decoder for Python
  40. endef
  41. define Package/python3-simplejson/description
  42. $(call Package/python-simplejson/description)
  43. .
  44. (Variant for Python3)
  45. endef
  46. define PyPackage/python-simplejson/filespec
  47. +|$(PYTHON_PKG_DIR)
  48. -|$(PYTHON_PKG_DIR)/simplejson/tests
  49. endef
  50. define Py3Package/python3-simplejson/filespec
  51. +|$(PYTHON3_PKG_DIR)
  52. -|$(PYTHON3_PKG_DIR)/simplejson/tests
  53. endef
  54. $(eval $(call PyPackage,python-simplejson))
  55. $(eval $(call BuildPackage,python-simplejson))
  56. $(eval $(call BuildPackage,python-simplejson-src))
  57. $(eval $(call Py3Package,python3-simplejson))
  58. $(eval $(call BuildPackage,python3-simplejson))
  59. $(eval $(call BuildPackage,python3-simplejson-src))