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.

85 lines
2.1 KiB

  1. #
  2. # Copyright (C) 2018 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-automat
  9. PKG_VERSION:=0.8.0
  10. PKG_RELEASE:=1
  11. PYPI_NAME:=Automat
  12. PKG_HASH:=269a09dfb063a3b078983f4976d83f0a0d3e6e7aaf8e27d8df1095e09dc4a484
  13. PKG_LICENSE:=MIT
  14. PKG_LICENSE_FILES:=LICENSE
  15. PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
  16. include ../pypi.mk
  17. include $(INCLUDE_DIR)/package.mk
  18. include ../python-package.mk
  19. include ../python3-package.mk
  20. PYTHON_PKG_SETUP_VARS:= \
  21. PKG_VERSION="$(PKG_VERSION)"
  22. PYTHON3_PKG_SETUP_VARS:= \
  23. PKG_VERSION="$(PKG_VERSION)"
  24. define Package/python-automat/Default
  25. SECTION:=lang
  26. CATEGORY:=Languages
  27. SUBMENU:=Python
  28. TITLE:=Concise, idiomatic finite-state automata
  29. URL:=https://github.com/glyph/Automat
  30. endef
  31. define Package/python-automat
  32. $(call Package/python-automat/Default)
  33. DEPENDS:= \
  34. +PACKAGE_python-automat:python-light \
  35. +PACKAGE_python-automat:python-attrs \
  36. +PACKAGE_python-automat:python-six
  37. VARIANT:=python
  38. endef
  39. define Package/python3-automat
  40. $(call Package/python-automat/Default)
  41. DEPENDS:= \
  42. +PACKAGE_python3-automat:python3-light \
  43. +PACKAGE_python3-automat:python3-attrs \
  44. +PACKAGE_python3-automat:python3-six
  45. VARIANT:=python3
  46. endef
  47. define Package/python-automat/description
  48. Automat is a library for concise, idiomatic Python expression of
  49. finite-state automata (particularly deterministic finite-state
  50. transducers).
  51. endef
  52. define Package/python3-automat/description
  53. $(call Package/python-automat/description)
  54. .
  55. (Variant for Python3)
  56. endef
  57. define PyPackage/python-automat/filespec
  58. +|$(PYTHON_PKG_DIR)
  59. -|$(PYTHON_PKG_DIR)/automat/_visualize.py
  60. endef
  61. define Py3Package/python3-automat/filespec
  62. +|$(PYTHON3_PKG_DIR)
  63. -|$(PYTHON3_PKG_DIR)/automat/_visualize.py
  64. endef
  65. $(eval $(call PyPackage,python-automat))
  66. $(eval $(call BuildPackage,python-automat))
  67. $(eval $(call BuildPackage,python-automat-src))
  68. $(eval $(call Py3Package,python3-automat))
  69. $(eval $(call BuildPackage,python3-automat))
  70. $(eval $(call BuildPackage,python3-automat-src))