diff --git a/lang/python/python-pycparser/Makefile b/lang/python/python-pycparser/Makefile index d151eb1cc..15aea4b5b 100644 --- a/lang/python/python-pycparser/Makefile +++ b/lang/python/python-pycparser/Makefile @@ -7,34 +7,26 @@ include $(TOPDIR)/rules.mk -PKG_NAME:=pycparser -PKG_VERSION:=2.14 -PKG_RELEASE:=4 +PKG_NAME:=python-pycparser +PKG_VERSION:=2.17 +PKG_RELEASE:=1 -PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz -PKG_SOURCE_URL:=https://pypi.python.org/packages/source/p/pycparser -PKG_HASH:=7959b4a74abdc27b312fed1c21e6caf9309ce0b29ea86b591fd2e99ecdf27f73 +PKG_SOURCE:=pycparser-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=https://pypi.python.org/packages/be/64/1bb257ffb17d01f4a38d7ce686809a736837ad4371bcc5c42ba7a715c3ac +PKG_HASH:=0aac31e917c24cb3357f5a4d5566f2cc91a19ca41862f6c3c22dc60a629673b6 -PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-$(PKG_NAME)-$(PKG_VERSION) -PKG_UNPACK=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE) - -HOST_BUILD_DEPENDS:=python-ply/host -ifdef CONFIG_PACKAGE_python-pycparser -HOST_BUILD_DEPENDS+=python/host -endif -ifdef CONFIG_PACKAGE_python3-pycparser -HOST_BUILD_DEPENDS+=python3/host -endif +PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-pycparser-$(PKG_VERSION) PKG_LICENSE:=BSD-3-Clause PKG_LICENSE_FILES:=LICENSE PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com> -include $(INCLUDE_DIR)/host-build.mk include $(INCLUDE_DIR)/package.mk $(call include_mk, python-package.mk) $(call include_mk, python3-package.mk) +PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE) + define Package/python-pycparser/Default SECTION:=lang CATEGORY:=Languages @@ -45,14 +37,14 @@ endef define Package/python-pycparser $(call Package/python-pycparser/Default) TITLE:=python-pycparser - DEPENDS:=+python-light +python-ply + DEPENDS:=+PACKAGE_python-pycparser:python-light +PACKAGE_python-pycparser:python-ply VARIANT:=python endef define Package/python3-pycparser $(call Package/python-pycparser/Default) TITLE:=python3-pycparser - DEPENDS:=+python3-light +python3-ply + DEPENDS:=+PACKAGE_python3-pycparser:python3-light +PACKAGE_python3-pycparser:python3-ply VARIANT:=python3 endef @@ -68,28 +60,6 @@ $(call Package/python-pycparser/description) (Variant for Python3) endef -ifdef CONFIG_PACKAGE_python-pycparser -define Host/Compile/python-pycparser - $(call Build/Compile/HostPyMod,,install --prefix="" --root="$(STAGING_DIR_HOSTPKG)") -endef -endif - -ifdef CONFIG_PACKAGE_python3-pycparser -define Host/Compile/python3-pycparser - $(call Build/Compile/HostPy3Mod,,install --prefix="" --root="$(STAGING_DIR_HOSTPKG)") -endef -endif - -define Host/Compile -$(call Host/Compile/python-pycparser) -$(call Host/Compile/python3-pycparser) -endef - -define Host/Install -endef - -$(eval $(call HostBuild)) - $(eval $(call PyPackage,python-pycparser)) $(eval $(call BuildPackage,python-pycparser))