b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 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 | |
| 8 | include $(TOPDIR)/rules.mk |
| 9 | |
| 10 | PKG_NAME:=python-pycparser |
| 11 | PKG_VERSION:=2.21 |
| 12 | PKG_RELEASE:=2 |
| 13 | |
| 14 | PYPI_NAME:=pycparser |
| 15 | PKG_HASH:=e644fdec12f7872f86c58ff790da456218b10f863970249516d60a5eaca77206 |
| 16 | |
| 17 | PKG_LICENSE:=BSD-3-Clause |
| 18 | PKG_LICENSE_FILES:=LICENSE |
| 19 | PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com> |
| 20 | |
| 21 | PKG_BUILD_DEPENDS:=python-ply/host # ply==3.10 |
| 22 | HOST_BUILD_DEPENDS:= \ |
| 23 | python3/host \ |
| 24 | python-build/host \ |
| 25 | python-installer/host \ |
| 26 | python-wheel/host \ |
| 27 | python-ply/host |
| 28 | |
| 29 | include ../pypi.mk |
| 30 | include $(INCLUDE_DIR)/package.mk |
| 31 | include $(INCLUDE_DIR)/host-build.mk |
| 32 | include ../python3-package.mk |
| 33 | include ../python3-host-build.mk |
| 34 | |
| 35 | define Package/python3-pycparser |
| 36 | SECTION:=lang |
| 37 | CATEGORY:=Languages |
| 38 | SUBMENU:=Python |
| 39 | TITLE:=C parser in Python |
| 40 | URL:=https://github.com/eliben/pycparser |
| 41 | DEPENDS:= \ |
| 42 | +python3-light \ |
| 43 | +python3-ply |
| 44 | endef |
| 45 | |
| 46 | define Package/python3-pycparser/description |
| 47 | pycparser is a parser for the C language, written in pure Python. It is a |
| 48 | module designed to be easily integrated into applications that need to parse |
| 49 | C source code. |
| 50 | endef |
| 51 | |
| 52 | $(eval $(call Py3Package,python3-pycparser)) |
| 53 | $(eval $(call BuildPackage,python3-pycparser)) |
| 54 | $(eval $(call BuildPackage,python3-pycparser-src)) |
| 55 | $(eval $(call HostBuild)) |