Commit based upon d6442850bde61f0c3e7e2ae3247b4a856073c5e0
[librecmc/package-feed.git] / lang / python-pycparser / Makefile
1 #
2 # Copyright (C) 2015-2016 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:=pycparser
11 PKG_VERSION:=2.14
12 PKG_RELEASE:=3
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=https://pypi.python.org/packages/source/p/pycparser
16 PKG_MD5SUM:=a2bc8d28c923b4fe2b2c3b4b51a4f935
17
18 PKG_BUILD_DEPENDS:=python python-setuptools
19 HOST_BUILD_DEPENDS:=python/host python-setuptools/host python-ply/host
20
21 PKG_LICENSE:=BSD-3-Clause
22 PKG_LICENSE_FILES:=LICENSE
23 PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
24
25 include $(INCLUDE_DIR)/host-build.mk
26 include $(INCLUDE_DIR)/package.mk
27 $(call include_mk, python-package.mk)
28 $(call include_mk, python-host.mk)
29
30 define Package/python-pycparser
31         SECTION:=lang
32         CATEGORY:=Languages
33         SUBMENU:=Python
34         TITLE:=python-pycparser
35         URL:=https://github.com/eliben/pycparser
36         DEPENDS:=+python-light +python-ply
37 endef
38
39 define Package/python-pycparser/description
40 pycparser is a parser for the C language, written in pure Python. It is a
41 module designed to be easily integrated into applications that need to parse
42 C source code.
43 endef
44
45 define Build/Compile
46         $(call Build/Compile/PyMod,,install --prefix="/usr" --root="$(PKG_INSTALL_DIR)")
47 endef
48
49 define Host/Compile
50         $(call Build/Compile/HostPyMod,,install --prefix="" --root="$(STAGING_DIR_HOSTPKG)")
51 endef
52
53 define Host/Install
54 endef
55
56 $(eval $(call HostBuild))
57
58 $(eval $(call PyPackage,python-pycparser))
59 $(eval $(call BuildPackage,python-pycparser))