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