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.

64 lines
1.8 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.16.0
  10. PKG_RELEASE:=1
  11. PKG_LICENSE:=MIT
  12. PKG_SOURCE:=simplejson-$(PKG_VERSION).tar.gz
  13. PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/s/simplejson
  14. PKG_HASH:=b1f329139ba647a9548aa05fb95d046b4a677643070dc2afc05fa2e975d09ca5
  15. PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-simplejson-$(PKG_VERSION)
  16. include $(INCLUDE_DIR)/package.mk
  17. include ../python-package.mk
  18. include ../python3-package.mk
  19. PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
  20. define Package/python-simplejson/Default
  21. SUBMENU:=Python
  22. SECTION:=lang
  23. CATEGORY:=Languages
  24. MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
  25. URL:=https://simplejson.readthedocs.org/
  26. endef
  27. define Package/python-simplejson
  28. $(call Package/python-simplejson/Default)
  29. TITLE:=Simple, fast, extensible JSON encoder/decoder for Python 2
  30. DEPENDS:=+python-light
  31. VARIANT:=python
  32. endef
  33. define Package/python3-simplejson
  34. $(call Package/python-simplejson/Default)
  35. TITLE:=Simple, fast, extensible JSON encoder/decoder for Python3
  36. DEPENDS:=+PACKAGE_python3-simplejson:python3-light
  37. VARIANT:=python3
  38. endef
  39. define Package/python-simplejson/description
  40. Simple, fast, extensible JSON encoder/decoder for Python
  41. endef
  42. define Package/python3-simplejson/description
  43. $(call Package/python-simplejson/description)
  44. .
  45. (Variant for Python3)
  46. endef
  47. $(eval $(call PyPackage,python-simplejson))
  48. $(eval $(call BuildPackage,python-simplejson))
  49. $(eval $(call BuildPackage,python-simplejson-src))
  50. $(eval $(call Py3Package,python3-simplejson))
  51. $(eval $(call BuildPackage,python3-simplejson))
  52. $(eval $(call BuildPackage,python3-simplejson-src))