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.

46 lines
1.1 KiB

  1. #
  2. # Copyright (C) 2015-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-pycparser
  9. PKG_VERSION:=2.21
  10. PKG_RELEASE:=1
  11. PYPI_NAME:=pycparser
  12. PKG_HASH:=e644fdec12f7872f86c58ff790da456218b10f863970249516d60a5eaca77206
  13. PKG_LICENSE:=BSD-3-Clause
  14. PKG_LICENSE_FILES:=LICENSE
  15. PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
  16. HOST_PYTHON3_PACKAGE_BUILD_DEPENDS:=ply # ply==3.10
  17. include ../pypi.mk
  18. include $(INCLUDE_DIR)/package.mk
  19. include ../python3-package.mk
  20. define Package/python3-pycparser
  21. SECTION:=lang
  22. CATEGORY:=Languages
  23. SUBMENU:=Python
  24. TITLE:=C parser in Python
  25. URL:=https://github.com/eliben/pycparser
  26. DEPENDS:= \
  27. +python3-light \
  28. +python3-ply
  29. endef
  30. define Package/python3-pycparser/description
  31. pycparser is a parser for the C language, written in pure Python. It is a
  32. module designed to be easily integrated into applications that need to parse
  33. C source code.
  34. endef
  35. $(eval $(call Py3Package,python3-pycparser))
  36. $(eval $(call BuildPackage,python3-pycparser))
  37. $(eval $(call BuildPackage,python3-pycparser-src))