noddos: Noddos v0.5.0 with mDNS / DNS-SD support
[feed/packages.git] / lang / python / 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:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.dabeaz.com/ply
16 PKG_HASH:=0d7e2940b9c57151392fceaa62b0865c45e06ce1e36687fd8d03f011a907f43e
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-$(PKG_NAME)-$(PKG_VERSION)
19 PKG_UNPACK=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
20
21 HOST_BUILD_DEPENDS:=
22 ifdef CONFIG_PACKAGE_python-ply
23 HOST_BUILD_DEPENDS+=python/host
24 endif
25 ifdef CONFIG_PACKAGE_python3-ply
26 HOST_BUILD_DEPENDS+=python3/host
27 endif
28
29 PKG_LICENSE:=BSD-3-Clause
30 PKG_LICENSE_FILES:=README.md
31 PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
32
33 include $(INCLUDE_DIR)/host-build.mk
34 include $(INCLUDE_DIR)/package.mk
35 $(call include_mk, python-package.mk)
36 $(call include_mk, python3-package.mk)
37
38 define Package/python-ply/Default
39 SECTION:=lang
40 CATEGORY:=Languages
41 SUBMENU:=Python
42 URL:=http://www.dabeaz.com/ply/
43 endef
44
45 define Package/python-ply
46 $(call Package/python-ply/Default)
47 TITLE:=python-ply
48 DEPENDS:=+python-light
49 VARIANT:=python
50 endef
51
52 define Package/python3-ply
53 $(call Package/python-ply/Default)
54 TITLE:=python3-ply
55 DEPENDS:=+python3-light
56 VARIANT:=python3
57 endef
58
59 define Package/python-ply/description
60 PLY is a 100% Python implementation of the common parsing tools lex
61 and yacc.
62 endef
63
64 define Package/python3-ply/description
65 $(call Package/python-ply/description)
66 .
67 (Variant for Python3)
68 endef
69
70 ifdef CONFIG_PACKAGE_python-ply
71 define Host/Compile/python-ply
72 $(call Build/Compile/HostPyMod,,install --prefix="" --root="$(STAGING_DIR_HOSTPKG)")
73 endef
74 endif
75
76 ifdef CONFIG_PACKAGE_python3-ply
77 define Host/Compile/python3-ply
78 $(call Build/Compile/HostPy3Mod,,install --prefix="" --root="$(STAGING_DIR_HOSTPKG)")
79 endef
80 endif
81
82 define Host/Compile
83 $(call Host/Compile/python-ply)
84 $(call Host/Compile/python3-ply)
85 endef
86
87 define Host/Install
88 endef
89
90 $(eval $(call HostBuild))
91
92 $(eval $(call PyPackage,python-ply))
93 $(eval $(call BuildPackage,python-ply))
94
95 $(eval $(call Py3Package,python3-ply))
96 $(eval $(call BuildPackage,python3-ply))