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.

71 lines
1.7 KiB

  1. #
  2. # Copyright (C) 2008-2015 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-yaml
  9. PKG_VERSION:=5.1.2
  10. PKG_RELEASE:=1
  11. PYPI_NAME:=PyYAML
  12. PKG_HASH:=01adf0b6c6f61bd11af6e10ca52b7d4057dd0be0343eb9283c878cf3af56aee4
  13. PKG_MAINTAINER:=Josef Schlehofer <josef.schlehofer@nic.cz>
  14. PKG_LICENSE:=MIT
  15. PKG_LICENSE_FILES:=LICENSE
  16. PKG_CPE_ID:=cpe:/a:pyyaml_project:pyyaml
  17. include ../pypi.mk
  18. include $(INCLUDE_DIR)/package.mk
  19. include ../python-package.mk
  20. include ../python3-package.mk
  21. define Package/python-yaml/Default
  22. SECTION:=lang
  23. CATEGORY:=Languages
  24. SUBMENU:=Python
  25. TITLE:=YAML parser and emitter for Python
  26. URL:=https://github.com/yaml/pyyaml
  27. DEPENDS:=+libyaml
  28. endef
  29. define Package/python-yaml
  30. $(call Package/python-yaml/Default)
  31. DEPENDS+= \
  32. +PACKAGE_python-yaml:python-light \
  33. +PACKAGE_python-yaml:python-codecs
  34. VARIANT:=python
  35. endef
  36. define Package/python3-yaml
  37. $(call Package/python-yaml/Default)
  38. DEPENDS+=+PACKAGE_python3-yaml:python3-light
  39. VARIANT:=python3
  40. endef
  41. define Package/python-yaml/description
  42. PyYAML is a YAML parser and emitter for the Python programming language.
  43. endef
  44. define Package/python3-yaml/description
  45. $(call Package/python-yaml/description)
  46. .
  47. (Variant for Python3)
  48. endef
  49. PYTHON_PKG_SETUP_GLOBAL_ARGS:=--with-libyaml
  50. PYTHON_PKG_SETUP_ARGS:=
  51. PYTHON3_PKG_SETUP_GLOBAL_ARGS:=--with-libyaml
  52. PYTHON3_PKG_SETUP_ARGS:=
  53. $(eval $(call PyPackage,python-yaml))
  54. $(eval $(call BuildPackage,python-yaml))
  55. $(eval $(call BuildPackage,python-yaml-src))
  56. $(eval $(call Py3Package,python3-yaml))
  57. $(eval $(call BuildPackage,python3-yaml))
  58. $(eval $(call BuildPackage,python3-yaml-src))