2015-11-16 10:09:14 +01:00
|
|
|
#
|
2018-01-10 17:00:57 +01:00
|
|
|
# Copyright (C) 2015-2018 OpenWrt.org
|
2015-11-16 10:09:14 +01:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
2017-07-04 21:39:22 +02:00
|
|
|
PKG_NAME:=python-pycparser
|
2021-11-19 14:46:57 +01:00
|
|
|
PKG_VERSION:=2.21
|
2023-02-25 12:55:59 +01:00
|
|
|
PKG_RELEASE:=2
|
2015-11-16 10:09:14 +01:00
|
|
|
|
2019-10-20 21:03:12 +02:00
|
|
|
PYPI_NAME:=pycparser
|
2021-11-19 14:46:57 +01:00
|
|
|
PKG_HASH:=e644fdec12f7872f86c58ff790da456218b10f863970249516d60a5eaca77206
|
2019-02-20 08:19:26 +01:00
|
|
|
|
2015-11-16 10:09:14 +01:00
|
|
|
PKG_LICENSE:=BSD-3-Clause
|
|
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
|
|
PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
|
|
|
|
|
2023-02-25 12:55:59 +01:00
|
|
|
PKG_BUILD_DEPENDS:=python-ply/host # ply==3.10
|
2023-02-25 12:59:40 +01:00
|
|
|
HOST_BUILD_DEPENDS:= \
|
|
|
|
python3/host \
|
|
|
|
python-build/host \
|
|
|
|
python-installer/host \
|
|
|
|
python-wheel/host \
|
|
|
|
python-ply/host
|
2018-01-10 17:00:57 +01:00
|
|
|
|
2019-10-20 21:03:12 +02:00
|
|
|
include ../pypi.mk
|
2015-11-16 10:09:14 +01:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2023-02-25 12:59:40 +01:00
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
2018-01-10 08:56:52 +01:00
|
|
|
include ../python3-package.mk
|
2023-02-25 12:59:40 +01:00
|
|
|
include ../python3-host-build.mk
|
2017-01-31 17:02:23 +01:00
|
|
|
|
2020-04-21 19:27:50 +02:00
|
|
|
define Package/python3-pycparser
|
2017-01-31 17:02:23 +01:00
|
|
|
SECTION:=lang
|
|
|
|
CATEGORY:=Languages
|
|
|
|
SUBMENU:=Python
|
2019-02-20 08:19:26 +01:00
|
|
|
TITLE:=C parser in Python
|
2017-01-31 17:02:23 +01:00
|
|
|
URL:=https://github.com/eliben/pycparser
|
2019-02-20 08:19:26 +01:00
|
|
|
DEPENDS:= \
|
2020-04-21 19:27:50 +02:00
|
|
|
+python3-light \
|
|
|
|
+python3-ply
|
2015-11-16 10:09:14 +01:00
|
|
|
endef
|
|
|
|
|
2020-04-01 16:21:16 +02:00
|
|
|
define Package/python3-pycparser/description
|
2015-11-16 10:09:14 +01:00
|
|
|
pycparser is a parser for the C language, written in pure Python. It is a
|
|
|
|
module designed to be easily integrated into applications that need to parse
|
|
|
|
C source code.
|
|
|
|
endef
|
|
|
|
|
2017-01-31 17:02:23 +01:00
|
|
|
$(eval $(call Py3Package,python3-pycparser))
|
|
|
|
$(eval $(call BuildPackage,python3-pycparser))
|
2018-01-14 15:38:54 +01:00
|
|
|
$(eval $(call BuildPackage,python3-pycparser-src))
|
2023-02-25 12:59:40 +01:00
|
|
|
$(eval $(call HostBuild))
|