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.

52 lines
1.2 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.3.1
  10. PKG_RELEASE:=1
  11. PYPI_NAME:=PyYAML
  12. PKG_HASH:=b8eac752c5e14d3eca0e6dd9199cd627518cb5ec06add0de9d32baeee6fe645d
  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 ../python3-package.mk
  20. define Package/python-yaml/Default
  21. SECTION:=lang
  22. CATEGORY:=Languages
  23. SUBMENU:=Python
  24. TITLE:=YAML parser and emitter for Python
  25. URL:=https://github.com/yaml/pyyaml
  26. DEPENDS:=+libyaml
  27. endef
  28. define Package/python3-yaml
  29. $(call Package/python-yaml/Default)
  30. DEPENDS+=+PACKAGE_python3-yaml:python3-light
  31. VARIANT:=python3
  32. endef
  33. define Package/python3-yaml/description
  34. PyYAML is a YAML parser and emitter for the Python programming language.
  35. .
  36. (Variant for Python3)
  37. endef
  38. PYTHON3_PKG_SETUP_GLOBAL_ARGS:=--with-libyaml
  39. PYTHON3_PKG_SETUP_ARGS:=
  40. $(eval $(call Py3Package,python3-yaml))
  41. $(eval $(call BuildPackage,python3-yaml))
  42. $(eval $(call BuildPackage,python3-yaml-src))