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.8 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.19
  10. PKG_RELEASE:=2
  11. PYPI_NAME:=pycparser
  12. PKG_HASH:=a988718abfad80b6b157acce7bf130a30876d27603738ac39f140993246b25b3
  13. PKG_LICENSE:=BSD-3-Clause
  14. PKG_LICENSE_FILES:=LICENSE
  15. PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
  16. HOST_PYTHON_PACKAGE_BUILD_DEPENDS:="ply==3.10"
  17. HOST_PYTHON3_PACKAGE_BUILD_DEPENDS:="ply==3.10"
  18. include ../pypi.mk
  19. include $(INCLUDE_DIR)/package.mk
  20. include ../python-package.mk
  21. include ../python3-package.mk
  22. define Package/python-pycparser/Default
  23. SECTION:=lang
  24. CATEGORY:=Languages
  25. SUBMENU:=Python
  26. TITLE:=C parser in Python
  27. URL:=https://github.com/eliben/pycparser
  28. endef
  29. define Package/python-pycparser
  30. $(call Package/python-pycparser/Default)
  31. DEPENDS:= \
  32. +PACKAGE_python-pycparser:python-light \
  33. +PACKAGE_python-pycparser:python-ply
  34. VARIANT:=python
  35. endef
  36. define Package/python3-pycparser
  37. $(call Package/python-pycparser/Default)
  38. DEPENDS:= \
  39. +PACKAGE_python3-pycparser:python3-light \
  40. +PACKAGE_python3-pycparser:python3-ply
  41. VARIANT:=python3
  42. endef
  43. define Package/python-pycparser/description
  44. pycparser is a parser for the C language, written in pure Python. It is a
  45. module designed to be easily integrated into applications that need to parse
  46. C source code.
  47. endef
  48. define Package/python3-pycparser/description
  49. $(call Package/python-pycparser/description)
  50. .
  51. (Variant for Python3)
  52. endef
  53. $(eval $(call PyPackage,python-pycparser))
  54. $(eval $(call BuildPackage,python-pycparser))
  55. $(eval $(call BuildPackage,python-pycparser-src))
  56. $(eval $(call Py3Package,python3-pycparser))
  57. $(eval $(call BuildPackage,python3-pycparser))
  58. $(eval $(call BuildPackage,python3-pycparser-src))