Fresh pull from upstream (stable) package feed
[librecmc/package-feed.git] / lang / python-ply / 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:=ply
11 PKG_VERSION:=3.9
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.dabeaz.com/ply
16 PKG_MD5SUM:=c5c5767376eff902617fd9874f0c76b7
17
18 PKG_BUILD_DEPENDS:=python python-setuptools
19 HOST_BUILD_DEPENDS:=python/host python-setuptools/host
20
21 PKG_LICENSE:=BSD-3-Clause
22 PKG_LICENSE_FILES:=README.md
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-ply
31         SECTION:=lang
32         CATEGORY:=Languages
33         SUBMENU:=Python
34         TITLE:=python-ply
35         URL:=http://www.dabeaz.com/ply/
36         DEPENDS:=+python-light
37 endef
38
39 define Package/python-ply/description
40 PLY is a 100% Python implementation of the common parsing tools lex
41 and yacc.
42 endef
43
44 define Build/Compile
45         $(call Build/Compile/PyMod,,install --prefix="/usr" --root="$(PKG_INSTALL_DIR)")
46 endef
47
48 define Host/Compile
49         $(call Build/Compile/HostPyMod,,install --prefix="" --root="$(STAGING_DIR_HOSTPKG)")
50 endef
51
52 define Host/Install
53 endef
54
55 $(eval $(call HostBuild))
56
57 $(eval $(call PyPackage,python-ply))
58 $(eval $(call BuildPackage,python-ply))